Anda di halaman 1dari 3

GENERALINTEREST

Wobbler
a robot that doesn’t drive or walk, but ‘wobbles’!
Design by A. Vreugdenhil

Just its unusual method of motion alone makes the mini-robot an eye-
catching appearance. It is an extremely simple design, because it consists
of hardly anything else besides a processor, two sensors and two little
motors. Nevertheless it is possesses a great deal of dexterity when it
comes to avoiding obstacles. The moment it ‘spots’ one, it will make an
evasive manoeuvre and is off, on its two funny rotating legs.

touches the ground.


Strictly speaking, the unique
under-carriage was the motivation
towards the ‘birth’ of Wobbler. The
idea surfaced at one moment and
from there it just became a chal-
lenge to find out whether this
method of movement would work in
practice or not. The other parts were
quickly added afterwards: two IR
sensors for vision (IC3, IC4), two dri-
ver stages for the motors (IC2) and
for the ‘brains’ a simple processor
(Atmel 89C2051) with a small piece
of software.
The finished shape measures
about 5 ? 5 ? 3.5 cm and the
schematic of Figure 1 shows how lit-
tle is involved from the electronic
perspective. An additional advan-
tage of this simple design is that
Wobbler is quite affordable; apart
from the printed circuit board the
builder is unlikely to spend more
than about thirty pounds for all the
parts.

Behaviour
The most remarkable aspect of this little robot motors. The dimensions of the cams The intentions for Wobbler were to
is undoubtedly its unique method of move- are such that they protrude a little make it behave in such a manner
ment. It does not actually have any wheels, below the underside so that the that it is able to freely move about its
but has two cams that function as a kind of creature pushes itself off and ‘wob- living environment and be able to
paddle, driven by a couple of miniature bles’ forwards every time a cam avoid obstacles. Its living environ-

32 Elektor Electronics 10/2001


GENERALINTEREST

ment consists of a marked out ter-


+5V
rain of arbitrary size, surrounded by
an edge of about 5 cm high.
Our mini-robot does not react to C3

light or dark; its aspirations amount 10µ


20
8 16

35V
to not much more than to casually 1
RST
2
IN1
A B
OUT1
3
K1
12 1 M1
stroll (‘wobble’) over its terrain, all 2
P3.0 IC1
P1.0
P1.1
13 7
EN1
M
IN2
the while keeping an eye on any 3
P3.1 P1.2
14 IC2
6 15 6
fixed or moving obstacles. Whenever 7
P3.2 P1.3
16
OUT2
P3.3 P1.4
an object appears within its approx- 8
P3.4
89C2051
P1.5
17
OUT3
11
K2
9 18 M2
imately 10 cm sized field of view, it P3.5 P1.6
19 10
L293D
M
P1.7 IN3
will take action to avoid it. 11
P3.7
9
EN2
IS471F-SH 15 14
Two infrared detection sensors X1 X2 IN4 OUT4
10 5 4
type IS471F (IC3, IC4) function as R1 X1
4 5 12 13

100k
‘eyes’. This is not an ordinary light 1
2 C1 C2
sensitive detector, because this 3
22p 12MHz 22p
clever little IC contains a modulator, 1 3
2 4
4

demodulator, oscillator and a voltage IC5


regulator. The sensor transmits an +5V + D3 7805 +5V

infrared pulse train via an external


1N4001
infrared LED (D1, D2) and subse- IC3
1 C7 C6 1
IC4 Bt1

D1 D2
quently looks if a nearby object has 2
390n 390n
2
9V C4 C5
3 3
reflected this pulse train. When this is LD271 4 4
LD271 10µ 10n
the case, the output of the sensor IS471F-SH IS471F-SH –
35V

will go ‘low’. 010038 - 11

The significant advantage of this


