Go Down

Topic: Arduino Uno get's stuck when doing analogRead (Read 512 times) previous topic - next topic


Feb 12, 2013, 02:45 pm Last Edit: Feb 12, 2013, 02:54 pm by sascha_held Reason: 1
Ok, if you say that even one AnalogRead is too long for the Interrupt, then i should go for a signal-polling, since the later full-scale version of this shall measure 16 Analog-Ins on an Arduino Mega.

Thanks for the hints guys!


Alternatively, just kick off the conversion in the interrupt service routine, and read the value when you get the conversion complete interrupt.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.


Hi, just a small thank you: Yesterday i had the time to try the new code (the interrupt only changes a "trigger" boolean while the main loop checks if this bool is set and then starts the AD-converter code.
It finally worked, now i can try out the prototype that we build.

Thanks for the support!

Go Up