Kids OK with adultESP32Level 2/3
Tea-Serving Robot
Pick a desk on your phone. The robot follows a black tape line and stops at that desk with your tea.
Sign in to save
Kids OK, with an adult
DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.
An adult must handle and charge the lithium (18650) batteries.
Strictly follow the description given with this video.
Video
The video link will be added here soon.
How it works
- Three IR sensors under the robot see the black tape line (left, centre, right).
- The ESP32 steers: if the line drifts left, it slows the left motor, and the same for the right.
- White stop marks across the line are counted. At the chosen desk number, the robot stops.
- The L298N driver gives the motors the battery power that the ESP32 pins cannot give.
Parts you need
ESP32 dev board₹518× 1Buy- 3-channel IR line sensor (TCRT5000)× 1Buy
L298N motor driver₹161× 1Buy
2× N20 6V gear motors + wheels× 2Buy
Ball caster₹46× 1Buy
2× 18650 battery pack (7.4V) + ON/OFF switch× 2Buy
Kit for this projectPrice on request
Get the kitWiring
PowerGroundSignal
| # | From | Connect to |
|---|---|---|
| 1 Power | IR sensor VCC | ESP32 3V3 |
| 2 Ground | IR sensor GND | ESP32 GND |
| 3 Signal | IR sensor L | ESP32 D5 |
| 4 Signal | IR sensor C | ESP32 D18 |
| 5 Signal | IR sensor R | ESP32 D19 |
| 6 Signal | L298N ENA | ESP32 D14 |
| 7 Signal | L298N IN1 | ESP32 D27 |
| 8 Signal | L298N IN2 | ESP32 D26 |
| 9 Signal | L298N IN3 | ESP32 D25 |
| 10 Signal | L298N IN4 | ESP32 D33 |
| 11 Signal | L298N ENB | ESP32 D32 |
| 12 Signal | L298N 5V out | ESP32 VIN |
| 13 Ground | L298N GND | ESP32 GND |
| 14 Signal | Left motor | L298N OUT1 / OUT2 |
| 15 Signal | Right motor | L298N OUT3 / OUT4 |
| 16 Power | Battery + | Switch → L298N 12V |
| 17 Ground | Battery − | L298N GND |

3D print files
- robot_chassis.stlPETG · 0.2 mm · no supportsLink at launch
- cup_tray.stlPETG · 0.2 mm · no supportsLink at launch
Code
The tested Arduino / ESP32 code for this project will be posted here, ready to copy.