David Cook
Robot Room
a robot
Robot Building for Beginners book by David Cook Robot Building for Beginners

A beginner's book on how to build a robot, from the author of Robot Room. Contains tricks, tips, and advice on getting started creating your own robots from scratch.

Intermediate Robot Building book by David Cook Intermediate Robot Building

Learn how to make a robot power supply, compare motor driver circuits, create an infrared obstacle / wall / opponent sensor, play music, and much more.



Site Categories and Search:


Google

Line Following, Mini Sumo, Solar, Motors, Machining, Sensors, Tachometers/Encoders, Electronics, PCBs, Other, Books


What's New?


See Additional New Robot Articles...

Line Following Robots:


Sandwich, the line-following robot Sandwich, the Line-Following Robot
This is a simple, yet sleek, line-following robot that you can reproduce in your home laboratory. A racetrack movie appears at the end of the page.
Printed circuit board for Sandwich Printed Circuit Board for Sandwich
Stuffing instructions for a professional, double-sided, printed circuit board for Sandwich. The board has silkscreened part numbers and a solder mask, making it a fast, easy, and reliable way to build.
Jet, the fast line-following robot Jet, the Ultra-Fast Line-Following Robot
Learn the technical extravagance that competition leads to, as a line-following robot breaks the 100 cm/s barrier. Includes plenty of techno-babble and names of people you don't know.
A fun line-following robot. Sweeeeet! Sweet! The Line-Following Robot
An m&m's candy container provides a fun body for a smart line-following robot. Videos show the auto-contrast, dark-or-light detection capabilities. Sharp turns and crossovers don't slow this car down, but it can automatically stop at the end of the line.
A robot solves a maze of lines Line-Maze Solving Robot
A multi-deck robot with seven PCBs, nine floor sensors, one LCD, four buttons, and two quadrature encoders. The robot solves mazes made of white lines on black tiles. The article includes two movies.
A tiny robot that fits inside a Monkey Mints candy container. Monkey-Mints Micro Line-Following Robot
A robot that fits in the palm of your hand, built into an Accoutrements candy container. Features ultra-small gearmotors with surface-mount motor driver transistors. Includes a video with interesting patterns that appear as the robot sweeps aside candies.

Mini Sumo Robots:


No.2 sumo robot thumbnail No.2 Mini-Sumo Robot
Pictures and videos of a champion mini-sumo robot that defeats opponents with pencils (yes, seriously). The robot has a 360-degree infrared opponent detection system and large LEGO wheels with embedded motors.
Go! Go! Go! Bugdozer autonomous mini-Sumo bot Bugdozer Autonomous Mini-Sumo Robot
Based on an MC68HC908GP32 microcontroller, this pulse-width modulated 18-volt dc scoop-on-wheels saw combat in November 2000. Using two 38-kilohertz infrared sensors and 4-front/1-rear near-red phototransistors, Bugdozer tries to push opponents out of the ring while staying within the white borders herself.
A Sumo robot starting to fall out of the ring Illustrated Guide and Rules for American Robot Sumo
Robot Sumo is a simple, but fun, pushing contest. This guide is a complete description and walkthrough of a Sumo robot contest. It includes a variety of regulations, as well as tips and suggestions.
Mini-Sumo robot ring Mini-Sumo Robot Ring
A mini-Sumo ring is small, lightweight, and can be transported in a car. Having your own personal ring gives your robots the advantage of plenty of practice and experimentation. It's easy to build a competition-quality ring when you know the tricks.

Solar Robots:


XS Boost, a solar-powered chef's-salad robot XS Boost, Chef's Salad Solar Robot
Includes some unusual parts, such as N-size cells, tilt switches, and a finger-friendly dipswitch. It has a very efficient solar engine that uses a Maxim voltage doubler chip to power Maxon motors. As such, this robot runs constantly in moderate sun (no pauses between bursts).
Appetizer robot seeking the sun Appetizer Robot
This solar-powered robot is built with a BEAM design. Small dc motors are driven by a capacitor and steered by photodiodes. Photographs, links, a video, and a schematic are provided.
Rosin smokes as a magnifying glass solders a circuit Solar Soldering
It is actually possible to solder using a magnifying glass. This article shows the desired type of lens, ambient conditions, and setup for joining electronic components with solar energy heat rays.

DC Motors, Motor Electronics, Motor Clamps, and Motor Couplers:


Thumbnail blueprint of an H-bridge schematic Bipolar Transistor H-Bridge Motor Driver
For battery-powered (low voltage, low current) motor operation, the classic discrete-transistor bipolar H-bridge beats most MOSFET and prepackaged motor driver chips for most hobbyists. But, are some of the newer transistors better in this well-known hbridge design over the common 2222, 2907, 3904, or 3906 TO-92 transistors?
Trimmer potentiometer to adjust the PWM duty cycle Pulse-Width Modulation (PWM) for Motors and LED Displays
Variable duty-cycle PWM is a great method for controlling the speed of a DC motor and the brightness of an LED display. You can make a simple PWM circuit (without a microcontroller) by using off-the-shelf electronic parts such as an inverter chip, diodes, a capacitor, and a potentiometer.
LEGO hub with solid single-piece aluminum coupler Mounting Motors and Attaching Wheels
Three different ways of connecting wheels to motors and securing motors to robot platforms. Includes drilling a pair of glued LEGO bricks, a solid UHMW coupler rod, creating motor mounts from aluminum angle stock, and a v-groove belt pulley system.
Faulhaber gearmotor Faulhaber Gearmotor with Encoder and Right-Angle Shaft
A number of surplus sites are selling a compact, low-current motor that is perfect for robotics. The 6V motor includes a 141:1 gearhead, a magnetic quadrature encoder, and a 90-degree output shaft.
The TelCom TC4424A 3-amp dual MOSFET driver chip H-Bridge Motor Driver
A wiring diagram, photograph, and movie of an H-bridge dc motor driver circuit implemented with a TC4424A, TC4427A, or MAX4427 dual MOSFET driver IC. Very useful for running small bot gear motors.
Motor mount clamp block Motor Mount Clamp Block
Sometimes, a small electric motor will lack mounting screw holes. Other times, a robot or device needs several things tied to the motor mount. A simple slitted block with screws can securely hold a motor in ways that other mounts cannot.
An aluminum LEGO compatible hub An Aluminum LEGO Hub Made on a Mill
Because LEGO tires, gears, and axles are great for building robots, I keep coming up with new adapters to connect them to standard motors. This latest method applies to the LEGO wheels that don't have cross-axle holes. Couplers and hubs are best made on a lathe, but this shows that you can create miniature round parts on a mill.
A pair of couplers for Lego wheels and gears Making a Lego Wheel to Gearhead Motor Coupler on a Lathe
Lego has some fantastic wheels to use on robots. But, Lego doesn't have a wide selection of motors. Here's how you can machine an adapter on a lathe to use Lego tires with off-the-shelf gearhead motors.
Tiny motors ready to spin Tiny Motors
Miniature motors are wonderful for B.E.A.M. robots or moving small loads. A plentiful source of inexpensive commercial motors are those used as vibrating alerts in pagers and cell phones. But how does one remove the metal offset weight?
Miniature shear with gearmotor added on Motorizing a Shear for Cutting PCBs
Machining a motor coupler with a round hole and a square hole. Making a motor mounting bracket adapter. Damage assessment of an over-torqued gearmotor.

Plastic and Metal Machining:


Fortal aluminum bracket machined on a mill Machining Parts for Friends
Machining a child safety gate clamp, a bolted bracket for a satellite radio, a LEGO shaft motor coupler, a compression tube nut, vise jaws for holding PCBs, and a brass lathe carriage lock.
Solid brass face and blue LED display Making a Brass Face Plate and Brass Pushbuttons
Machining solid brass stock on a milling machine to make an attractive front panel for an electronic project. Also, machining brass rod on a lathe to make flanged buttons.
Soda pop cleaning device made of teal Delrin Soda Pop Top Cleaner
Have you ever received an aluminum can with gunk in the groove on the top? Ick! Gross! This device is intended to push a paper towel firmly into the unreachable crevices, so that the can can be cleaned with a simple twist. The article describes using a wax mold to determine the proper dimensions and using the compound on the lathe to cut the angle.
Silica gel beads Low-Cost Tips to Prevent Rust in Your Home Machine Shop
Plastic containers, cut-to-length tubing, and silica gel packets are inexpensive ways to protect your drill bits, end mills, metal taps, and other cutting tools against damage from rust and tool-to-tool contact. However, a dehumidifier may not be the best approach.
A capacitor to replace an SR44 cell Caliper Capacitor
To avoid replacing batteries, attach a device to an external power source. But, that can result in operational problems due to electrical noise. Adding a capacitor to the battery compartment can fix that. See an example where an LR44 battery is replaced in a digital caliper.
A bent screw. This one is not ever going to be perfectly straight again. What a shame! Straightening Screws, Bolts, or Rods
In the event that a bent part can't be replaced, here is a technique for fixing a bent piece by carefully applying torque with a steel pipe while the part is held in a vise.

Infrared and Sensors:


Testing a plastic object for infrared transparency using a standard remote control Testing Materials for Infrared Transparency using a Remote Control
Most robot light sensors are infrared (IR) based. As such, what they see may be very different than what you see in visible light. Here are some simple tests that you can perform on materials using a remote control to determine if the material is opaque or transparent to infrared.

Bonus: David attempts to paint plastic to see if more IR can be blocked.
A photoresistor with a laser aimed at it Laser Detection Sensor and Memory
Although IR and wireless remotes are common, it is also possible to construct a sensor circuit that is activated with a laser pointer. A modern TLV3702 comparator chip compares a trip-level potentiometer voltage to a photoresistor sensor voltage. The result is connected to a 74AC74 D-type flip-flop that remembers the last state, which is indicated on a large blue LED.
Sharp GP2D12 infrared distance measurement sensor Testing the Sharp GP2D12 Infrared Distance Measurement Sensor
How to create a distance measurement system using an inexpensive level, a bracket, and slide. Oscilloscope traces show why a capacitor is required for this sensor.
Pair of sensors overlaid with orthogonal polarizing film Polarized Light Beacons and Photosensors
Linear polarizing filters can be placed over light sources to act as beacons. By placing a pair of orthogonally-oriented polarized films over ordinary photosensors, the robot can distinguish between two different beacons. This can be useful for robot contests or for navigating between a destination and a charging station.
Extreme close-up of an infrared LED 38-kHz Infrared Emitter Revisited
Infrared LEDs are commonly used for object detection in robots. Blinking the LED on and off 38,000 times a second improves long-range detection and reduces false triggers. Pictures, comparisons, and a schematic demonstrate a simple, reliable, low-power 555 CMOS circuit.
Cadmium-sulfide photocells from the grab bag Cadmium-Sulfide Photocell Grab Bag
Nine different kinds of photocells from a grab bag. Some were defective. But the variety of sizes is nice to have.
Cadmium-sulfide color sensor at full power!! Color Sensor for Robot
I experimented with developing a simple, active, color, object sensor for my robots based on three ultra-bright LEDs or a single RGB LED. An old-fashioned cadmium-sulfide sensor or modern TAOS light-to-voltage converter detects the brightness of the reflected red, green, and blue as each is turned on individually.
An LED produces voltage when held up to a light source Reverse an LED to Make a Color Photosensor
Surprisingly, if you put an LED in backwards and amplify the signal with an op amp, you can create a color sensor as though the LED were a photodiode. This article shows how to improve the signal quality with multiple LEDs, provides tips on reducing electrical noise, show how to convert the output to a digital signal, and includes a schematic and breadboard photo to help you implement the circuit.

Digital Tachometers and Encoders:


Electronic counter in project box Electronic Counter and Quadrature Encoder Reader
The counter can read one or two digital or analog sensors and display the running total on an organic LED display. The counter controls the speed of an attached DC motor and can stop it when a certain count is reached. The project features a continuous rotation rotary encoder dial, with a cut-away view and an explanation of how quadrature encoding works. Finally, there is an in-depth example of why interrupts are better than polling.
Target disc and optical encoder Optical Encoder with Digital Quadrature Output
Quadrature encoders use a pair of photosensors to detect the rotations of an optical target disc. A digital output produces a clean square wave that a robot microcontroller can use to determine motor speed and motor rotational direction. This particular encoder uses red LEDs rather than infrared to make it easier to aim and debug. The article includes oscilloscope traces and the circuit laid out on a solderless breadboard.
A digital tachometer for a milling machine Mini-Mill Digital Tachometer
Hobbyists have to experiment with speeds and feeds to get optimum cutting rates and surface smoothness without tool breakage. An RPM display is necessary to take advantage of existing tool rotation rate charts, but the Microlux milling machine doesn't have such a readout. Here's how I made mine with almost no modification to the existing mill. Yes, it's yet another tach project.
A six-digit, eight-segment, numeric display turned alpha Combination Handheld Tachometer, Thermometer, and Counter
Inspired by the need to measure dc motor speed and detect overheating, this 68HC908KX8 microcontroller-based circuit displays various statistics on six-digit, eight-segment, numeric LEDs. See movies of a thermister in action as well as a reflective or interrupt-based photosensor counting.




Electronic Projects:


LED bar graph for a water softener salt-level monitor Water-Softener Brine-Tank Salt-Level Monitor
If you have hard water, did you ever forget to add salt to the water softener tank? This electronic device monitors how full the tank is using a Sharp DP2D12 infrared distance monitor. The results are displayed on a custom wall plate with a multicolor LED bar graph. The project also includes several photosensors to save power.
A ring light attached to a magnifying glass Miniature Surface-Mount LED Ring Light
Ring lights provide shadowless all-around lighting that is particularly useful for close-up work such as macro-photography and circuit-board inspection with a magnifying glass. This project also includes instructions on soldering surface-mount electronic components and machining a circuit board into a ring (round/circular/donut) shape.
A toy desktop traffic lamp Modifying a Miniature Traffic Light
Unlike most mass-produced products, the internals of the toy stoplight are accessible through standard Phillips-drive screws. Looking inside, it isn't difficult to see how an AC adapter can be added and a new microcontroller can drive the wide-angle LEDs. If you don't want to keep the unit intact, there are lots of reusable parts that can be salvaged.
Pumpkin with LED Candle Halloween Pumpkin with Colorful LED Candles
Extensive tutorial on putting blinking LEDs and different colored LEDs into jack-o-lanterns. Includes schematics, solderless breadboard photos, and three movies (the blue pulsing LED is my favorite). Great way of getting started in electronics! Although this was written for Halloween, the techniques are applicable for Christmas votive candles as well.
LED tester lighting up a red LED Standalone LED Tester
Description and schematic for a constant-current LED tester. It safely lights up standard through-hole and surface mount LEDs, while providing easy access to current and voltage measurements.
Temperature displayed on 4-digit multiplexed blue LED display Dual Fan Controller
A birthday present gone too far. An overengineered temperature-based automatic twin fan controller with brass face to keep a kitchen PC cool.
Two digit 7-segment numeric display showing the best trim value for a reasonably accurate internal oscillator on this particular 68HC908KX8 microcontroller chip. Trimming the Internal Clock on a KX8 Microcontroller
Example algorithms for manually or automatically tuning the oscillator on the internal clock generator of the popular MC68HC908KX8 microcontroller. Also includes batch test results and a video.
A analog light or object sensor with red and green LEDs Analog Comparison, Digital Result
Comparators are very useful for comparing two analog voltages and providing a digital result. In this case, if the light source is dim, a red LED is enabled. If the light source is bright, a green LED is enabled. However, once comparators are understood, they can be useful for driving small robots or helping a microcontroller.
A montage of images from the Lite-On multifunction LED display Multi-Segment LED Display
Lite-On LTM-Y2K19JF-03 is a surprisingly good LED display with alphanumeric, numeric, and icon LEDs. The LED module includes all driver circuitry -- no additional transistors or resistors are necessary. The article also describes how to create and edit a 14-segment alphanumeric LED font using Excel.
NAND SR Latch for debouncing a switch Debounced Counter
A break-before-make double-throw switch is debounced by a NAND SR latch. The signal is fed into a decade counter and a LED decoder driver. If you don't know what that means (and you'd rather not use a microcontroller) then read this article.
Alphanumeric LED Display Project thumbnail Alphanumeric LED Display Project
A phenomenal 256-diode ROM acts as a character generator for a two-digit hexadecimal display.




Printed Circuit Boards (PCBs):


A homemade printed circuit board Homemade Printed Circuit Board
Making a custom printed circuit board (PCB) takes some setup time and supplies, but is well worth the repeatable, reliable results. The example board is single-sided copper with through-hole components. Two-sided and surface-mount circuit boards follow.
Single-sided perfboard thumbnail Prototyping Breadboard and Other Tips
A variety of topics regarding breadboard patterns, surface-mount prototypes, inline resistors to save space, wire loop for hook test probes, shunts to protect fingers, and repairing squashed alligator clip barrels from soldering aids.
Erasing PCB tarnish with a pencil eraser Erasing PCB Tarnish with a Pencil Eraser
Microscope images of pads and holes on a printed circuit board after being rubbed with various types of erasers, a buffing wheel, and Scotch Brite scour pads. This is a simple method for removing oxides from PCB plating and electronic part pins prior to soldering.
Artistically-enhanced image of circuit board traces at 60x magnification Microscopic Views of a Printed Circuit Board
Photographs of homemade circuit boards under 10x, 60x, and 200x magnification using the Intel QX3+ microscope. Shows details of pixel aliasing, copper cracks, poor resist transfer, and soiling from sticky flux paste.
Video camera zooming in on small electronic parts Do-It-Yourself Video Inspection Microscope
There are times when a small magnifying glass is inadequate -- such as sorting a lot of small parts or inspecting a batch of circuit boards. You can use a consumer video camera and a monitor to get a close-up view for a lot less money than buying a special tool. This article also includes a tip about using a rare-earth neodymium magnet for collecting SMD parts.

Other:


Transformers running shoes with flashing lights Movement Detector in Light-Up Shoes
Most kids's shoes today include color LEDs that blink as the kid runs, jumps, plays, or throws them across the room in a fit. Unfortunately, the battery can't be replaced since the sneaker is considered disposible. But, this gives home scientists a plausible occassion to disassemble the consumer product to find the magic sensor that detects motion.
Candy-container robot with front bumper switch Flip-Flop Robot
This robot drives forward until the front bumper hits an obstacle. Then, the robot reverses until the rear bumper hits an obstacle. An easy-to-build robot for beginners. No machining or microcontroller required.
Chicago, the solar line-following robot Repairs and Improvements
Visit Sweet, Roundabout, Hard2C, and Chicago for a weekend of simple fixes for line following, mini sumo, and solar power. See how different types of screws can help a robot slide, hide, and hold onto a gear.
Big Trak, the big Christmas present of 1979 Inside the Big Trak
Ever wonder how the Big Trak toy worked? And what about the mysterious IN button on the keypad?
DAC is a hexadecimal number Digital Number Systems
Whether you're working on robots, digital circuits, software, or microcontrollers, you'll encounter numbers that aren't decimal. This tells you how to convert a number to and from hexadecimal, binary, octal, and decimal.
Roundabout, the line-following, room-exploring, mini-sumo robot Roundabout
This is an all-in-one intermediate-level robot that can explore rooms, avoid obstacles, follow lines, and compete in mini sumo (see the movies). The robot can be made in a variety of body styles with either a logic chip or microcontroller brain.
Roundabout's PCB being built Roundabout PCBs
Instructions and tips for assembling Roundabout's electronics using the templates or ready-made PCBs available online.
An Atari joystick Controlling a Robot with an Atari Joystick
Every once in a while, a project turns out really well. This is one of my favorites. Using a classic Atari or Commodore joystick, you can make a simple circuit to control a robot or other electronic device. Includes a schematic that does not require a microcontroller or even a voltage regulator. Also discussed is how to modify a Solarbotics GM7 motor for easy mounting to a Lego Technic frame.
Power switch with target Robotic Kill-Switch Target
Mounting a robot's power switch in the front adds a new method of defeating an opponent in robot combat. Rather than sustaining major damage, the robot can be disabled by hitting the snap-action switch. Schematic and photographs included.
StreamHawk remote-controlled semi-autonomous exploration robot Wireless Video and Speech Telepresence Robot
Movies, photographs, tips, and instructions for a remote-controlled semi-autonomous wireless robot that navigates with dead-reckoning from Maxon motor encoders. The motherboard includes an Atmel ATmega644 microcontroller, four Infineon TLE-5206-2 motor drivers, Panasonic IR remote receiver, and I2C communication. The robot also includes a Devantech speech module.

Books:


Robot books: A description of some robot and electronics books that I own. The books are linked to a web site if you choose to purchase them online.


More:


More: But, that's not all. To speed up the home page, previous projects and events move to a second page.