Roving Robot
You'll build a wheeled machine that wanders a furnished room on its own for thirty minutes, gets itself out of corners, and finds its way back to a dock when the battery runs low.
About
A robot is a sensor badge, a motor badge, a power badge and an enclosure badge all in one. Build a wheeled platform from a cheap chassis kit or scrap, drive it with a motor driver you wired yourself, give it a distance sensor, a bump switch and some rules, and let it loose in a room with furniture in it. Wandering is the easy half. The Epic half is getting out of the traps a room sets (the corner, the gap under the sofa, the rug edge) and coming home to a dock on its own when the battery reads low. It will find the one chair leg the sensor can't see, every time.
At a glance
- Per requirement
- 50 XP
- Completion bonus
- 600 XP
- Requirements
- 7
- Takes
- A season
- Skill level
- Intermediate (months of practice)
- Cost
- Moderate (under $100)
- Supplies
- You need some
- Where
- At home
- Other people
- With other people
Requirements
-
1
Build a two-wheel platform with a motor driver you wired yourself and a fused battery pack. A ten-dollar acrylic chassis with yellow gear motors works, and so does a lunchbox and two drill motors. Use the switch or H-bridge from your Motor Driver badge or a TB6612 module, with the motor supply fused on the positive lead and joined to the board by ground only. Four AA cells or a 2S lithium pack with a protection board. Film it driving forward, reversing and turning under code. Video
-
2
Read the pack voltage from the code and pick a low-battery line. Two resistors as a divider into an analog pin, scaled so a full pack reads under the pin's limit. Print the voltage, check it against a meter, and pick the number where the robot should head home (about 3.5 V per cell for lithium, 1.1 V per cell for alkaline). Take a photo of the printed voltage beside the meter on the same pack. Photo
-
3
Fit a distance sensor and a bump switch, and stop before a wall from full speed. An HC-SR04 is about two dollars, and a bumper is a microswitch behind a strip of plastic across the front. Stop at 20 cm, every time, from full speed, and back off and turn when the bumper hits the chair leg the sonar missed. Film ten approaches to a wall with no contact, then one bump recovery. Video
-
4
Get out of three traps without help. A corner, the space under a chair or sofa, and a dead end between two boxes. A robot that only backs up and turns a fixed angle will rock in a corner for ever, so vary the turn, count the recent bumps, and escalate to a bigger move when they pile up. Film all three escapes. Video
-
5
Run it for thirty minutes in a furnished room with no hands. No crashes, no rescues, no boxes blocking the doorways. Sped up is fine, with a clock in frame at the start and the end. Say what stopped it, if anything did, and what you changed. Video
-
6
Bring it home to a dock when the battery reads low. A dock can be a bright lamp on the floor and two light sensors (steer toward the brighter one), an infrared LED and a receiver, or dead reckoning from encoders if you've done Closed Loop. When the voltage drops below your line or a timer runs out, it heads for the dock and stops within 10 cm, three times out of five. Film three arrivals. Video
-
7
Give it a shell, a name and an off switch a kid can reach, and show it to one. Any material for the shell, and a face if you like. Watch what they try to do to it, because that's your next fault list. Film the demo, with their permission. Video