0% found this document useful (0 votes)
716 views

Computer Controlled Robots

Computer Controlled Robots (compressed version)

Uploaded by

crackintheshat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
716 views

Computer Controlled Robots

Computer Controlled Robots (compressed version)

Uploaded by

crackintheshat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 52

HOW TO MAKE

FOR C64, VIC 20, SPECTRUM & BBC

USBORNE ELECTRONIC WORKSHOP.


HOWTOMAKE
COMPUTER-CONTROLLED

Tony Potter

CONTENTS
2 How to use this book 26 Making robot sensors
3 About robots 28 How to make a light sensor
4 Building a robot 30 Making a switching circuit
6 Things you need 32 Connecting the robot, circuit
8 Robot construction tips and computer
10 Making the robot base 34 Test programs
12 How to make the shoulder 36 Robot control program
14 Making the arm 38 Instructing your robot
16 Making the gripper 39 Shopping list
20 Customizing your robot 42 Templates
22 Electronics and soldering 48 Indexand
24 Electronic components circuit diagram

Robot designed by Tony Potter and Chris Oxlade


Robot program by Chris Oxlade

Illustrated by Jererny Gower


Additional Illustrations by Simon Roulstone,
Chris Lyon, Jeremy Banks, Graham Round,
Diane Potter, Hussein Hussein.
Technical consultants: Colin Motteram,
John Hawkins and Bill Finder.
How to use this book
In this book you can find out
about computer-controlled Building the robot
robots and how to make The book is divided into
them. There are step-by-step sections, showing how to make
instructions showing how to one part of the robot at a time. After
build a robot which moves each section there are tests and checks to
around on wheels and picks make sure the part works properly before you
things up with its gripper. go on. At the back of the book there are
This is shown below, templates to copy and use to make all the robot
painted orange. parts.

The robot is designed so All versions of the robot


that you can make different work with the computers
versions. If you like, you can shown above. You need to To connect your robot to
make a robot vehicle like the buy an extra part, called an a computer, there is an
blue one below (this is the interface*, for the Spectrum. electronic circuit to
simplest version). Miss out There is a program at the make. This controls the
pages!2-19 to do this. back of the book for these four small battery-
Alternatively, you could computers, and a special set powered motors, which
make a stationary arm robot of robot instructions, called drive the robot. You
by leaving off the wheels could invent a robot of
Robotrol, which you can use your own, with up to four
and wheel motors. There are to control the robot. There motors, and use this
also customizing ideas on are also test programs to circuit to control it.
pages 20-21, so you can check the robot All robots are precise
make different works. and accurate machines
robots from with lots of moving parts
the same that have to fit together
design. for the robot to work. You
This
need to take your time
is a and follow the instructions
robot in this book very carefully
vehicle to be successful.
with a
stomized Throughout the book
cover. there are lots of practical
hints and tips on robot
building, and
explanations of soldering
and electronics. There
are also added extras to
make for all versions.

This is the complete


version of the robot. * See pages 9 and 41.
About robots
Real robots are quite different from those of
science fiction. They are computer-
controlled machines, programmed to use Toy
mobile robol
tools or move goods. The study of them is
called robotics. Robots are used in industry, There are two main types of Industrial
robot. Those with wheels or arm robot
sometimes replacing people, but often doing which move on tracks are called
work which is too dangerous for men and mobile robots. Robots which can
women. Others, like the rob ot in this b ook hold things are called arm or
and some shown on this page, are for fun or manipulative robots. The robot
learning about robotics and computers. to make in this book is an arm
and mobile robot combined.
Micro-robots
A micro-robot is a small robot controlled by a
home computer. These
pictures show some of
those available.
Armdroid
This micro arm robot has joints at the
shoulder, elbow, wrist and base.
The directions in which the arm can
move are called axes of rotation.

Turtle
Using a computer
language called LOGO, the
Turtle can be programmed
to draw with a pen as it
moves around. LOGO uses Buggy
commands like "F 20" for The Buggy is made from a
forward 20 units, or "L45" construction kit, and you
o for left 45 degrees. can add extra parts, like
? an arm, on top. It has a
light sensor at the front
Topo which detects the
Topo is designed as a difference between
household help. With "light" and "dark". You
sensors that are being can program a computer
developed, it may to use this information to
eventually find its way make the Buggy follow a
around a house to do the line. The robot in this
cleaning. book has a similar sensor.

WF
Building a robot
This cut-away picture shows the finished Wires to computer.
robot. The instructions in the book show
how to make one part at a time, and these
are painted in different colours to make it Sensor to detect when Elastic bands to pull
jaws are closed. jaws open.
easier to see what they are. You need not
build all these parts if you want to make
either a robot vehicle or a stationary arm
robot.

Sensor to detect when


jaws are open.

Sensors
The robot has simple sensors which tell
the computer when the arm is fully up or
A robot's "hand" is called a gripper. This has down, whether the jaws are holding
two "fingers" or jaws which open and close to something and if the gripper is open or
pick things up and put them down. The jaws closed. There is also a light sensor you
open to about 70mm and can lift something can make to give the robot extremely
the weight of a small apple. simple "vision".

The robot has an arm which moves up and The base of the robot is a flat board with two
down. It is designed so that as the arm moves, wheels driven by electric motors. By
the gripper always stays parallel to the programming a computer to switch the motors
ground. The arm is able to travel about 200mm on and off, the robot can be made to go
up and down. forwards or backwards, left and right.
Electronic switching circuit
You need to build an electronic circuit,
called a switching circuit, to control the
robot with your computer. This is made of
Battery wires. electronic components which switch the
robot's motors on and off when signals are
sent by the computer.
Light sensor detects
Electronic switching difference between
circuit light and dark.
Shoulder
Light shows robot is The shoulder supports the
switched on. robot's arm. Fishing line
control cables, to move the
gripper and arm, pass
through the shoulder to
motors on the base.

Sensor to detect when


Sensor to detect when arm is up.
arm is down.
Gripper motor
Gearbox to
reduce speed
of motor.

Velcro to hold light


sensor injaJace.

Left-hand drive motor

On/off light \
circuit.

There is a shopping list


of everything you need
to build the robot on
pages 39-41.

Wires to robot.

Make the red and green Make the blue and


parts for a robot orange parts for an
vehicle. arm robot.
Things you need
Here you can see all the things needed to make and control the robot.
Model and hardware shops sell most things, but you need to get the Table or bench
electronic parts from a components shop. Ask in your local
TV repair shop to find out where the nearest components
supplier is. You can also buy components by post.
There is a complete shopping list on pages
39-41, showing sizes and amounts of
things to buy, with a list of useful
mail-order suppliers.
Tools
The tools you need
are shown on
the right. ^^ ^S^{ Wire
'Scissors strippers

^Small vice or home-made clamp


V

Tenon saw (or panel saw)

Materials you need


Insulating tape
These are the materials
needed to construct the robot. Sticky tape
It is a good idea to get V
everything before you begin.
6mm square balsa spar (stick-shape)
Brass shim \ Cored
(thin metal sheet) Clear glue or solder
balsa cement
Tin foil

6-12mm thick Velcroor


plywood or chipboard double-sided
sticky tape

Thin foam
rubber
Electronic components Veroboard (used to build Computer
I ,^«^^ circuit on).
An electronic component is a BBC Model B
small device which controls
the flow of electricity. There
are many kinds, all controlling
electricity indifferent ways.
Components are connected
together to make a circuit. Those
shown here are used to make the
switching circuit for the robot.
You can find out more about
them on pages 22 and 24, and
in the shopping list.
Relay Potentiometer
(a kind of or variable Spectrum
switch). ight resistor
dependent
ight-emitting diode resistor
(LED for short).
V To control a robot you need a
(LDRfor home computer with a special
short). s socket, or port, called a
6 parallel input/output port.
Computers with this port
include the Commodore 64,
nnecting VIC 20 and BBC B. You can
block (for
connecting buy an extra part for the
wires together). Ribbon Spectrum called an I/O
cable | interface, which
enables it to control a robot.
The project robot is designed
to work with these computers,
using the program on page 36.
Fishing line
or strong
twine

Small wood or ite spirit or


2 compression self-tapping screws Draw]^n urps substitute
springs

Wheels (minimum
2 tension diameter 60mm).
springs
(sort that
goes
springy
when
stretched).
Robot construction tips
To be successful you need to Cutting balsa
cut and drill all the robot
parts very accurately and Be very careful
carefully. This page gives when using a
craft knife.
some construction hints and Always use a
tips. You can also find out sharp blade.
how to use the templates at
the back of the book.
Home-made clamp Balsa
Butterflynuts
Cut the balsa with a sharp craft on. Always hold the knife
knife, using a metal ruler as a firmly. Stand to one side
guide. Use a piece of and cut towards yourself but
hardboard or plywood to work away from your body.

Tube drill
Test bench reports
You can make a home-
made bit to drill accurate Motors
holes in balsa for tube to go
through. Shoulder
Plywood or
6mm coach ^|^ chipboard 100mm Arm
bolt 50mm long tube
Make a clamp like this to keep Gripper
materials steady while 1 Cutoff Control lines
drilling and cutting. Glue or a 100mm length
screw the clamp to your of metal tube. Cover D
workboard. Solder check
Cutting tUbe Metalrod Circuit
pushed in
up to
here.
Sensor test D
2 File one end flat.
File angle.
After building each part of the
robot, there are tests and
f Tube
Home-made clamp
checks to do to make sure it
3 Put the tube works. You could make a
Some parts of the robot are in a hand drill chuck. "Test bench report" like this
made from metal rod which While you turn the and tick the tests off as you go.
fits snugly inside thin tube. handle, get someone else If your robot fails any test,
Clamp the tube or rod in a vice to sharpen the end with a there are checks and
or home-made clamp and cut file. Use the sharpened tube adjustments to make. You
it with a hacksaw. Push a instead of a drill bit, as it is must make sure each part of
piece of metal rod inside the more accurate. It will need the robot works properly, or
clamped part of the tube to re-sharpening several times. the completed robot will not
8 avoid crushing it. work either.
World of robots
Templates Robots are generally deaf,
Templates are like patterns, dumb, blind, have no
and are used to make all the sense of touch, smell or
parts for the robot. Those on taste, and have no
pages 42-47 are for all the "intelligence" of their
parts made from sheets of balsa own. The computer acts as
wood. The one on page 41 is the robot's "brain", but the
for the electronic circuit. robot needs electronic
senses, called sensors, for
the computer to "know"
what the robot is doing.
These pictures show These robots work together
robots in use today. to weld a car body as it passes
on a conveyor belt. Other
Photocopy Robot vision robots paint the car later on.
machine

