Do you know how to record a change in value of a analog pin immediately ?

Neil Swiff asked Nov 16,2020
0

I'm using an arduino and the value in the analog pin needs to be monitored constantly at all points in the program . I’m aware of using a interrupt pin but it will only work when a pin goes high or low which is not sufficient.

The best method I could think was use a timer and fire it in a few milliseconds and monitor the value in the ISR. Is there a better method for achieving this ? Like detect a change in the analog pin and then the program goes to the ISR?

Thanks for any help.


  • Your Answer(2)
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000