Knaster / EkdahlFar

Ekdahl Far Master Firmware
GNU General Public License v3.0
0 stars 0 forks source link

Lag when using CV with the V/OCT input #22

Closed Knaster closed 4 months ago

Knaster commented 5 months ago

Using the Arp Axxe to control the Ekdahl FAR makes for a giant lag when using the V/OCT input and possibly the tune input too?

Knaster commented 5 months ago

Changed the sampling rate of ADC1 by changing ads.setDataRate(RATE_ADS1115_128SPS); to ads.setDataRate(RATE_ADS1115_860SPS); in controlReader::controlReader and changed the polling interval of controlReader::controlReader in main.cpp by changing controlReadIntervalTime = 500 to controlReadIntervalTime = 50

So far no noise issues has been detected by changing the sample rate, performance seems to be much better overall but all of this needs to be verified.

Knaster commented 5 months ago

got some noise readings on pressure / adc[3] and set averages[3].dataAverageLength = 3; to compensate - seems to work

Knaster commented 5 months ago

Partial culprint is I2C speed, changed it too 400kHz, 1MHz does not seem stable

Knaster commented 5 months ago

Averager did a wrongful check, averageLength = 1 still added two values. Changed so that the Value is only updated when pDataChanged is true

Knaster commented 5 months ago

Works probably as well as can do using the ADS1115's speed. Latency of the fundamental CV input is 4-8 ms on average