Datasheet

Table Of Contents
24
revolution
(c) Copyright Revolution Education Ltd. Web: www.picaxe.co.uk Version 1.1 04/10
BOT120.PMD
BOT120 PICAXE-20X2 MICROBOT
Programming Example 5 – Motors
By controlling the two motors of your Microbot it can be made to move
about.
There are four output pins used to control motor directions, left motor
drive forward, left motor drive backward, right motor drive forward and
right motor drive backward. Motor control pins are assigned as below:
B.7 Right Motor Backward
B.6 Right Motor Forward
B.5 Left Motor Backward
B.4 Left Motor Forward
Each output pin is individually controllable to allow selection of any of
nine completely different Microbot movement combinations.
Microbot
Right
Motor
Right
Motor
Left
Motor
Left
Motor
Backward
B.7
Forward
B.6
Backward
B.5
Forward
B.4
Halt Low Low Low Low
Forward Low High Low High
Backward High Low High Low
Turn Left Low High High Low
Turn Right High Low Low High
Veer Left
Forward
Low High Low Low
Veer Left
Backward
Low Low High Low
Veer Right
Forward
Low Low Low High
Veer Right
Backward
High Low Low Low
A ‘turn’ movement is an ‘on the spot spin’ when one motor is switched
forward and the other backward.
A ‘veer’ movement is created by only switching one motor on at a time.