MSP430 News, Projects and Forums

Controlling Servo Motors with the Launchpad

[V]ihapuu managed to get not one, but two, servos working with the TI Launchpad. Not much description, but he posted his code on pastebin. Code looks fairly simple with Timer_A_0 providing all the timing.

Link to code: pastebin



6 comments

  1. Very nice! :)

  2. anotherone /

    No serial interface implemented yet.

  3. anotherone /

    Actually the code is for four servos but you can easily use the whole port. It sequentially outputs the pulse for each servo from the timer compare interrupt (the whole port is written, clearing the last servo signal). Repetition rate thus is variable and depends on the number and pulse width of the other servos (that’s OK).

  4. prianca /

    hello, my project is based on this. can i please get the code and schematic diagram of this project… it will be very useful…

  5. Abdullah /

    Hi,
    Too good
    Can i use the above code for msp430g2452, i have tried couple of time but m getting error, could u please help me out, thanks in advance…

Leave a Reply