[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.
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).
Very nice!
No serial interface implemented yet.
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).
hello, my project is based on this. can i please get the code and schematic diagram of this project… it will be very useful…
You can check it out in the Forum at the below link:
http://www.43oh.com/forum/viewtopic.php?f=9&t=284
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…