Step 20Let there be life
Some how you should get the Red wire from your batteries (+) hooked up to the red wire on the project board (V). And the black (-) to (G).
How you do this depends on the equipment you bought.
If there is a battery-clip on both batteries and board you should still make sure that the "+" from the batteries ends up to the "V" on the board. (Learn more here)
Sometimes (though not often) the clips can be reversed to each other, and just putting two matching clips together is no guarantee that + gets to V and - gets to G! Make sure, or you will se melting things and smoke! Do not feed the board with more than 6V (no 9V batteries, even though the clip fits)
As a note; We are only working with one power-supply here. Later you will want to use same Ground, but both V1 and V2. That way your chips can get one source, and the motors etc another (stronger) voltage.
Install the Picaxe Programming Editor on a PC, follow the manuals to get your Jack / USB / Serial hooked up, Insert the batteries in your (still headless) robot, insert the jack stick in your robot.. enter the programming editor, and write
servo 0, 150
Press F5, wait for the program to transfer, and your servo gives a little yank (or spins, depending on which way it was).
If something goes wrong here, contact mecontact me, or mess with the manuals and ports etc, until no errors are reported, and all seems to work,
To test, try to write
servo 0, 200
and press F5
The servos disc should spin a little and stop. To get back, write:
servo 0, 150
and press F5
Now your robot's “neck” is facing forward.
Stick on the “head” - the Sharp IR
| « Previous Step | Download PDFView All Steps | Next Step » |
2
comments
|
Add Comment
|
![]() |
Add Comment
|


























































