Datasheet

Table Of Contents
25
revolution
(c) Copyright Revolution Education Ltd. Web: www.picaxe.co.uk Version 1.1 04/10
BOT120.PMD
BOT120 PICAXE-20X2 MICROBOT
Logicator Only
When using Logicator these combinations can be very simply
generated by clicking the ‘movement’ buttons on the Motors cell
dialog.
Note also the speed selection option:
Fast - always change to fast speed
Slow - always change to slow speed
No change - speed setting is not altered
BASIC Only
When using BASIC these movement combinations can be simplified by
using the ‘forward’, ‘backward’ and ‘halt’ commands on each of the two
motors - motor B is B.7 : B.6 and motor A is B.5 : B.4
; Exampe to Move Microbot Forwards
forward A ; Set Motor A Forward
forward B ; Set Motor B Forward
Speed is controlled by the C.5 pin, when this pin is an input the speed
will be fast, when the pin is an output it will be slow.
input C.5 ; Set Motor Speed Fast
output C.5 ; Set Motor Speed Low
When the Microbot program first starts the C.5 pin will be set as an input
and the initial motor speed will be fast.
Motor Current Sense (advanced feature)
There is a Motor Current Sense input from the motor drive circuitry to
the C.7 pin (ADC channel 3). Using a ‘readadc’ command on analogue
channel 3 will return a value which is proportionate to the current drawn
by the motors; the higher the current draw, the higher the reading.
In advanced programs the Motor Current Sense can be read and used to
determine when the motors are struggling or have stalled. A program
may then take appropriate action when that occurs.
Note that when a motor starts it will draw much higher current than
when it is up to speed and running unhindered. This is known as ‘in-rush
current’. When starting a motor you will likely need to leave a short
period before reading the Motor Current Sense level to avoid the turn-on
in-rush current being misinterpreted as a motor stall.
Microbot
Right
Motor (B)
Left
Motor (A)
Halt Halt B Halt A
Forward Forward B Forward A
Backward Forward B Backward A
Turn Left Backward B Backward A
Turn Right Backward B Forward A
Veer Left
Forward
Forward B Halt A
Veer Left
Backward
Halt B Backward A
Veer Right
Forward
Halt B Forward A
Veer Right
Backward
Backward B Halt A