Arduino based serial servo controller

Arduino based serial servo controller
This is a simple serial controller for multiple servos based on the Arduino. (my first instructable too :) )

Most of the work in this came from getting the software to talk with the arduino and making a protocol for the data to be passed over. As for the hardware aspect all that I used was two servos (Parallax standard servo here.) A Sparkfun Arduino ProtoShield and an Arduino Duemilanove with ATMEGA328, but most of these parts can be substituted with similar items.

I thought up this project as part of a RC system, but setting up the communication took a lot of time. If anyone has any improvements, ideas, or bugs please feel free to comment.
EDIT: I wrote this awhile ago, just got to publishing it recently.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Things you may need...

Things you may need...
Some things you will need to build this.
1. Arduino board (you choose)
2. two (or one) servos
3. jumper wires
4. Visual Studio 2008 Express -- link (optional)
5. Arduino IDE -- link

Sorry Linux and Apple fans, my program only runs on windows for now, but you can still manually send serial commands to the arduino without changing the code.
« Previous StepDownload PDFView All StepsNext Step »
12 comments
Jan 7, 2012. 8:23 PMComputothought says:
Much as I detest mono and .net, It would have been nice to see your mswindows source code to see if it could be ported to either linux or osx.
Jun 30, 2011. 12:58 PMdemonxkid says:
quick question i have 2 servos controlled by a serial write and read system. do i have to have the arduino plugged into a computer or can i use an external power source(9v with barrel jack slot)?
Jun 30, 2011. 4:10 PMdemonxkid says:
Thanks it is not a power problem im just tryimg to end the dependance on my laptop but I guess it will take comeplete reprogramming :/
Aug 11, 2010. 6:29 PMJanux says:
Hi there :) First, thanks!, for posting this mattie95, and regarding the issue that Dannne11 has (or had) to compile the code is because the first line of the code posted in the page says only " #include " instead of " #include <Servo.h> " (without quotes), but this should be added only if you copy the code from the page, if you download the file attached "radio_protocol_fix.pde", it should compile just fine. Just thought to point it out for someone else doing copy/paste from the code. :) Janux
Jul 19, 2010. 5:01 AMDannne11 says:
10: error: #include expects "FILENAME" or In function 'void setup()': At global scope: In function 'void setup()': Bad error line: -5 This is the code. posted the wrong code first srry
Jul 19, 2010. 4:53 AMDannne11 says:
the error code is "10: error: #include expects "FILENAME" or In function 'void setup()': At global scope: Bad error line: -3 "
Jul 18, 2010. 5:36 AMDannne11 says:
the code do not work with the arduino software :(
Jan 9, 2010. 4:48 AMDELETED_evilfrogie says:
(removed by author or community request)
Apr 15, 2010. 4:06 PMtaylor179 says:
dont you mean instructable?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2
Followers
1
Author:mattie95