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

Your professional answers would kindly help others and you will get a reward with PCBWay Beans.

    View More
    Ranking Name Answers
    1 Sayanik Mandal 9
    2 Tomasanton 4
    3 Miguel Reis 3
    4 DAVIDE 2
    5 Nicolas DEFRANOUX 2
    6 Riley Gunn 2
    7 PCBWay Support 2
    8 PagaAnto 1
    9 Reshodha 1
    10 Joson 1