Okay, now that we have the BASIC Stamp board driving the servos
, let's now have it read the R/C receiver signals. This is a simple matter of plugging in two cables from the receiver to the board. I've shown two ways in the photo here: one is with a female-to-female cable, if you have one, plugged straight into the board servo ports (I used port 13 in this example); the other is to strip and tin the wires from a regular servo cable and push them into the breadboard, then connecting another wire to one of the Stamp pins (that's the white wire that goes from the breadboard to pin 5)
The code here
will test your hardware and see if it's working. The aileron stick on your RC transmitter should drive the servo (it's a little jerky, due to processor delays, but nothing too serious). When you flip the gear switch (channel 5) on your transmitter, the board will go into "autonomous mode" and move the servos itself. Flip the switch back and you're back in manual control.
Next, we'll connect the GPS in this post.
Previous posts in this series:
--Getting started with servos