1 If possible, photocopy the Can robots walk?


template pages of this book.
You can find a photocopier in
copy shops, some post offices,
libraries and railway stations.
If you cannot find a copier,
carefully trace the templates
onto tracing paper. Only do
this as a last resort as it is
difficult to do accurately.
Scissors Robots need four or more legs
so they always have at least
three legs on the ground to
balance. Few walking robots
Photocopy of template are made because it is simpler
to use wheels or tracks.
2 Cut round the templates
with scissors, cutting a few
millimetres outside the line.
Cut each template as you need
it, or it might get lost.
Balsa Template
Some robots "see" with a
special kind of video
Glue camera. The robot's
computer is programmed
to analyse images from the
camera. Images are sent
3 Glue each template to the via an electronic circuit
correct thickness of balsa Some robots, like Hero 1,
which translates them into have a speech synthesizer
using clear glue or balsa electrical messages the
cement. The thickness is which is programmed to say
computer understands. a limited number of words.
printed on each template.
Making the robot base
These instructions show you
how to make a mobile robot, Cut on waste
either as a base for the side of line.
project or as a vehicle on its
own. Read the instructions
and the information on the
templates before you begin.
Line
Materials you need template
Base template, 6-12mm thick up with edge?
plywood or chipboard, 6mm
balsa spar, clear glue, 4 small Glue a copy of the base Use a tenon or panel saw to cut
motors and gearboxes, 8 small
screws, battery for motors (e.g. template (page 42) to a round the template. Sand the
3V motor needs 3V battery), wooden board 6-12mm thick, edges with sandpaper wrapped
bell wire or ribbon cable. using plenty of clear glue. round a block of wood.

Fix red motors


for a robot
vphir.lp anH

Position the motors and Drill through your pencil Screw each motor to the base
gearboxes as shown on the marks using a bit slightly with self-tapping or wood
template, then make a pencil smaller than the shafts of the screws. Make sure they are
mark through the fixing holes. screws for fixing the motors. firmly screwed down.

Motors and gearboxes This picture shows the insides of


The robot's wheels, arm and gripper are the type of motor and gearbox
each driven by a small battery-powered used to illustrate the project.
motor. These have a shaft at one end which They are sold as kits and are
revolves very quickly often over 2,000 the cheapest and most
times per minute. This is too fast to drive the readily available
robot, so a gearbox reduces the speed. A from
series of gears inside the gearbox lock, or model shops,
mesh, with each other. A small gear but are difficult
spinning fast makes a bigger gear turn more to assemble. Gears
slowly when they mesh. The first gear in the
series is turned by a small gear on the motor Gearbox case,
shaft, and the last turns a shaft coming out of or housing
the gearbox. This drives the robot.
10
Choose longest shaft
Don't worry if your motors and gears look different from these. for drive shaft.
Enlarge axle holes
with a drill bit if shafts
won't fit.

Wheel-drive motors Sawing


tips

-—~* VSS^

Push down on the wood


Arm motor Gripper motor to steady it. Position the
saw on the waste side of
Push the wheels onto the Balance the base to make it the line. Start by sawing
gearbox shafts as shown. If the level. Measure the distance downwards, using your
wheels are loose, wrap tape between ground and base as thumbnail as a guide.
round the shafts first. shown here and write it down. Keep the saw straight.

8 Underside of base Front

6mm approx.

Glue skids here with


clear glue.

Back

Cut two balsa spars as shown. Glue the balsa under the base This is how your completed
Sand them down 1mm shorter to act as skids to prevent the base should look. Sand the
than the height found in step robot from tipping up. They skids down if the wheels do
7, and round the corners. work best on a smooth surface. not touch the ground.

You could use a motor and


gearbox like the one on the
right from a Fischertechnik
construction kit.

Some electronic
component
shops have
.second-han
Reared motors
like this which
Gearbox you could use.

to page 20 if you only want to make a robot vehicle,


How to make the shoulder
These pages show how to make a shoulder for the arm robot Materials you need
There are two joints in the shoulder to pivot the arm, letting
Shoulder templates A, B, C, D,
it move up and down while keeping the gripper parallel 90 x 6mm balsa sheet, 6mm
with the ground. The shoulder is quite easy to make, but balsa spar, metal or plastic
be careful to drill the holes for the pivots accurately. tube (max 6mm diameter),
metal rod (to fit snugly inside
tube), clear glue or balsa
cement. Tool kit including
6mm drill and drill bit or
Robot joints home-made tube drill (same
Arm robots often have three main parts joined diameter as tube).
together at pivots. The point where the parts The tube for )
are fixed is called a joint, or axis. These this part is 'a
pictures show the special names tricky to cut -
for the joints and the directions in it does not
matter if the
which they allow the robot to lengths are
move. Each axis is said to
give a robot one degree of
freedom because it
allows movement in
one direction.
The project
robot has
one degr
of free
in its
should

Glue the shoulder templates


Makingjoints Balsa moving parts
to 6mm balsa sheet and cut
The robot's moving parts round them with a craft knife.
are jointed, or pivoted, with Lightly sand the edges.
shafts made from metal
rods. The shafts will wear
out the moving parts they
rub against. To overcome
this, "bearings" made from
metal or plastic tubes are
fixed in holes the shafts
pass through. Bearings also
reduce the amount of
friction on a shaft, allowing
it to move smoothly. You
could replace all the shafts
and bearings in the robot
with cocktail sticks or thin Gently clamp both shoulder
wooden dowel, but it would sides together. Drill through
Cut-away
not work so well or last so long. drawing the hole positions printed on
12 the templates.
Only drill this hole if you
want a light to tell when
the robot is switched on.

Start
with pencl
if using
drill bit.

Gently clamp the shoulder Mark a piece of 6mm spar Gently clamp a length of metal
top. Drill a 6mm hole where 38mm long. Cut it with a tenon tube as shown on page 8. Saw
printed on the template. This saw, or a craft knife by cutting four 12mm and three 50mm
hole is for the on/off light. half-way through each side. pieces with a junior hacksaw.

Go to step 8
before glue
sets.

Drill bit slightly


larger than tube
Line these pieces up carefully.

Hold the pieces of tube and file Glue together the shoulder templates to help you line all
the ends flat. Twist a drill bit sides, front, top and 6mm spar the pieces up. Lightly sand the
in the ends to remove rough as shown above. The glueing shoulder with fine-grade
edges, or burrs. positions are printed on the sandpaper and a block.

8 Test bench report 12mm


tubes
stick out
of sides
by 6mm.

Front
Back
view

Shoulder Push the pieces of tube into Glue the completed shoulder
Dush a length of tube through the holes in the shoulder
^_
to the base over the glueing
the bearing holes to check tha I sides. The tube lengths for positions on the template,
theyline up. If not, move the each hole are on the templates. using plenty of glue. 13
sides before the glue sets.
Making the arm
You can find out here how to make the
robot's arm (coloured dark blue on page 4).
Some parts made at this stage are for
attaching other parts of the robot later on, so
don't worry if you cannot see what
something is for just yet. Try to drill all the
holes accurately.

Materials you need


Arm templates A, B, C, IVzm x 6mm balsa spar,
75mm x 3mm balsa sheet, metal or plastic tube
(max. 6mm diameter), metal rod (to fit snugly Measure and cut these lengths of 6mm spar: 4
inside tube), clear glue or balsa cement, at 250mm, 6 at 40mm, 2 at 24mm. Use a tenon
paperclip. Tool kit including drill bit or home- saw, or a craft knife by cutting half-way
made tube drill (same diameter as tube).
through each side. Lightly sand the ends.

I File the ends flat and


Drill bit or home- I ¥ \ remove burrs with a
made tube drill "" ' ~ ( drill bit as shown on
S page 13, step 6.

Vice or home
50mm 10mm made clamp

Glue the 40mm lengths of spar Measure and mark the centre Saw one piece of tube 135mm
to the 2 50mm pieces in the of each joint. Drill a hole the long and four pieces 38mm
positions shown above. Use same diameter as the tube, long. Also saw two pieces of
plenty of glue for strength. using a bit or tube-drill. metal rod 70mm long.

135mm tube /O 6 3mm balsa sheet


-^
•/'~
38mm tube sticks out
1mm either side.
1

Push the 135mm tube and two held firmly in the holes. If not, Glue arm templates A, B and C
of the 38mm pieces through put a little glue in the holes to to 3mm balsa sheet. Cut round
the holes in the spars as shown stick them in place, without them, making sure you cut out
above. Make sure the tubes are getting glue in the tubes. the slot in piece A.
Use the corner of a piece of
paper to check right angles
3
Right angle P, Arm top

Right angle A Arm bottom

Carefully glue the parts made right angles to the long spars. lengths of spar on the template
so far to the positions marked Make adjustments by moving glueing positions, as shown
on the templates. Make sure the spars slightly before the by the arrows above,
the short lengths of tube are at glue sets. Then glue the 24mm

9 Test bench report


Robot arm
Position the arm bottom
in the shoulder and slide
one 70mm metal
rod through the
joint.
Use orange coloured
piece.

Glue the remaining 38mm Cut the end off a paperclip


lengths of tube in front of the with pliers or cutters. Push it
24mm lengths of spar. Use through the marks at the end
plenty of glue. of template A and bend.

Industrial arm robot


This industrial robot has Take care
three degrees of freedom. not to push
bearings out.
Its arm goes in and out

telescopically, the base revolves and the


arm goes up and down like the robot in Repeat the same
this book. Robots like these are fixed to the procedure with the arm
floor, so they cannot move around.____ j top. Check both arm parts
move freely up and 15
down. Check the angles
in step 7 if they do not.
Making the gripper
The next four pages show you how to make Robot wrists
the robot's gripper. The gripper is made up Gripper
of two jaws. You need to repeat steps 6 to 9 Wrist
to make both jaws. This part of the project is
fiddly to make, so take your time and cut and
drill all the parts as accurately as possible.

Materials you need


Gripper templates A to U, 3mm and 6mm thick Roll Pitch Yaw
balsa sheet, 6mm balsa spar, metal or plastic tube
(max. diameter 6mm), metal rods (to fit snugly The part between a robot's arm and gripper
inside tube), stiff wire (paperclip or coathanger), is called the wrist. Wrists can be designed
fishing-line, two elastic bands (about 80mm long), to allow three different movements, called
two small tension springs or short elastic bands yaw, pitch and roll. The wrist made in
(max. stretch 25mm), battery for motors, sticky
tape, clear glue. ^ this book only pitches.

Grippers

Cut out and glue gripper Measure and cut these pieces
templates A to U to 3mm or of 6mm spar: 2 at 55mm, 4 at
6mm balsa sheet according to 15mm and 2 at 20mm. Use a
the thickness printed on each tenon saw or cut through the
template. Clamp matching balsa both sides with a craft
parts together. Drill holes with knife. Lightly sand the ends of
a home-made tube drill or each piece using fine
suitable bit, where printed on sandpaper and a block.
Glass
the templates. Also drill 2mm
holes through parts G, H, I, J, K 12mm long rod /70mm long rod
and N, where marked.
15mm long tube
Industrial robots have
V grippers designed for the
job they do. The pictures
3mm long tube above show magnetic and
vacuum grippers, often
Cut the lengths of tube, metal rod and stiff wire as shown above. used to handle metal or
Use a vice or home-made clamp as shown on page 8. sheets of glass.
16 File ends flat and remove burrs from
tube by holding each piece on a
length of metal rod.
Cut along here with
craft knife and lightly
sand afterwards.

Drill a 2mm hole through the Push the 3mm and 6mm tubes Glue a 55mm and 20mm spar
sides of parts S and T, 15mm through the holes. You could to part C where printed on the
from one end as shown. Clamp push a length of rod in first template. Trim the end of the
the parts to drill them. and slide the tube down. 20mm spar with a craft knife.

12mm
.,_ metal
/rods

Avoid getting glue in


bearing holes

Place parts S and R over the Glue part D to the top of the to part C and part H to part D,
holes in part C. Then slide two balsa spars so it fits over the so that the shapes of all the
12mm metal rods through the metal rods and lines up with parts line up. Avoid getting
bearings as shown above. part C below. Then glue part I glue in the bearings.

Repeat steps 6 | Q Position the two jaws so


to 9 to make
the other jaw. that the holes in parts R, S,
T and U line up with the
holes in part K. Then
carefully slide the four
18mm metal rods through
the bearings in the holes.
Next, push an 18mm
length of stiff wire through
the hole at ttie front.

Apply glue to part E where


printed on the template and
stick it to the part made so far,
as shown above.
18mm metal rods Continued
Gripper and arm
Making the gripper control lines
Fishing-lines wound round
the shafts of the motors at the
back of the robot operate the
arm and gripper. These are
called control lines.
1 Cut one length of fishing-
Avoid getting line, or strong twine, 280mm
glue in bearing long, one 400mm and one
| Glue here
holes. 500mm. t~
i \
t~,r~:"~~*™ Hole at back

Slide part N over the four


metal rods. Then glue part M
on top of this and part L on top
of part K.

13

If knot pulls
through tie a
small washer
on the end of
the line.

Check spars are level. 2 Thread the 400mm line


through the hole at the back of
the wrist, round the stiff wire
Glue four 15mm long spars Now glue the parts just made and through parts S and T. Tie
onto parts O and P, making onto the glueing positions on a knot at each end and tug to
sure they line up with the part Q. Make sure the spars are check it will not pull through
positions on the templates. level. This part is the wrist. the holes in S and T.
Stick tube with tape if
glue not strong
Test bench r
enough. Gripper

Tubes
must
line up

Pull here.
Glue four 15mm lengths of Glue the completed wrist to
tube as shown, using plenty of the gripper as shown, using Pull on the line to close the
glue. Try not to get any glue the dotted lines printed on jaws. Check the threading and
inside the tube. part Q as a guide to line it up. knots if this does not work
18
properly.
3 Remove the arm top (reverse of test
procedure on page 15). Line up the tubes 70mm metal rod ,
at the ends of the arm bottom and wrist.
Then slide a 70mm metal rod through the
tubes to connect both parts.

4 Hook a short tension spring or elastic band over the Slide


gripper line (shown red in the picture). through
tube.

5 Tie the 50mm line (shown in blue) to the other


end of the spring. Thread the line through the
shoulder as shown.
8 Replace the arm top
500mm line , and join to the top of the
6 Hook another
spring over the wrist in the same way as
wire loop. Tie Stiff wire -\
the 2 80mm line
(shown in red) to
the spring and
thread through
the shoulder
as shown. Elastic bands should
just begin to stretch
when gripper is fully
open.
Elastic band

for the bottom. Hook two


elastic bands over the
long tube and trap the
Max. other ends inside the
stretch
25mr jaws with the remaining
j Cut-away
/ drawing to see
pieces of stiff wire.
/ where line goes.
motor
Test bench report
Control lines
Connect two wires to a
battery and-touch them on the
^•••••iiiii^nfti
^ Pull each line tightly
Correct
round the motor shaft voltage
shown and tie it. battery for
Stick tape over the lines voltage of I
to stop them coming off. motors

terminals of each motor in


Sticky' Strip wire at ends
turn. As the motors turn they
tape should wind the slack line
Arm motor- round the shafts. Check the
line and tape if it does not work.
Customizing your robot
These pages show a cover to
make, with tips on painting
and ideas on customizing
the different versions of the
robot. There are lots of ways
of making the robot look
special by adding extra 1 Vimm balsa sheet
parts, such as a cardboard
body. The cover has a flat
top to make this easier to do.
Materials you need Cut out templates A to I and Cut these lengths of 6mm spar:
Cover templates A to I, IVimm
glue them to 1 V^mm balsa 4 at 44mm, 6 at 70mm, 4 at
balsa sheet, 6mm balsa spar, sheet. Cut round the templates 130mm, 1 at 159mm. Lightly
sticky tape, clear glue. with a craft knife. sandpaper the ends.

Customizing ideas
These pictures show some
customizing ideas. You could
add stripes, numbers or
mudguards to your robot, or
even make it look like a bug-
eyed science fiction monster.
Give your robot a name or
number with rub-down
lettering or paint brushed
through a stencil.
Glue the pieces of spar to parts Glue the side pieces to the The robot below is covered
A,D,E,F,G,HandI,onthe back as shown. You may have with synthetic fur fabric. Use
glueing positions printed on to support the sides with a clear glue to stick it on, but
the templates. matchbox while the glue sets. make sure moving parts are
not obstructed.
Test benchreport
Synthetic fur fabric
/-*,w

Slide front on. Cover