LED/sensor combination is that at
reacts only to the transmitted pulse Figure 1. The electronics consists of little more than a processor, a motor drive and two
train and is therefore not affected by sensors.
ambient light. Problems may arise
however, when two Wobblers face
each other unexpectedly. But even is readily available and inexpensive shows the completely built up PCB.
this could be solved with a small to program. And also, a free BASIC- The introductory photograph of the article
change to the software, if necessary. compiler is available that can gener- illustrates that the prototype was constructed
Because Wobble has to be able to ate code up to 1 kbyte in size. This in just about the simplest way imaginable.
move forwards and backwards, it is compiler goes by the name ‘BAS- The mini-motors are attached with cable ties
necessary for the motors (M1, M2) to COM-LT’ and the programmer is the and the chassis is a short length of T-profile
rotate in both the clockwise and anti- ‘BlowIT’. You can obtain more infor- aluminium that was made to fit with a little
clockwise direction. This requires a mation on the web site filing and drilling. The battery also acts as the
reversing circuit for the DC motors in www.mcselec.com from the com- supporting element for the circuit board; they
the form of an H-bridge. This could pany MCS Electronics in Zaandam, are joined with two small pieces of hook and
be built from discrete parts, but the Netherlands, who developed the loop fastener (Velcro).
nowadays ready-made building compiler. The ‘legs’ or ‘paddles’ or ‘cams’ or what-
blocks are also available. The L293D ever best describes them are made from per-
IC used here contains two H-bridges spex (a.k.a. Plexiglas). They may be fastened
complete with built-in freewheeling Construction to the motor shaft with a small drop of glue,
diodes; take note of the suffix ‘D’, The necessary electronics for the if a suitable hole is drilled in the underside
because the regular L293 does not robot are so modest that the printed first. The length of the paddles has to be
contain these diodes. M1 and M2 are circuit board (Figure 2) can be made determined experimentally and is quite criti-
two miniature DC motors with built-in pleasingly compact. As can be seen, cal. If they are too long, then Wobble will tilt
reduction gears. The operating volt- room has been made available for a too far forward when moving; it this point it
age is 3-6 V and the speed is 22- 9-V-battery in the centre of the PCB. will sense the ground as an obstacle and
44 rpm. Further details can be found Small SIL connectors are placed on ‘back paddle’ continuously. This is boring and
in the parts list. Other motors with the PCB to make the connections to definitely not the intention. If the legs are too
comparable specifications may also the battery and the two motors. In short, then it will react as it should, but will
be used. order to increase the directivity of have insufficient ability to push off and as a
For the central processing unit an the sensors, the prototype was fitted result move very slowly. The length of the
80C2051 from Atmel (IC1) was with makeshift blinkers, consisting paddles in our prototype measured 18 mm
selected. The flash-EPROM con- of a few pieces of tin soldered from the centre of the shaft to the end.
tained within provides ample room together (if the sensor continuously All that said, the mechanical construction
for a simple program. The processor sees the stray light from the LED it is so simple that an evening of tinkering
has the additional advantages that it will give a false alarm). Figure 3 should suffice to get the robot to wobble.

10/2001 Elektor Electronics 33


GENERALINTEREST

Although it is governed by only a


C2 0 + COMPONENTS LIST
R1
K3
few simple rules, the program is
C3 D3 nonetheless put together in such a
Resistors:
C4 way that it appears that Wobbler is
X1

010038-1 IC5 C5 R1 = 100kΩ


able to cleverly deal with every situ-
ation in its environment. Capacitors:
IC1

C1 K2
The program can easily be C1,C2 = 22pF
IC2 changed of you would like to modify C3,C4 = 10µF 35V
K1
its behaviour. In addition to the pro- C5 = 10nF
grammed controller a diskette with C6,C7 = 390nF
1-830010
D2

the program and source code is


D1

ROTKELE )C(

available from Elektor Electronics Semiconductors:


C6

D1,D2 = LD271 or general-pur-


C7

Readers Services (refer to parts list).


4
3

IC
IC

pose IRED
The software is not available as a D3 = 1N4001
free download from our website IC1 = 89C2051 (programmed,
because of contractual agreements order code 010038-41)
with the author. IC2 = L293D
(C) ELEKTOR Because the hardware is IC3,IC4 = IS471F-SH
010038-1
extremely simple, relatively small IC5 = 7805
changes to the software will obtain
good results. To make Wobbler Miscellaneous:
appear a little more ‘intelligent’, it X1 = 12MHz quartz crystal
Bt1 = 9V battery (PP3)
would be possible to have it make a
M1,M2 = mini motor with reduc-
small turn after some random time. tion gear, 3-6 V, 22-44 rpm (Con-
Enthusiastic tweakers will undoubt- rad Electronics order code
edly think of many more variations 242543-50)
after experimenting a little. K1,K2 = 2-way SIL header with plug
(010038-1) PCB, order code 010038-1 (see
Readers Services page or Elektor
website)
Figure 2. Printed circuit board and component Disk, project software and source-
overlay for Wobbler’s electronics. code files, order code 010038-11

Software
The control program written for Wobble is
stored in IC1 and is only 312 bytes in size. It is
both simple and logical by design.

– After switching on, the robot is instructed


to move forwards for about 5 seconds. If
one of the motors initially turns backwards
then the corresponding connector has to be
reversed.

– Subsequently, the sensors are checked. If


one of the sensors observes an obstacle,
then Wobbler will first go backwards for 5
seconds, followed by an evasive turn for 3
seconds.

– Following this, it moves forward once more


and checks the sensors all over again.
While moving backwards the sensors are
ignored, because it does not make much
sense to do otherwise.

– When both sensors simultaneously detect


an obstacle, if for example, it faces a wall
after an evasive manoeuvre, then it will
move backwards for 3 seconds and turn
about its axis for 4 seconds. Figure 3. The construction of the PCB is not a major undertaking.

34 Elektor Electronics 10/2001

Anda mungkin juga menyukai