Go Down

Topic: event detector feasability (Read 442 times) previous topic - next topic

bob a

I have a project where I need to detect a microsecond break in a dc signal. Given that the clockspeed of an arduino is in the MHz, would a loop that looked for a low signal, then kicked out a signal to turn on an LED be able to pick up such a short break? Thanks.

CrossRoads

That's what interrupts are for.
Can detect a signal that is I think 2 clock cycles in duration (0.125uS).
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

bob a

Thanks! Just the answer I was looking for.

Krodal

http://arduino.cc/it/Reference/AttachInterrupt

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy