pulse timing with arduino

Discussion in 'Embedded Systems and Microcontrollers' started by kb1lqd, Nov 29, 2008.

  1. kb1lqd

    Thread Starter New Member

    Nov 5, 2008
    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?

    Brent S.
  2. John Luciani

    Active Member

    Apr 3, 2007
    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 *)