pulse timing with arduino

Thread Starter

kb1lqd

Joined Nov 5, 2008
2
Hey all!
I am starting a side project during winter quarter at college that involves the necessity to measure a pulse width with the arduino. I am either using a SMD arduino or programming a chip and building my own bare circuit. I need to detect the pulse width from an RC receiver to switch an H-bridge from two directions. For example, 0-50% is foward and 51-100% is revearse. Has anyone tried this before? How'd you go about this? Also I have began playing with the pulseIn() function and am wondering if this is the best way to go about this?

Thanks!
Brent S.
 

John Luciani

Joined Apr 3, 2007
475
How long would the pulse be?

The counter/timer may work in your application.
Take a look at the counter/timer section in the ATmega168 datasheet.

(* jcl *)
 
Top