First, let's just set up the board to control a single servo with the FT639 chip on the Parallax development board (later on I'll show you how to do it using the Parallax servo controller board, if you prefer that). The single FT639 chip has the advantage of being small and easy to integrate into a single-board autopilot, but it's not the greatest servo controller in the world and doesn't handle high-speed applications well (we're just using it on the rudder, so it's fine for our purposes).
In this case I've connected the FT639's serial-in pin to the Stamp's pin 8 (yellow wire), and the FT639's servo 1 output pin to the signal pin to servo connector p15 (blue wire). The black and red are ground and power, of course. Couldn't be easier.
Here's the code that just tests this servo in several position. Once you get this working, the next step will be to read the R/C receiver input signals and pass them through to this servo. Go to this next post here.
Comments
This is the board:
http://parallax.com/Store/Microcontrollers/BASICStampDevelopmentBoa...
Yes, that's right. To ensure that we can fully integrate the RC and autopilot systems, we pass the RC commands through the Stamp while under RC control, and then the Stamp generates its own commands under autopilot control. In some other systems that we haven't revealed yet we do it differently, using a stand-alone board that switches the servos from RC to CPU control, which has some advantages in terms of being able to handle software crashes in the CPU, but it introduces a whole other layer of complexity. Doing it the way we do in this tutorial series--ie, all in software--is the simplest (and smallest, lightest, cheapest) way, and if you write your code properly it's plenty safe.
Decided today to sign up after seeing these tutorials.
I have the ATOM microcontroller dev board that uses BASIC language and is very similar to the Basic Stamp. In following on to tutorial #2 I am not understanding why the receiver output goes to the the stamp? Is it a pass through until the autopilot is engaged?
Still waiting shipment on my Parallax datalogger and hitachi 3-axis accelorometer.
Not sure at this point if I will need the FMA heat sensors for stabilization but it will be there if I need. I can disable it by unplugging the sensor for now. I will try to upload some pictures of my hardware setup thus so far.