Go Down

Topic: Solved: reading PWM signal: the "noInterrupts()" function crashes my code! (Read 5265 times) previous topic - next topic

panther3001

Just wanted to say thanks to all of you who posted here, especially Panther 3001.
I was looking for a way to control an outcome based on PWM signal and this sketch works great for that purpose.
Also, the others who have posted here gave me allot more in-site to PWM processing.
Thanks again  for posting.
Rodney, here's my timer to replace "micros()."  It has a precision of 0.5us, so your PWM reads will be much more consistent, precise, and accurate now.

http://electricrcaircraftguy.com/2014/02/Timer2Counter-more-precise-Arduino-micros-function.html
Visit my RC aircraft, electronics, & Arduino website at http://www.electricrcaircraftguy.com

Go Up