TI Launchpad based Open Source 5 Channel Servo Controller being used to control a Lynxmotion BRAT Jr.
You can learn more about the project here: e2e.ti.com/group/msp430launchpad … 96334.aspx
The Open Source servo controller project uses the $4.30 TI Launchpad to
create what I think is the least expensive serial servo controller available.
The source is free and written in C. The compiler and tools are free and available from TI.
An the Launchpad is available for only $4.30.
You can upgrade the Launchpad to a bigger chip for free, and you have 16K of flash and 512 bytes of RAM.
The servo controller software only requires 1K of flash, and 26 bytes of RAM.
Servo signals are generated using dedicated timers in the chip, so resolution is .25us
Video: youtu.be/BSuJUdCSNFw
The servo controller has configurable rates from 0 to 255, and position is from 2000 to 10000 (500us to 2500us).
Interesting project. Just for fun, you probably can run simple scripts using batch files similar to these.
[code]@echo off
mode com8:9600,N,8,1 >nul
echo #0P2200 >com8
ping -n 2 127.0.0.1 >nul
echo #0P1500 t3000 >com8
ping -n 5 127.0.0.1 >nul
echo #0P2200 >com8
ping -n 2 127.0.0.1 >nul
echo #0P1500 t3000 >com8
ping -n 5 127.0.0.1 >nul
echo #0P2200 >com8
ping -n 2 127.0.0.1 >nul
echo #0P1500 t3000 >com8
ping -n 5 127.0.0.1 >nul
echo #0P2200 >com8
ping -n 2 127.0.0.1 >nul
echo #0P1500 t3000 >com8
ping -n 5 127.0.0.1 >nul
echo #0P2200 >com8
ping -n 2 127.0.0.1 >nul
echo #0P1500 t3000 >com8
ping -n 5 127.0.0.1 >nul
echo #0P2200 >com8
ping -n 2 127.0.0.1 >nul
cls[/code]
@echo off
echo moving servo #0
echo #0 P2200 t3000 > com5
echo 8 second delay
ping -n 9 127.0.0.1 >nul
echo #0 P1500 t3000 > com5
echo 5 second delay
ping -n 6 127.0.0.1 >nul
echo #0 P1000 t3000 > com5
echo 5 second delay
ping -n 6 127.0.0.1 >nul
echo #0 P500 t3000 > com5
echo done
echo Did it work?
pause