controlling a wireless camera with two servos with a transmitter
Casey Gross
Posts: 14
I needed a wireless controller for moving around a camera that’s at an altitude of around 200-300 feet. The plane fly’s in circles using the autopilot system that I programmed. I have two pots that control the servo values and sends them to the plane.
I wanted to be able to turn the controller on and off so that it wouldn’t run down the battery. I also wanted a led to tell me if it was on or not. After a little thinking I came up with a great design and also a schematic to go with it.
The list of stuff you need is very simple:
List:
1. Basic Stamp BS2.
2. Parallax Transmitter.
3. RadioShack Project box.
4. Potentiometer *2
5. Small Switch
6. Green Led
7. Small Pcb
8. 0.1 Capacitors *2
9. 220 ohm resistor *3
10. 5v Regulator
11. 9v Battery Pack
12. Velcro
13. ¼” standoffs
14. Solder
15. Soldering Iron
Now that you have all the materials its time to start the build!
The first thing to do is to start drilling the project box.
attachment 1.
attachment 2.
In the second picture I have already inserted the two potentiometers.
Next insert leds and the switch then wire it up according to the schematic.
attachment 3.
attachment 4.
attachment 5.
Pretty hectic wiring but if you follow the schematic it should be quite simple.
After you are done with the wiring its time to build the receiver on a different
Stamp.
Plug the two servos into pins 12 & 13 and the receiver into pin 6.
attachment 6.
Code:
TX-
UD VAR WORD
LR VAR WORD
DO
HIGH 12
HIGH 9
PAUSE 100
RCTIME 12, 1, UD
RCTIME 9, 1, LR
SEROUT 5, 9600,[noparse][[/noparse]"!", DEC4 UD, DEC4 LR]
LOOP
RX-
UD VAR WORD
LR VAR WORD
DO
SERIN 15, 9600,[noparse][[/noparse]WAIT ("!"), DEC4 UD, DEC4 LR]
PULSOUT 12, LR
PULSOUT 13, UD
LOOP
Post Edited (Casey Gross) : 1/8/2010 3:00:56 AM GMT
I wanted to be able to turn the controller on and off so that it wouldn’t run down the battery. I also wanted a led to tell me if it was on or not. After a little thinking I came up with a great design and also a schematic to go with it.
The list of stuff you need is very simple:
List:
1. Basic Stamp BS2.
2. Parallax Transmitter.
3. RadioShack Project box.
4. Potentiometer *2
5. Small Switch
6. Green Led
7. Small Pcb
8. 0.1 Capacitors *2
9. 220 ohm resistor *3
10. 5v Regulator
11. 9v Battery Pack
12. Velcro
13. ¼” standoffs
14. Solder
15. Soldering Iron
Now that you have all the materials its time to start the build!
The first thing to do is to start drilling the project box.
attachment 1.
attachment 2.
In the second picture I have already inserted the two potentiometers.
Next insert leds and the switch then wire it up according to the schematic.
attachment 3.
attachment 4.
attachment 5.
Pretty hectic wiring but if you follow the schematic it should be quite simple.
After you are done with the wiring its time to build the receiver on a different
Stamp.
Plug the two servos into pins 12 & 13 and the receiver into pin 6.
attachment 6.
Code:
TX-
UD VAR WORD
LR VAR WORD
DO
HIGH 12
HIGH 9
PAUSE 100
RCTIME 12, 1, UD
RCTIME 9, 1, LR
SEROUT 5, 9600,[noparse][[/noparse]"!", DEC4 UD, DEC4 LR]
LOOP
RX-
UD VAR WORD
LR VAR WORD
DO
SERIN 15, 9600,[noparse][[/noparse]WAIT ("!"), DEC4 UD, DEC4 LR]
PULSOUT 12, LR
PULSOUT 13, UD
LOOP
Post Edited (Casey Gross) : 1/8/2010 3:00:56 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Check out the new Savage Circuits TV!
·