Glue parts B, C and E on top, Slide the cover over the hack
template side down. Make of the robot and push part A
sure the slot in part E faces the onto the slanted sides. Check
20 front of the cover. that the cover sits flat on the
base. If not, tape it down but
do not use glue.
These are the things you need j
to paint and sand your robot. J
Sanding
Turps substitute or ling block (scrap
white spirit
Undercoat

100 gradef
sandpapfe
Glossjjir-'*
Paper to protect table enamel paint
tub-down 'Remove wheels
Bering and. before painting Lightly sandpaper the robot to give a smooth
pflfetape surface for painting. Gently rub the surfaces in
for'W
custon Test paint on scrap of, the direction of the balsa grain with fine
balsa before using. sandpaper wrapped round a block.
MMtt
Cut section out of Use aerosol'
washing-up liquid
Painting paints in a
bottle for mudguards. well-
ventilated
area,
preferably
outside.

Use paint sparingly


to prevent drips.

,
/Y
..-.
Ping-pong
Use an oil-based undercoat to seal the balsa
and lightly sand again before painting atop
V ball eyes coat of "enamel paint. Avoid getting drips of
paint in the joints.

Cardboard box

Coloured plastic tape

V Coloured plastic tape is


good for making
Make a monster body
from a cardboard box
stripes. glued to the cover.
\ 21
Electronics and soldering
The next few pages explain the electronic parts needed to Things for soldering
control the robot with a home computer. Here you can find Soldering is a way of
out about electronic circuits and soldering. Electronics is joining two bits of metal
about the control of tiny electric currents with devices called together with another
components, soldered together to make circuits. metal called solder. These
are the things you need.
What is a circuit?

Current flows round


this way

A circuit is made by
connecting components
to a battery so electricity 1 How to solder
flows through them to get
a certain effect. The Component
picture above shows a
simple circuit. When the"
switch is on, current
flows from the battery,
through the lamp,
through the switch and
back to the battery.
Veroboard
Bend the component's legs Turn the Veroboard over and
and push them through the bend the legs out slightly
holes in the plainside of the using pliers. This stops the
Veroboard. component falling out.

Plainside Cored solder S very hot.

You connect components Damp


by soldering them to a sponge
special board called
Veroboard. This has rows
of holes with copper
tracks on the back linking
•••- tf ^(S&?W
them together. ^&&.itt^>l^fi£c&
Component legs are
pushed through the holes Plug in the soldering iron and Carefully touch the bit with
and soldered to the track. wait until the bit heats up. solder so that a drop clings to
Current flows along these Then wipe the bit on a damp it. This is called "wetting" the
tracks. sponge to remove old solder.
22 bit.
Make sure the joint looks
shiny. Re-solder if not.

6
Press leg so
it does not
fly up.

Touch one side of the leg, other side. Hold them there for Trim the legs with wire cutters
where it touches the track about a second, until a blob of close to the solder. Hold the
with the bit, and at the same solder flows round the leg. board away from your face and
time touch the solder on the Then let the joint cool. put your finger on the leg.

Stripping wire
Stranded
wire
Plastic
cover

15mm

Wire is used to connect one track to another in


a circuit, and to connect to a battery. Remove To make a good electrical connection and stop
about 15mm of plastic from each end, using stranded wires coming apart, you need to coat
wire strippers adjusted to cut only the plastic, the stripped ends with solder. This is called
not the metal core. Grip the strippers firmly, "tinning". Stroke the wire with the bit and
and pull while holding the wire. solder until lightly coated.

Practise your
soldering Pieces of Solder check.
. paperclip I Jit/

Slide along |
groove
between
tracks.
^~^,
o lined tract
Solder!
; Workboar
Score a small piece of
Veroboard with a craft knife,, It is very important not to join the tracks with solder
and snap it to break a piece off. j accidentally. Inspect your practice soldering to see if
Try making lots of joints in this has happened. If so, remove any solder by carefully
adjacent holes using pieces running a hot bit between the tracks._______________
of straightened paperclip. 23
Always pull the plug out when you have finished soldering.
Variable resistor or
Electronic components potentiometer - adjust
resistance by turning shaft.

These pages show all the Resistors Light Dependent


components used to build Fixed resistor Resistor (LDR)
the switching circuit and Resistance varies
according to
sensors, with hints and tips amount of light
on identifying them. The shining on window
ones you buy may not look
exactly the same. If you Resistors reduce the amount of current passing through them.
Some do this by a fixed amount and others are adjustable.
cannot identify a component Coloured stripes on fixed resistors are a code to tell how strong
or its legs, ask your supplier their resistance is. Crack the code using the chart opposite.
to help.*
Mark or spot on
LED is short For case identifies
LEDs collector or
Light Emitting
Diode. emitter. (Check
with supplier
Negative which is which.)
legends Shape inside
case

^
in larger
shape
inside
case, or in
a flat edge
on the ^
case. /
Positiveleg
Current flows in one direction LEDs glow like tiny bulbs Transistors act like switches
through diodes - like a one- when current passes through to turn current on or off, or to
way street for electricity. They them. Like ordinary diodes, control the strength of current.
have a stripe at one end which current only goes one way. They have three legs, called
identifies which way round They have a positive leg, "base", "collector" and
you connect a diode in a connected to the positive "emitter". The centre leg is
circuit. Current only flows terminal (+ve) of a battery, usually the base and the case
when a diode is correctly and a negative leg connected has a mark to identify the
connected. to the negative terminal ( ve) others.

Relays
A relay is a special kind of switch activated by
an electromagnet. The picture on the right
Relay shown actual size.
shows a cut-away of the type used in the
project. The coil in the centre becomes an
electromagnet when current is passed through
it. This attracts the springy arm above it,
switching it from one of the contacts at the end
to the other. The magnet works as long as
current flows, but as soon as it is turned off the These are called
arm flicks back to the other contact. This effect single-pole (or
is used to switch the robot's motors on and off. switch) changeover
There are many types of relays, some with relays. Only some
more than one switch inside. See page 40 to makes have a clear
24 find out which you need. plastic cover.

*It is a good idea to take this book with you to the shop. See the shopping list on
page 40 for the components you need.
Resistor codes

How many ohms are these


resistors? Answers on
page 48.

This shows how to read Resistance is measured Robots need electronic senses, or sensors,
resistor codes. in ohms (written ft or to give their computers information, or
,1st digit Kn for 1,000 ohms). feedback, about the outside world or the
,2nd digit One stripe shows how robot itself. This robot truck has a kind of
- Number of accurate the resistor is radar sensor to detect obstacles in its
noughts (don't worry about this path. The instant anything is detected it
one), and the others sends a message to an on-board
show its resistance. The computer, which is programmed to
first and second stripes control the robot to steer clear.
Ac give the first two digits
stri in the number of ohms.
(gol
silver, red The colour of the third
or brown) shows how many
noughts to add to this.

The simplest kind of sensor is a switch.


The arm robot above has a switch like a
lamp switch under its elbow. The switch
is connected to its computer. As the arm
bends, it touches the switch. This triggers
See page 41 to the computer to turn off or reverse the
find out how to arm motor to avoid damaging the robot.
identify relay The project arm and gripper have similar
pins. sensors. A mobile robot could also have a
switch under its bumper, to detect
collisions.
25
Making robot sensors
The robot's sensors tell its computer when
the arm is either up or down and whether Materials you need
3m bell wire or ribbon cable, 2 x 50mm stiff wire
the gripper is open, closed or holding (straighten out a couple of paperclips), insulation or
something. These are switches, made from sticky tape, double-sided tape, 50mm long steel nail
two pieces of metal which make contact or metal tube, 2 compression springs about 5mm
diameter x 25mm long (e.g.old ballpoint pen springs)
when the arm or gripper have moved as far drill bit same diameter as springs, brass shim or tin
as they will go. The computer program on foil about 60mm square, thin foam rubber about
60mm square x 5mm thick, glue, drawing pin, 12mm
page 36 makes the motors stop or change or 6mm balsa spar, soldering and tool kits.
direction when the switches make contact.

fS~

Run wire
Twist wires round to through
make it easier. shoulder or down
Measure and cut two 400mm Bend one of the stiff wires over Stick the other stiff wire under
long wires and strip and tin the front of the shoulder as the arm with tape. Position it
both ends. Solder one end of shown. Cut off apiece of tape so that the stiff wires touch
each to two 50mm long bits of and stick the wire to the front each other when the arm is
stiff wire.* of the shoulder. right down.

1 Arm up sensor
Bit of Bare metal
steel nail

Spring

Could use metal tube,


but clean and test
to see if
solder <?j No tape under
works. here
30mm
Strip and tin the ends of Cut a 6mm spar 50mm 'Cut a piece of spar 30mm
two 400mm wires. Cut a long. Tape the nail on top long and wide enough to
50mm length of steel nail, of the sparwith the wire hold your spring. Drill a
clean it with sandpaper (or running under the tape as hole in one end about
it will not solder) and shown. Make sure the 10mm deep the same
solder a wire to it. Twist centre part of the nail is diameter as the spring.
the other wire round a bare and that there is no Then push the spring in
spring and solder. tape under the balsa. the hole so it sticks out.
26

*See page 22 to find out how to solder.


You may find it easier
Gripper closed sensor to remove gripper.

Matchstick

Could use »j Double-sided


foil instead.»*; tape under
here.

lick foil with glue or . Make sure foil and


double-sided tape. Brass shim
shim don't touch.

Stick tin toil to the face of the Cut a piece of foam 55mm x Stick a thin strip of double-
right-hand jaw. Strip a 600mm 30mm and a strip of brass sided tape to either end of the
wire and tape one end to the shim 15mm x 40mm. Glue or jaw. Stretch the foam and stick
foil. Glue a piece of matchstick tape the shim to the foam. it to the end of the jaw and the
to the jaw as shown. Strip a 600mm wire and tape it matchstick.
to the shim.
Leave wire
4 Gently bend the wires loose here.
from the jaw and tape
them to the gripper.

5 Glue a piece of foam


to the other jaw to help
the gripper hold things.

See page 33
for sensor
tests.

1 Gripper open 2 Follow step 3 in the yellow


sensor boxes to makes this part.

600mm wire

"^Solder
Glue the part made
in step 2 to the back of the Let drawing pin cool.
shoulder, about 25mm up
from the base. Then glue
the part made in step 3 to Strip and tin a 600mm wire Make another spring part. -. '
the lower part of the arm so and solder one end to a drawing Glue it to the side of the wrist
the spring touches the nail pin. Push the pin in the gripper so it touches the drawing pin
when the arm is fully up. to line up with step 2. when the gripper is fully open.
27
How to make a light sensor
You can find out here how to make a light
sensor, as an added extra for any version of How light f- Resistance
sensor in ohms _
the robot.* This enables you to instruct the High when f\ Low when
robot to follow a line drawn on a big sheet
wo
of paper, or "look" for bright objects. There
is an example of how to instruct the robot
and light sensor on page 39. You can also
find out how to make an optional on/off
light on the opposite page. iilsor is made from alight
dependent resistor, connected to the
Materials you need computer via a circuit, where there is a knob
Sensor templates A to F, 1 Vzmm balsa sheet, Velcro, to adjust its sensitivity to light. The LDR
sticky tape, dark paper, 2m bell wire, LDR, LED, sends an "on" message to the computer
10 hole connector block, 330(1 resistor, 2 small self- when light shines on it and an "off"
tapping or wood screws, soldering and tool kits. message when it is dark.__________

Making the light


nsor

Strip and tin each end of two Cut out a piece of dark Cut out light sensor templates
500mm wires. Then solder coloured paper or thin card A to F and glue them to 1 Vainm
one end of each wire to the and make a tube round the thick balsa sheet. Cut each
legs of an LDR. LDR. Stick the tube with tape. piece out with a craft knife.

Glue the front, back, top and Place the paper tube inside the Cut two bits of Velcro 70mm
sides together as shown. Hold box with the wires poking out long. Separate the Velcro, glue
each part while the glue sets. of the holes at the back. Then one bit under the sensor and
Don't glue the bottom on yet. glue the bottom on. two bits to the robot. * *
*If you don't make the light sensor, leave out the * *See opposite to find out how to
potentiometer in the circuit on page 32. connect wires up.
Connecting up the
On/off light
robot's wires
All the wires from the robot's 1 Strip and tin the ends of
sensors, motors and LED (if two 250mm long wires and
you add one) are connected LED
one 100mm wire. Carefully
into a connector block. This twist one end of each
makes the robot ready to 250mm wire round the legs
connect to the switching of an LED and solder them
circuit explained on page 30. in place. Then wrap sticky
tape round each join. Note
which wire is soldered to
100mm
the positive leg. wire

2 Feed the LED wires


through the hole in the top
of the shoulder and push
the LED in as shown. Fix the
Strip and tin one end of eight LED in with the plastic
300mm long wires. Solder the sleeve supplied with it (not
tinned end of each wire to Tape wires
all have one) or with Positivijf /inside without
each of the motor terminals. plasticine. obstructing arm
movement.
2 Self-tapping
o^ wood
^ screws 3 Feed the wires through the
bottom of the shoulder. Tape a
330ft resistor where marked
on the base template. Then
solder the wire from the Resisto
positive leg of the LED to one
end and the 100mm wire to 100mm
Screw a connector block with wire
the other.
ten pairs of holes to the base.

Screw wires in 1 Wire from LED positive leg via 330H resistor.
this side. Wire from LED negative leg and one from each
2
sensor (including light).
3 One wire from each arm sensor.
4 One wire from each gripper sensor.
5 One wire from light sensor.
6 One wire from arm motor.
7 One wire from gripper motor.
8 One wire from left drive motor.

Write numbers by the side of 9 One wire from right drive motor.
the connector block. Thread 10 One wire from each motor.
any loose wires through the Screw the wires into the this chart. There are 18 wires
hole in the shoulder. connector block as shown in with the LED, 16 without.
29
Use the same hole numbers as shown above for all versions of the robot. Do this
carefully, checking each wire as you go.
Making a switching circuit
These instructions show
how to make the switching Things you need
circuit which connects the Relays, transistors, diodes,
resistors, potentiometer (see
robot to the computer. It is page 40 for exact types), bell
important to follow them wire or ribbon cable,
very carefully, as one mistake Veroboard, soldering kit and
tool kit, including drill bit
could damage the circuit or (about 5mm).
your computer. The template
on page 41 helps identify
where components go.

Important See page 41 to


check relay pin
numbers. DO
NOT BEGIN
UNTIL YOU
HAVEDONE
THIS.

Cut a piece of Veroboard 31 Turn the Veroboard over and


tracks by 50 holes long. cut the track at the holes
^Photocopy or accurately trace shown in the chart. Identify
the circuit template on page the holes by pushing a pencil
41. Cut it out with scissors and point through the template.
glue it to the plainside of the Clamp the board and cut the
Veroboard so the crosses line track with a drill bit. Check the
up with the holes. track is cut through.

Relay 1
Pin No. 1234
Hole a8 Z8 V8 a5 Z5 V5
Relay 2
Pin No. 123
Hole alB Z18 V18 a!5 Z15 V15
Relay 3
Pin No. 1 2_ 3_ 4_5
Hole a28 Z28 V28a25 Z25|V25
Relay 4
Pin No. 1
Hole a38 Z38 V38 a35 Z35 V35
Relay 5 alO a20 a30 a40 H40 G23
Pin No.
Hole H38G38C38 H35G35C35

Push the legs of five relays Push the legs of six transistors Push the legs of five diodes
through the holes shown in through the holes shown in through the holes shown in
the chart. Bend the legs out the chart. Solder transistors to the chart, with the striped end
slightly as you go, then solder the track quickly to avoid in the hole marked in yellow.
30 them carefully to the track. heating them. Then solder to the track.
Transistors: Ask your supplier which leg is
nearest spot or other mark on case (see page 40).
Put tape round
erminals after
t nt ometer soldering. Push wires
J through.

Brown/Black/Red

2K2H Red/Red/Red
E6/M6 E8/L8 143/148 O43/O48

6K8n Blue/Grey/Red
ell/ell c21/e21 c31/e31
T10/Z10
40/Z40
Push the legs of fourteen Strip and tin the ends of two G39/T38 R4/Z4
resistors through the holes 150mm wires. Solder them to P24/Z24 O34/Z34 O41/B44
shown in the chart, bend the the centre and outside tag of a P41/b32 Q41/b22 R41/bl2
legs out and solder them to the 100K potentiometer. Solder A3/S3 E4/X4 I24/K24
G25/N41 K42/e42 C34/V34
track. one wire in E16 and one in N16. D34/G34 E34/H34

Strip and tin the ends of


twenty-six 150mm wires.
Solder them as loops between
the holes shown in the chart.
Check them as you go.

Cut 500mm of 10-way ribbon Cut 2m of 10-way ribbon cable Strip and tin the ends of five
cable or ten lengths of bell or ten lengths of bell wire. 200mm wires. Tape labels to
wire. Strip and tin the ends. Strip and tin the ends. Tape them and solder one end of
Tape labels to them and solder labels to them and solder them each wire into the holes
them in the holes shown. in the holes shown. shown above. 31
IMPORTANT: Check no tracks are joined, or you could damage your computer.
Connecting the robot, circuit and computer
These pages explain how to 1 Connector block Computer
connect the switching 1 inside robot connector block
circuit to the robot, batteries
and computer. It is very
important to read the
instructions before
connecting up, and then Circuit
follow them carefully, or wires
GROUND
you may damage your
computer. Connect all the circuit Connect all the circuit
robot wires into the computer wires into
connector block fixed to another connector block
Relay power the robot as shown above. with ten pairs of holes as
Check that the wires are in shown above. Label the
the correct holes. block with tape as shown.
Feed wires Computer
through slot at connector
back. ock

Instead of a 12 volt battery


for the relay power, you
could join two 6 volt Switching circuit
batteries together as
shown above. Motor batteries
Power supplier (must be
d.c., or direct current).

Positive wire Negative

Mark
terminals
with tape.

v.
You could use a 12 volt
power supplier from a slot
car set. Not all power Connect the motor battery
supplier terminals are wires to two batteries as
marked +ve (positive) and shown. Connect the wire
ve (negative). Test which labelled COMMON Connect the relay battery
is which with a IK resistor between the + ve and ve wires to the +ve and ve
and an LED as shown. The battery terminals, using an terminals of a 12 volt
LED only lights up when extra wire. Use two battery. Some alternative
its negative leg is batteries of the same power supplies are
connected to the negative voltage as your motors explained in the yellow
terminal. (e.g. 3 volt motors need panel on the left.
two 3 volt batteries).

Turn the page before switching


your computer on.
Test bench report
pmnumDerj connector DIOC
Circuit Loose

k/n 10
* * Push plug in ••IT
i User port

• ;ii.;.U ,•. •.•-•• -..iirj
/ :>•.;:-..• ,. ••••••• ••'•")
.• i '.:':''''•'. I' '• * : :; , • . }

.-J4:
16
18

19 17 15 13 11 9 7 5 .') 1
marked "User port" on the
User port numbers Top f
BBC. Buy one with a length of
Test the circuit before 20 18 16 14 12 10 8 6 4 2 ribbon cable attached, and
connecting to your You need a special plug called connect to the computer
computer to see if it a 20-pin I.B.C. plug to connect connector block as shown in
switches the motors on and the circuit to the socket this chart.
off. Strip three wires and
connect them as shown to Commodore 64 and User I/O pin Label on computer
numbers connector block
the computer connector VIC 20 tJLYqlts
block and a 6 volt battery -N ___ __
(the other batteries must be _cT 0 (motor polarity)
connected too). Touch the D 1 Tright drive motor)
loose wire in holes 1,2,3 2 (left drive motor)
3 (gripper motor)
and 4, one at a time. You Push plug in H 4 (arm motor)
should hear a relay click I/O port 5 (Tightsensor)
and one motor start as you K 6 (gripper sensor)
try each one. Remove the 7 farm sensorl
loose wire.
4 5 6 7 9 10 11 12
of ribbon cable and strip and
m Sensor test 1/0 port numbers Top 4
tin the wires at both ends.
ABCDEFHJKLMN Connect the wires to the edge
Use a plug called an edge connector and computer
connector for these connector block as shown
fave the
computers. Cut a short length above.
battery above in ZX Spectrum Interface Label on computer
"place (not shown in pin number connector block
picture). Solder three wires See page 40 + 5V +5 Volts
-ov GROUND
and a 330ft resistor to an £± Q 0 (motor polarity)
Expansion
LED. Put the + ve wire in the port 1 (right drive motor)
5 volt hole. Touch the other 2 (left drive motor)
wire in these holes, while 3 (gripper motor)
4 (arm motor)
manually moving the robot
(remove wires and battery -rs- 5 (light sensor)
6 (gripper sensor)
afterwards): Interface 7 (arm sensor)
Hole What should happen You need a special interface instructions, connecting a
3 LED on when arm fully
up or down. circuit which plugs into the short length of ribbon cable
4 LED on when gripper expansion port. There are a between the interface and
fully open or closed number of types and they give computer connector block as
5 LED off when light sensor
pointed at bright light. eight input and eight output shown above.
lines. Following the interface
Do these
checks if the If everything
tests don't fails, see page 33
work: 48.
Test programs
Here are some tests to check the robot is "start-up" routine to do each time you use
working correctly before typing in the main the robot. This makes sure the motors do
program over the page. There is also a not start before you are ready.

"Start-up" routine "BBC ?liFE62=31 Sensor test


?iFE60=0 This checks to see if the
1 Connect the robot and
sensors are working
computer as shown on page * VIC 20 POKE 37138,31
32. Disconnect the battery properly. Check all the
POKE 37136,0
wires on the sensors if
COMMON wire. Switch the *C64
computer on, then type in the POKE 56579,31 any part of the test fails.
POKE 5.6577,0 1 Unhook the fishing
lines on the right.
* Spectrum ' line and elastic bands on
2 Re-connect the COMMON the arm and gripper so
wire. either POKE port nu§ber,0 or OUT
port nu«ber,0 you can move them by
3 Press RETURN (ENTER on hand. Then type the
Spectrum). Now you are ready The commands you use for program for your
to type in the main program or the Spectrum depend on the computer and type RUN
interface you buy. See page 40. when you are ready.
test programs.
"BBC 10 PRINT 7&FE60
Motor Test 20 BOTO 10
1 Type in the program below for your computer. Type RUN *VIC20 10 PRINT PEEK137136)
when you are ready. 20 BOTO 10
*BBC !0 *C64
*C64 10 PRINT PEEKO6577)
20 PRINT "TRY A NUMBER" C64 users use VIC-20 version but replace 20 BOTO 10
30 INPUT X:?&FE60=X 37136 with 56577
40 I$=6ET$:60TO 10 Spectrum
* Spectrum 10 either PRINT PEEK (port nuitber)
*VIC 20 10 POKE 37134,0 10 either POKE port nuiber,0 or OUT port nuiber,0
20 PRINT "TRY A NUMBER" 20 PRINT 'TRY A NUNBER 1 : INPUT X or PRINT IN (port nunber)
30 INPUT X:PQKE 37136,X 30 either POKE port nuiber,X or OUT port nuiber,X 20 BOTO 10 Use these
40 SET A*:IF A$="" THEN GOTO 40 W IMNKE«=" THEN 60TO 50 P °rtnumber programs
50 GOTO 10 depends on for light
60 SOTO 10 sensor test too
interface.
2 The computer makes the Arm/gripper Number on
Number to Motor Direction position screen
motors run in one direction or type in to watch robot
program should go Arm half up A number
another, depending upon Arm up Number
which way round the motor 2 Right drive Forwards Arm down above-128
terminal wires are connected. Gripper half open A number
3 Right drive Backwards
When "TRY A NUMBER" Gripper closed Number
appears on the screen, type the 4 Left drive Forwards Gripper open above-64
numbers shown in the chart, 5 Left drive Backwards 2 Hold the arm and
one at a time. Watch each gripper in each of the
motor to check it runs in the 8 Gripper Close
positions shown in the
direction shown. Press 9 Gripper Open chart above. If the sensors
RETURN (ENTER on are working correctly the
16 Arm Up
Spectrum) to stop the motor. numbers in the chart will
Swap over the terminal wires 17 Arm Down appear on the screen for
of any motor running the 0 To stop the test each position.
34 wrong way.
*To stop the program type: BBC: ESCAPE then NEW C64/VIC20: RUN /STOP then NEW
SPECTRUM: BREAK then NEW
Light sensor Computer control
1 Type in the sensor test The computer program over
program. Point the light the page controls the motors
sensor at a diffused source according to instructions
of light, towards the you give the computer. It
window, for example. does this by sending and
2 Twist the shaft of the receiving electrical voltages
potentiometer connected (about 5 volts) through the
to the switching circuit. wires connected between
This adjusts the sensitivity the switching circuit and
of the light sensor. Make the computer's port
adjustments with the (usually called a parallel
sensor pointing towards input/output port). The
the light, until you see a port has eight separate wires
number on the screen. inside, called lines.
When you put your hand Inside the computer, bit in a byte travelling in
over the sensor, you each instruction is parallel along the separate
should see the same converted into a number in lines.
number minus 32. binary code. Binary is a Some lines, called output
Adjust the light sensor number system using only lines, send messages to the
according to what you use two digits, 0 and I, to motors, while others, called
it for. For example, to get represent any decimal input lines, receive
the robot to follow a black number. Individual digits messages from the sensors.
line drawn on paper, are called bits (short for The program sets five lines
position the sensor on the binary digits), and they are to output and three to input.
front of the robot. Then represented by an electrical One output line controls the
move the robot from side pulse (about 5 volts) for a I direction the motors turn,
to side over the line, and no pulse for 0. Most or their polarity, and each of
adjusting the potentiometer home computers use groups the other four switch one
at the same time to read a of eight bits, called bytes, to motor on or off. The gripper,
low number while pointing represent each part of an arm and light sensors send
at the line, and a higher instruction. The parallel messages to the computer
number while pointing at input/output port is like an separately along the three
the white paper. eight lane road, with each input lines.

Program changes
The main program works for the BBC Spectrum
computer. These are the changes you need to 10 LET OP=the number of your port
make to the main program over the page for the 100 BQSUB 330»(fl=l)t230*IA=2)+120i(A=3)
VIC 20, C64 and Spectrum computers. 170 60SUB 480*(Q<8)+500t(Q=B)*540*(Q=9)+620*(Q=10)+640*(Q=ll)
190 SOSUB 680ilQsl2)*690*(Q=13)+710*(Q=14>+730*(Q=15)+750*(Q=U)
270 PRINT " ";!;". ";:IF N(I»0 THEN PRINT V$(H(I»i
• C64 A VIC20 375 IF LENICIK6 THEN LET C$=C$+" ":BOTO 375
800 IF INKEY$<>"" THEN GOSUB 830:LET PF=1:RETURN
10 POKE 5i579,31:DP=56577 830 either POKE QP,0 or OUT QP,0:RETURN
A 10 POKE 37138,31:OP=37136 840 either POKE OP,G or OUT OP,G:RETURN
A 30,230,330,990 Replace CIS with PRINT CHRK1A7) 850 LET SF=1
A 800 BET I$:IF IIO" THEN GOSUB 830:PF=1:RETURN 860 LET D= either PEEK OP or IN DP
A 830 POKE OP,0:RETURN 862 FOR 1=7 TO 5 STEP -1:LET Z=2A I
864 IF D>=Z THEN LET D=D-2:IF 2=TN THEN LET SF=0
A 840 POKE OP,6:RETURN 866 NEXT I
A 8iO IF (PEEK(OP) AND TN)=0 THEN SF=1 900 FOR T=l TO 100:NEXT T
A 900 FOR T=l TO 200:NEKT T 920 DIN M(40):D!« D(40):DI(1 Ptll):DIH V$(17,6)
Robot control program
' 10 ?iFE62=31:OP=&FE60———————
tart-up" • Sets data direction register This program is written in
20 GOSUB 830:SOSUB 920:60SUB 990 — • Sets robot to starting BASIC. No changes
: 30 position and reads data.
CIS are needed for the BBC
40 PRINT "ROBOTROL !1ENU":PRINT computer. Changes for other
50 PRINT "DO YOU WANT TO " — Prints menu computers are on page 35.
60 PRINT "1. ENTER STEPS"
Menu 70 PRINT "2. DISPLAY":PRINT "3. SO'
80 PRINT "TYPE A NUMBER"
90 INPUT A:IF A<1 OR A>3 THEN GOTO 90- • Gets user's choice (A).
100 ON A GOSUB 330,230,120—————— • Branches to routine depending on choice.
.110 GOTO 30 Sets PC (step number) to 1. Sets PF
'120 LET PC=1:LET PF=0————————— • (panic button flag) to 0.
130 LET GNM(PC)————————————— . Sets Q to number of command stored in V$
140 IF Q=17 THEN GOSUB 830:RETURN—————————————— as recorded in M for this step.
150 IF Q=0 THEN GOTO 210 |_ Stops motors and returns to menu if
160 IF QM1 THEN GOTO 190 • command is HALT (command 17 in array V$).
Run 170 ON Q GOSUB 480,480,480,480,480,480,480,500,540,620,640
steps __ Branches to relevant section depending
180 GOTO 200 on command.
190 ON Q-ll GOSUB 680,690,710,730,750
200 IF PF=1 THEN RETURN ———————————————————'• • Returns to menu if PF (panic button flag) = 1
210 LET PC=PC+1:IF PO40 THEN GOSUB 830:RETURN- 1 Increases step number (PC) for next step
.220 60TO 130 and goes back.
: 230 CLS
240 PRINT "FROM WHICH STEP":INPUT S
250 LET EL=S+15:IF EL>40 THEN LET EL=40———— • Works out last step to list to (EL).
260 FOR I=S TO EL
List 270 PRINT " ";!;". ";V$(M(1)>;———————— • Prints step numbers and commands.
steps 280 IF D(I)>0 THEN PRINT TAB(15);D(I);———— • Prints duration (D) if any. Array D holds
290 PRINT the duration for the step.
300 NEXT I
310 PRINT "PRESS RETURN FOR MENU"
.320 INPUT Q$:RETURN
'330
CLS
340 PRINT:PRINT "STEP NUMBER":INPUT N————— Asks for step number (N).
350 IF N=0 OR N>40 THEN RETURN
360 PRINT "COMMAND":INPUT C$—————————— Asks for command (C $).
370 LET V=0 V = Number of position of the command
380 FOR 1=1 TO 17 in array V$. Sets V to 0 then compares
Enter 390 command (C$) to commands stored in V$.
steps
IF C*=V$(I) THEN LET V=I Sets V if match is found.
400 NEXT I
410 IF V=0 THEN PRINT "COMMAND NOT REC06NIZED":GOTO 360- Command not recognized.
420 LET M(N)=V ——————————————————————— Records command in array M.
430 IF V=10 OR V=ll OR V=16 OR V=17 THEN LET D(N)=0:60TO 470 Jumps to line 470 for commands which
440 IF y ^ 10 HR V—' ^ THFN PRINT "DURATION""RnTn 4 AO ™^^~^^^^^^^^^~i
450 PRINT "TO WHICH STEP" ——————————————————————— ISfwieToTa^chTo^3111 C°mmandS
460 INPUT DIN) ——————————————————————————————— D(N) = duration for this step.
.470 GOTO 340 Array P holds the binary numbers to send to the output lines in the
"480 LET G=P(Q):LET N=D(PC):LET TF=0 ——port, for each of the movement commands. G is the number actually n
Move
wheels 490
: 500
GOSUB 770'RETURN sent to the port. TF = 0 means no sensor test is needed as wheels have I?
36 IF A$="UP : THEN RETURN ——————— ^sTp, arm won't move.
Arm
up 510 GOSUB 580
II
0.0
.520 IF SF=1 THEN LET A$="UP" ——————SF = sensor flag. If arm sensor is on, this means arm is fully up.
*Because it takes a while for the
robot to begin moving after a
command, the computer waits for a
time after the sensors go off before
530 RETURN
"540 testing to see if they are on again.
IF A$="DO" THEN RETURN • Same as Both the gripper and arm sensors
Arm 550 GOSUB 580 lines work in the same way.
down 500-530.
560 IF SF=1 THEN LET ft$="DO
.570 RETURN
'580 LET TN=128——————
TN tells computer which input line to test.
Move 590 60SUB 880:LET N=D(PC):LET TF=1- Waits for the sensor to go off then checks to make
arm BOSUB 770:LET A$="" sure it has not come on again before moving arm.
oa
600

Open
gripper
.610
'620
RETURN
IF 6*="DP" THEN RETURN————
Moves arm and sets A$ to indicate mid-way position.
Returns if gripper is open. *
.630
'640
GOSUB 660:LET G$="OP":RETURN - Moves gripper and sets G$ to indicate gripper is open. 2,
Close IF G$="CL" THEN RETURN ———— Same as 620-630 8
gripper 650 GOSUB 660:LET G$="CL':RETURN Waits for sensor to go off then sets duration to large |
'660 number so gripper moves a long way. TN tells the g
Move LET TN=64:60SUB 880:LET N=1E5-
gripper computer which input line to test. 3
.670 LET TF=1:GOSUB 770:RETURN —— TF = 1 therefore sensors must be tested. Moves gripper. w
GOTO [ 680
'690
LET PC=D(PC)-1:RETURN———— Sets step counter to step before one asked for. When
LET TN=32:GOSUB 850: IF SF=0 THEN GOSUB 680—— 1 is added (line210) correct step is obtained.
IFOFF
.700 RETURN Tests light sensor input line. Calls GOTO routine
"710 LET TN=32:SOSUB 850: IF SF=1 THEN GOSUB 680-] if sensor flag is off.
IFON Same as line 690 but
calls GOTO routine if sensor
.720 RETURN flag is on.
'730
LET R=PC:LET E=D(PC) 1________ R is a record of step number of command.
REPEAT/ 740 LET C=0:RETURN J E = number of repeats wanted. C = count.
END 750 LET C=O1:IF C<E THEN LET PC=R——————— Adds to count. If not the final repeat (E) then sets
.760 RETURN step number back to repeat statement (R).
'770 GOSUB 840:LET T=0——————————————
Turns on motors.
780 IF TF=0 THEN GOTO 800 ———————————— Misses out sensor test if not needed.
Run 790 GOSUB 850: IF SF=1 THEN GOSUB 830:RETURN —— Does sensor test. Turns off motors and
motors
800 IF INKEY$(0)O"" THEN GOSUB 830:PF=1:RETURN-L;returns for next step if sensor (SF) is on.
Turns off motors if a key is pressed, sets panic
810 LET T=T+1:IF T<N THEN GOTO 780————— 1 flag (PF) and returns.
.820 RETURN '—— T counts up to duration (N) specified.
Turn off
motors 1830 ?&FE60=0:RETURN —————————————— —— Turns all motors off.
Turn on f840 •>8iFE60=G:RETURN —————————————— —— Turns selected motors (G) on.
selected I...
motors 850 LET SF=0 ————————————————— —— Sets sensor flag to 0.
Testa 860 IF (?OP AND TN)=0 THEN LET SF=1 ————— —— Sets sensor flag (SF) to 1 if low voltage on sensor
sensor input line.
.870
'880
RETURN
LET G=P(Q):GOSUB 840——————————— —— Selects motors and turns them on.
Wait for
a sensor 890 GOSUB 850:IF SF=1 THEN GOTO 890————— —— Tests again if sensor still on.*
to go off 900 FOR T=l TO 500:NEXT——————————— —— Pauses before returning to start move (sensor may come
.910 RETURN back on momentarily which will stop motors).
"920
DIM M(40):DIN D(40):DIN P(11):DII1 V*(17>- __ M stores number indicating command chosen for each
step.
Read 930 FOR 1=1 TO 17:READ V$(I):NEXT I D = duration for each step, P = numbers to send to port
data
940 FOR 1=1 TO 11:READ P(I):NEXT I ————— —— for each movement command. E.g. for command B
.950
'960
RETURN (Backwards) number 7 is sent to port. V$ holds the
Robotrol DATA "F","B","FR","FL","BR","BL","STOP"/'UP","DOWN","OPEN","CLOSE" known commands.
commands DATA "GOTO",'IFON","IFOFF","REPEAT","END","HALT"
and numbers 970
to send
to port .980
'990
DATA 6,7,4,2,5,3,0,16,17,9,8
CLS:PRINT:PRINT "IS GRIPPER OPEN FULLY (Y/NP:INPUT 1$
1000 IF I$="N" THEN LET Q=10:GOSUB 630 ——————————————— Opens the gripper fully if not
1010 PRINT:PRINT "IS ARM FULLY DOWN (Y/N)':INPUT 1$ already open.
"Start-up"
procedure 1020 IF I$="N" THEN LET Q=9:LET PC=1:LET D(1)=1E5:GOSUB 550——— Moves arm down fully if not 37
1030 LET G$="OP":LET A$="DO" already down.
1040 RETURN
Instructing your robot
The main program is written in BASIC and Robotrol commands
enables you to use a set of special Movement commands
instructions, called Robotrol, to instruct the ^"\^r
robot. You can give the robot up to forty
separate instructions. This page shows you
F Goes forwards
^&®r
rx. _^<:L\.

how to use Robotrol, with some examples B \^r^^^^ Goes backwards


opposite. This is what to do after typing in <^""^>^^
the main program: FR Goes forwards right ^V"/'^^
1 Run the program by typing or pressing ^sL-42/
RUN - IS GRIPPER FULLY OPEN (Y/N) ? BR {^T^/*^>~ Goes backwards right
IS ARM FULLY DOWN (Y/N) ? -£^
^sL-toT <^X?
2 The computer carries out an automatic
procedure to find out if the robot is in the FL Goes forwards left \Y'/rir
correct starting position (i.e. the gripper is
fully open and the arm fully down). The BL Y^^^^^ Goes backwards left
questions above appear on the screen. If you ^xUor
A S^^^N^
answer N (for no), the robot will move to the UP Arm goes up ^ T/ \
starting position. Type Y if you have a robot
vehicle. i. ENTER STEPS \-^^^\ \ Arm goes down
2. DISPLAY DOWN
3. GO
TYPE A NUMBER ? OPEN Gripper opens \«C_E==rl
3 The menu above appears on the screen. To
give the robot instructions, type 1, and you CLOSE ti^^jj^ Gripper closes
will see this: STEP NUMBER ?
Each instruction you give the robot has a step Other commands
number. Start by typing 1. You can have up to Goes to a chosen step number in
40 steps in a sequence of instructions. Change GOTO Robotrol instructions.
instructions at any time by typing the step If the light sensor is on, goes to a
number. Next the computer asks you this: IFON chosen step number in Robotrol
COMMAND ? instructions.
If the light sensor is off, goes to a
Type one of the commands shown in the list IFOFF chosen step number in Robotrol
on the right, depending on what you want the instructions.
robot to do. Next you will see this: Repeats all commands up to
DURATION or TO WHICH STEP? REPEAT command END, a chosen number
of times.
If you type a command to make the robot move
or stop, DURATION? appears. Type a number Marks the end of a set of commands
END to be repeated.
after this question. Low numbers make the
Stops everything for a chosen
robot move a short distance or pause for a short STOP duration. Use this to get the robot to
time, high numbers make it go further. pause between commands.
Experiment with different numbers for your Turns motors off at the end of a
robot, as distance or time depends on motor HALT sequence of instructions and
returns you to the menu.
speed, gear ratio and type of computer. TO Arm robot users: the sensors make the motors
WHICH STEP? appears for other kinds of switch off automatically if either the arm or gripper
commands. Type a number after this question, have moved as far as they will go.
depending on the command.
PANIC BUTTON: 1 f Robotrol commands 1
Next type 0 to get back to the menu. Type 2 to Press any key to stop / work for all J
see your instructions, or 3 to make the robot the robot if ( versions of the A-—-7
something goes ) robot. ,-S t
38 carry them out. wrong.
Shopping list
Robotrol examples Here is a complete list of things you need to build the robot
and circuit. There are also details of plugs you need to
Here are some examples of connect to your computer, interfaces for the Spectrum, and
Robotrol instructions. The useful addresses of suppliers.
first set of instructions
make the robot follow a
thick black line drawn on
Tools 6mm square balsa spar x 3.5m
If you do not already have long.
paper, using the light 6mm thick balsa sheet 90mm
sensor. them, you can buy the tools in
a hardware shop, toolstore, or wide x 0.5m long.
Light sensor 3mm thick balsa sheet 75mm
some timber yards.
wide x 1m long.
Small screwdriver 1 Vzmm thick balsa sheet
Metal ruler 90mm wide x 1.5m long.
Craft knife and blades 6mm diameter (maximum)
1. F 10 Robot goes
forwards until it Pencil metal or plastic tube x lm
2. IFDFF 1
goes off the line. Paintbrush (15mm decorator's long.
3. REPEAT 10
Turns right. If it brush will do). Metal rod (to fit snugly inside
4. FR 10 finds the line it
5. IFOFF 1
Junior hacksaw (or larger the tube you buy) x Imlong.
goes forwards
6. END again.
hacksaw, but it is more Brass shim about 15mm wide
7. REPEAT 30 Turns left if it difficult to use to cut tube). x 40mm long. You could use
8. FL 10 can't find the Tenon saw (or panel saw) tin foil instead.
line. Moves Hand drill (or electric drill) 10 small self-tapping or wood
9. IFOFF 1
forwards if it Pliers (if you use combination
10. END does. screws (8 to fit gearbox or
11. STOP Stops if it can't
pliers you don't need wire motor fixing holes and 2 to
12. HALT find the line. cutters). screw a connector block to
Wire cutters the robot base).
These instructions make Wire strippers Enamel undercoat
the robot go to the end of a Small file Enamel gloss paint
straight line drawn on Scissors White spirit or turps
paper, pick up an object, Small vice (or home-made substitute
and return. clamp seepages). 4 small battery-powered
I G-clamp (or home-made motors, between IVzV and
Light sensor clamp). 6V power. You only need 2 if
Soldering iron with small bit making a robot vehicle or
2mm twist drill bit stationary arm robot.
Black line 6mm twist drill bit 4 gearboxes or geartrains to fit
Twist drill bit the same size as your motors and which
the outside diameter of tube reduce the speed to between
1. F 100 used to make bearings, or a 30 and 150 revolutions per
2. IFOFF 1 home-made tube drill (see minute.
3. DOWN 5000 Makes sure arm page8). 2 wheels 60mm-100mm
4. CLOSE is fully down.
5. UP 200 Modeller's materials diameter.
Fine-grade sandpaper.
6. B 50 You should be able to buy all
7. B 10 these things from a model Como Drills (for motors and
8. IFOFF 7 making shop. If not, there are gearboxes), The Mill, Mill Lane,
9. DOWN 500 Makes sure arm some mail-order addresses at Worth, Deal, Kent, CT14 OPA,
10. OPEN is fully down. England.
the end of this list.
11. STOP 1 W Hobby Ltd (for modeller's
12. HALT 2 tubes of clear glue or balsa materials), Knight's Hill Square,

>
cement London, SE27 OHH, England. 39
Shopping list continued over page
Wood Electronic components
You can buy all the wood from You can buy the electronic powered batteries.
a timber yard or hardware components from a DO NOT USE CAR OR
shop. Ask if they have any components shop, or by mail- MOTORCYCLE BATTERIES
offcuts as these are cheaper order. An address is given OR MAINS ELECTRICITY.
than buying whole pieces. at the end of this list. Maplin Electronic Supplies Ltd.,
Ask in your local TV repair P.O. Box 3, Rayleigh, Essex, SS6
Robot base: 6-12mm thick 8LR, England.
plywood or chipboard shop or look in the telephone
200mm wide x 250mmlong. directory to find where the Computer connectors
Home-made clamp: 15mm nearest components shop is. These are available either
thick softwood, ply wood or Ask your supplier for from components shops or
chipboard 200mm wide x substitute components of an computer dealers.
350mm long. equivalent type if they don't BBC: 20-way I.D.C. (short for
Workboard: any thickness have the ones specified here. insulation displacement
plywood, chipboard or Relays: 5 sub-miniature single connector) connector and
hardboard about 500mm pole changeover relays, coil cable.
wide x 750mm long. voltage 12V d.c. (See very C64/VIC20:0.156inch
Sanding block: any small important notes on relays pitch female edge connector
scrap of wood. opposite.) with 24 pins (two rows of
Transistors: 6 x BCl08or twelve).
Odds and ends BC107.
You may find some of these Diodes: 5 x any diode in the Spectrum interface
things around the house. If series 1N4001-1N4007. You need to buy a parallel
not, you can buy most of them Resistors: Ask for l/4- l/2 watt input/output interface board
in a hardware shop. with 5%-10% tolerance. 2 x for the Spectrum. Look for
Sponge (for soldering - any 330ft(forLEDs),3 x IfOl, 7 advertisements in computer
kind will do) x 2.2KO (sometimes written magazines or write to one of
Tin foil about 75mm square 2K2fl),5 X6.8KO the companies listed below.
Thin foam rubber about 75mm (sometimes written 6K8ft). If you already have a
wide x 300mm long. Potentiometer: 1 x 100KH, Spectrum sound board you
Fishing line or strong twine LINorLOG. may be able to use it as an I/O
about l a/2m long Light dependent resistor: 1 x interface. Check the manual to
1 drawing pin ORP12. find out.
6 metal paperclips 18-20 SWG cored solder Read the instructions with
1 steel nail about 75mm long 0.1 inch size Veroboard 31 the interface you buy very
2 elastic bands about 80mm tracks wide x 60 holes long. carefully. Depending on the
long when unstretched. (This is enough for an extra type you buy, you will have to
2 compression springs about piece 10 holes long to use either IN and OUT
30mm long. practise your soldering.) commands, or PEEK and
2 tension springs, or short 10-way ribbon cable x 4m POKE commands, as shown in
strong elastic bands, about (about 7 x 0.2mm strands in the Spectrum program
25mm long when stretched. each wire), or "bell wire" x changes on page 3 5. Check the
1 matchstick 40m (about 7 x 0.2mm thick interface instructions to see
1 matchbox strands). Do not use mains which to use. Most interfaces
Roll of sticky tape cable. have 8 input and 8 output
Roll of insulating tape 2 connector (or terminal) lines. Use those numbered 0-4
Velcro about 150mm long. blocks with 10 pairs of holes. as output, and those from 5-7
Velcro is a trade name. It Batteries: 1 x 12V, 1 x 6V and as input.
consists of two pieces of stiff 2 of a suitable voltage for Glanmire Electronics, Meenane,
Watergrasshill, Co. Cork, Eire.
fabric, one with tiny hooks, your motors. See page 32 for William Stuart Systems Ltd,
the other with loops, which notes on using transformers Quarley Down, Cholderton, Salisbury,
40 stick together when pressed. and combinations of lower Wiltshire, SPQ ODZ, England.
Relay notes Relay pins
It is very important to use the 1 Place the pins of your relay

c=>
correct type of relays for the over this guide. It will not fit
circuit on page 30. There are the circuit unless they line up
several makers of the same with the dots.
type and they number the pins 2 Turn the relay on its back.

c=>
differently. Number your pins Use the numbers shown to
as shown on the right as these identify the pins.
are used in the circuit
instructions. Listed below are 3 You may get a circuit
manufacturers' type numbers diagram like this to identify
and some useful addresses if the relay pins. Use the
your components supplier numbers shown here. This
does not have the correct type. diagram is a "pin view",
which means you identify the
Fujitsu FBR2 1 1 series type B or E
pins with them facing you.
RS Components number 348-510 Coil must
Fujitsu Component Europe, B.V, Substitute relays be in this
Rijnkadel9B,1382GS Weesp.The position
This is what to do if you
Netherlands.
cannot get relays with the pins
Fujitsu America Inc. in the correct positions:
918 Sherwood Drive, Lake Buff, Short stripped wires soldered to legs.
Look carefully at the relay
Illinois 60044, USA.
Fujitsu Limited, 6-1, Marunouchi 2-
chome, Chiyoda-ku, Tokyo 100,
circuit diagram and substitute
the pin numbers with those
V
Japan. used above. Then solder short
Tempatron Ltd., 6 Portman Road,
lengths of wire to the pins.
Battle Farm Estate, Reading RG3 Solder the wires into the
1JQ England. Veroboard instead of the pins.

Switching circuit template


Use this template for the relays go, spots identify where where track breaks are.
circuit on page 30. The component legs or pins and
rectangles identify where wires go, and squares show
Templates Base template

Front-
Tape the The templates for all the robot
Fix connector on/off LSD parts made from balsa are on
block anywhere resistor the next six pages. Do not cut
in this area anywhere in these pages. See page 9 to find
this area ' out how to use the templates.

BASE TEMPLATE
6-12 mm plywood
or chipboard
If your motors and
gearboxes won't ft't
in the positions
marked, makeyour
base template
larger

Fix left drive Fix right drive


motor and motor and
gearbox gearbox
anywhere in anywhere in
this area this area

^Gearbox Gearbox/
shaft ^
shaft position
position
Glueing positions
for shoulder

Fix gripper motor fix arm motor


and gearbox anywhere Gearbox and gearbox,
in this area shaft positions anywhere in
this area

42 Back
Shoulder and cover templates

SHOULDER
TEMPLATE C
(•front) 6mm balsa
sheer

SHOUlPERJEMPltJE

6mm hole'for LED


COVER TEMPLATE Gmm balsa sheet J COVER TEMPLATE
H (inner side) I (inner side)
I'/zmm balsa sheet /a mm balsa sheet

Glueing Glueing
position -for Glueing Glueing position -for
6mm spar position position 6mm spar
for parrD -far parr D

Bearing hole Bearing hole

Tube hole Tube hole

Bearing hole Bearing hole

SHOULDER SHOULDER
TEMPLATE A TEMPLATE B
(Side) 6 mm balsa (side) 6 mm balsa
sheet Sheet

Glueing position ~— • Glueing position


•for part C •for part C

Tube hole Cut this


hole out „
with a craft
Glueing Tube hole knife Tube hole Glueing
position positions
•for 6mm
lore
spar Tube'hole
Arm and light sensor templates

Cat hole
with craft
knife
LIGUT LIGHT LIGHT
SENSOR SENSOR SENSOR
/^ mm //LIGHTSENSOR A TEMPLATE TEMPLATE TEM­
balsa
shee.t C D PLATE
SENSOR
(back) (side) (side) £
-f (top)

Push LOR
legs -through
here mm l~z mm
balsa balsa balsa
Sheet sheet sheet

44
Gripper templates

6mm fomm
Spar Spar
glueing glueing
positions positions

/f\ K 6mm sheet


Mi -*— Grain ~»
Bearing holes Bearing holes Bearing holes Bearing holes'
Cover templates

COVER TEMPLATE A (front) I >z mm balsa sheet

Glueing Glueing Glueing


positions positions positions
•for •for •for 6mm ^^y.
spars Spars spars v/

COVER TEMPLATE B (fop) .v


1%. mm balsa sheet positions A\

COVER TEMPLATE C (top) 6^e


I* mv balsa sheet £™$

46
'////////////777m
•*- Guide, positions -»
•for gluei'ng
COVER r£MPU\7EE
y (top) lyzmm balsa sheet

COVER COVER
T£MPLAT£ D TEMPLATE F
(side) l^ Guide position (side) 1% mm
balsa sheet for balsa sheet

COVER
TEMPLATE
G (back}
A*z mm bafsa
sheet

Glueing position
-for 6mm spar

Glueing
positions -for Glueing positions
6mm spars •for 6mm spars
Guide, position
i -for glueing
47
Index and circuit diagrams
arm, 4,14 parallel input/output port, 7, 33, 35 Motor circuit
robot, 3,15, 25 pitch, 16 + 12 volts
Armdroid, 3 potentiometer, 24, 31,40 o——
axis, 12 program changes, 35
base,4,10,11 relays, 24, 30,40,41 Diode
BASIC, 38 resistors, 24, 25, 31,40
BBC computer, 2, 7, 33, 34, 35 codes, 25
bearings, 12 robotics., 3 Computer
binary code, 35 Robotrol,2,38,39 output Transistor
bits, 35 commands, 38 o-TZZP
robot vehicle, 2,4, 5,11 2.2KO
Buggy, 3 Resistor f"16.8Kfi
bytes, 35 roll, 16 Resistor
Commodore 64, 2, 7, 33, 34, 35 sensors, 4,9, 25, 26,27
computer, 2, 7 arm down, 5,26,33,34 o-
control, 35 arm up, 5,26, 27, 33, 34 -0 volts
connectors, 40 gripper closed, 5, 27, 33, 34
connecting up, 29 gripper open, 5, 27, 33,34 This is the motor control circuit. It is
control lines, 18,19 light, 5,33,35 repeated five times in the switching
cover, 20,21 test, 34 circuit - four times to switch each
customizing, 18,19 shoulder, 5,12,13 motor on and off, and once to control
soldering, 22,23 their polarity to make them go either
degrees of freedom, 12,15 Spectrum, 2, 7, 33, 34, 35 backwards or forwards.
diodes, 24, 30,40
interface, 40
electronic circuit, 5, 22 speech synthesizer, 9 Light sensor circuit
electronic components, 7, 22, 23, 24, "start-up" routine, 34
25,40,41 stationary arm robot, 2,4
expansion port, 33 stripping wire, 23
switching circuit, 5, 30, 31, 32
gearbox, 10,11,39
gripper,2,4,12,16,18,19 templates, 9
arm, 44
Hero 1,9 base, 42
home-made clamp, 8 cover, 43,46,47
input, 35 gripper, 45
interface, 2 light sensor, 44
input/output, 7 shoulder, 43
switching circuit, 41
joints, 12 tinning, 23
Light dependent resistor (LDR), 24, tools 6, 39 -0 volts
28,40 Topo, 3
Light emitting diode (LED), 24, 29,40 transistor, 24,30,40
LOGO, 3 tube drill, 8
This is the light sensor circuit, and is
Turtle, 3 included with the switching circuit
manipulative robot, 3
micro-robot, 3 user port, 33 on the same piece of Veroboard.
mobile robot, 3,10,25 Veroboard,22,23,40
modeller's materials, 39 VIC 20, 2, 7, 33, 34, 35
motor, 2,4,10,11, 39 vision, 4, 9 Test failure
test, 34
wrist 16 Ask someone else to check the circuit
on/off light, 13,29
output, 35 yaw 16 and connections if any test fails, as it
is easy to miss something. Use fresh
batteries. If the circuit still does not
First published in 1984 by Usborne Publishing Ltd, 20 Garrick Street, London WC2E work, pack it carefully with enough
9BJ, England. stamps for return postage and send it
Copyright© 1984 Usborne Publishing Ltd to:
The name Usborne and device f are Trade Marks of Usborne Publishing Ltd. All Electronics Advisor,
rights reserved. No part of this publication may be reproduced, stored in any form or by Usborne Publishing,
any means mechanical, electronic, photocopying, recording, or otherwise without the 20 Garrick Street,
48 prior permission of the publisher. London WC2 9BJ

Answers to questions on page 25:1 = 2.2fOl, 2 = 6.8KH, 3 = 1KH


USBORNE ELECTRONIC WORKSHOP

This new series is an exciting practical introduction to controlling things with


computers. With clearly illustrated step-by-step instructions, these books make
computer-control fun to find out about. Computer-Controlled Robots shows how to
make a robot to connect to your computer. The book includes a computer program to
make the robot move about, pick things up and even "look" where it is going. There is an
electronic circuit to build, background information on the world of robots, and plenty of
practical tips on robot building.
Computer Model Controllers shows how to make simple electronic circuits to control
a model railway or slot-car layout with a home computer. There are lots of exciting
programs which enable you to check your fastest speed, count laps, start races
electronically and stop at stations, all under the control of your computer.

ISBN O-flbQSD-fllS-X

9 "780860"208150" ISBN 086020 815 X £2.95

You might also like