yes, the adc is overwriting the values. comment out that line, and set ADCS 0 at the beginning.
it will be difficult to use both the serial line and the adc to set the same value. you might be able to do something that looks for changes on the ADC, and only then does the ADC change the value. basically, store the last value, and compare it to the current value, and if the difference is greater than 10 or so, then change. there will be some noise on the ADC, so even if the knob isnt moving, the value will change a bit.
- It is currently Tue Jun 28, 2022 2:31 am • All times are UTC - 8 hours [ DST ]
Control two parameters via Serial communication
4 posts
• Page 1 of 1
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest