In this worksheet you will learn how much delay is needed to
make the buggy
move distances and spin the angles you want

1) Start up the PICAXE Programming Editor
program:
click here
- Make sure that the following options are selected (in View / Options...)
-
PICAXE-18x
(Mode tab) - Text-mode
Colour syntax (Editor tab)
- Compiler-Enhanced (Editor tab)
(if these aren't set correctly you won't be able to
simulate)
- You should see the BASIC page. (if not, Click the Basic button..
)
2) A
single state:
This is one of the simplest programs.
Here is your main program:

It uses
"letpins=%01010000" to switch the motors on.
It uses
"pause 1000" to let them run for 1 second.

3) Download to your buggy and see the effect....How far does the buggy go in 1 second?.
Put the buggy on a piece of paper.
Mark where the front is with a pen, and then run the program.
When the buggy stops, make another mark. Measure the distance between the
marks.
My Buggy travels at mm per second.

The time taken to travel 100 mm is therefore (100 / speed
(mm/s))

You should now work out the
pause value needed for 100mm. - (You might need this later)
Record this in the "Speed" section of your Buggy Journal.

4) 3 states in a row:
This is more complex programs.
Here is your main program: