Gary's Robot – "R4"


This page contains information about building and controlling an inexpensive robot.
If you have any questions, please e-mail me: gary@messagestick.net


Contents:


Overview

The robot design here is based on readily available parts.  It is intended to teach the experimenter (you) about the concepts of robotics and some of the mechanical and electronics techniques which may be employed.

The robot described here is based around a '386 SX mother board and some standard ISA bus cards.  It is constructed with a car battery for power, a voltage regulator circuit (shown below), and a relay control board which connects to a parallel port on the computer and drives two car windscreen wiper motors to give the robot motion.

I have named the robot here "R4" (pronounced "ar-for", as in "R for robot").  R4's brain is a 386 computer running the Linux operating system.  Linux is a free-ware version of Unix: a true multi-tasking system.  Source code for the control programs may be down-loaded for your version of R4 (see the software section).  Let's now look at the various components of R4...


The Chassis

The chassis is a simple contruction using 20mm angle-aluminium lengths pop-rivetted together.  It is basically a rectangular prism in shape with enough room to house a car battery in the base.  Have a look a photgraphs of the front (117KB) and back (57KB) of the robot.

The chassis has a number of layers.  From the top they are:

The wheel mechanism deserves a special mention. The whole chassis is an aluminium box-frame supported on 4 heavy-duty casters.  This allows the chassis to move in any direction (including transverse and spinning movements).  The drive wheels are at the back corners of the chassis and drive it in much the same way as an electric wheel-chair.  These drive wheels are each attached via a pivotting rod which uses a spring to keep the wheel pressed against the floor.  This method keeps traction on the drive wheels over uneven surfaces.  This is shown in a diagram and picture (53Kbytes).


The Controling Computer

The computer is an Intel 80386-SX based processor with: The last 2 of these cards are not necessary although they do make life easier. 

The computer runs the Linux operating system.  This is a free-ware version of Unix which can be obtained on CD from most technical book shops for about $40.  I'm using "Slackware Version 3.0" which uses the Linux kernel version 2.0.  This is not critical.  You could probably run all the same programs under DOS if you wanted to recompile them.  Although you would have a bit of work getting some of the low-level interface code working.

I use the LAN (ethernet) card to communicate with the command interpreter module via telnet.  It was also used to initially load Linux via NFS (I also use Linux on my desk-top PC to write and compile the code).

The photgraph (58KB) shows a close-up of the external ports on the computer.  You will notice that the I/O cards are lying horizontal (the same as the mother board) instead of at right-angles to the mother board.  I used an EISA-bus extender board (about $3) to do this and save a bit of vertical space.


The Power Circuits

The power supply comes from three 12V batteries.  The main battery is a car battery.  Although any car battery will do, I chose a "deep cycle" battery which goes a bit longer between charges.  The battery powers the drive motors (windscreen wiper motors), the power regulator cooling fan and the monitor.

A second battery is used to power the computer and disk drives.  This is a 12V 7.2Ah sealed lead-acid battery which also feeds a 5VDC regulator circuit for the computer and other TTL-based circuitry.  This battery feeds from the main battery via 12 ohms of resistance and a rectifier.  This allows me to connect the charger only to the car battery and still recharge both batteries without the motors and screen draining vital computer and disk power.  I can get anything up to 3 hours use from the batteries before they need recharging.

The last battery (low current) is used as  -12VDC for the computer.  This battery is only necessary if you want to use the serial ports on the computer.  The positive battery terminal is connected to the computer ground rail so the negative terminal can deliver -12VDC.  I use COM2 (/dev/ttyS1 under Linux) as a terminal port for logging into the system via a dumb terminal (or PC running a terminal emulator).  I connected this battery with its own power switch as it is not often used.

The power regulator can be built from anything which delivers at least 2 amps at 5VDC.  Have a look at the schematic and vero-board layout to see what I built.  This power supply is designed to supply 5 volts DC (regulated) at up to 10 amps.  This should be sufficient for 3 or 4 PCs to allow for distributing the computing needs via a local (in-chassis) ethernet.

Here is the parts list for power supply shown:


The Motor Control Circuits

The motor control can be divided into 2 parts: the drive wheels and the arm control. 

The Drive Wheels

The wheels used are 2 x 150mm solid rubber trolley wheels (available from most hardware stores).  The motors I used are standard 12-volt car windscreen-wiper motors.  I could have used very expensive stepper-motors but I decided not to for 2 reasons: (1) widscreen-wiper motors are a lot cheeper ($10 each from auto wreckers) and (2) stepper motors are only useful for very fine movements if you have a reference position.  If the wheels slip on a surface, you loose your reference and need some way of re-calibrating.  I opted to later add this recalibration ability (probably some sonar or optical device) and use it to constantly monitor (and correct) R4's direction and position using that.

The motors drive the wheels via a drive belt (actually a rubber sewer-pipe seal).  The pully wheel used on the motor is a 70mm trolley wheel with the rubber tyre removed.  Have a look at the picture (53KB).

The motors have 3 wires comming from them: 1 for ground and 2 for +12 volts (forward and reverse directions).  Each of these leads is switch by a relay (2 for each motor).  It is important to not apply power to both the 12-volt leads at once.  This is achieved by controlling the relay switches with some simple logic circuitry as shown in the diagram here.  You can drive the inputs, A and B, directly off lines from the parallel printer port (or any other TTL port).  Each output can be used to drive the base of a transistor which, in turn, can either drive the base of a power switching semiconductor or the coil of a relay switch.  You can have a look at the vero-board layout (19KB) for the circuit that I built.

Arm Control

(not built yet)


The Software

As the most important part of a robot is the controlling software, I have dedicated a separate page to discuss the software.


If you need more details, please mail me (Gary Hoggard).
Last updated on 20th February, 2003