Controlling a servomotor using pic16f84

Discussion in 'Programmer's Corner' started by sharkfire, Mar 1, 2008.

  1. sharkfire

    Thread Starter Member

    Feb 13, 2008
    I have a servomotor (not Futaba) which looks like a DC Motor. It rotates 360 degrees.

    Can you help me in programming this using Assembly language in PIC16f84?

    This is the problem. I have 3 receivers, a photo diode. If the left receiver is high, the motor will turn counterclockwise, for at least 2 seconds only. After 2 seconds, the motor should stop rotating even if the left receiver is still high. Same goes with the right receiver.

    How should I program this? Timers, Delays or WDT?

    Thanks for any help you may extend..