https://github.com/nochkin/esp-line-follower
A simple educational project to build a line following 2WD robot
https://github.com/nochkin/esp-line-follower
2wd arduino educational esp32 esp32-arduino esp8266 esp8266-arduino espressif infrared learning nodemcu nodemcu-arduino robot
Last synced: about 2 months ago
JSON representation
A simple educational project to build a line following 2WD robot
- Host: GitHub
- URL: https://github.com/nochkin/esp-line-follower
- Owner: nochkin
- License: mit
- Created: 2019-07-21T04:20:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-20T04:16:30.000Z (about 2 years ago)
- Last Synced: 2025-06-07T15:04:25.331Z (4 months ago)
- Topics: 2wd, arduino, educational, esp32, esp32-arduino, esp8266, esp8266-arduino, espressif, infrared, learning, nodemcu, nodemcu-arduino, robot
- Language: C++
- Homepage:
- Size: 240 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp-line-follower
## Purpose
The goal of the project is to teach beginners into robotics without fearing and over-complicated or expensive parts.
It's indended to be open enough for future experiments and improvements.## Required skills
* Basic soldering skills.
A few wires need to be soldered here and there, nothing major.
* Some understanding on how electronic components are connected together
Just enough to know the difference between "+" and "-", signal and power lines, etc.
* Basic knowledge on Arduino IDE and how sketches are uploaded.## Required parts
This is the minimum list of required parts. Basically, these are the parts which are being used in this project.
The list should not limit you in case if you wish to add some additional functionality or make other experiments based on that.
* Microcontroller board.
The project uses ESP8266 NodeMCU board with CP2102. Sometimes that board is referenced as "ESP8266 NodeMCU v2 DevKit".
There are some variations of ESP8266 NodeMCU board with CH340G chip, but these are too wide to fit into motor driver shield and so can't be used.
* Motor driver shield.
The shield is based on L293DD chip. A single chip contains four half-bridges which can be connected as two full bridges to drive two motors.
* A pair of Reflective Infrared sensor boards.
These are sometimes called "Obstacles avoiding infrared sensor board". Each board contains an infrared LED and infrared photodiode.
There are a lot of variations of those boards. I highly recommend to pick those with a small adjustment, this way it can be adjusted according to the current lighting and surrounding contrast.
* 2WD Robot Chassis.
Normally, the chassis comes with two motors with built-in reductors, 4*AA battery holder and enough screws and mounting hardware to put everything together. You will still need some additional mounting/screws to put your ESP8266, Motor shield and Infrared sensors.## Bill Of Materials (BOM)
All prices are approximate and depend on the source where you purchase it. My recommended sources are eBay and AliExpress. You can also find it on Amazon, but it tends to be slightly more expensive. All prices are in USD.Qnty | Part | Cost | Buy
-- | - | - | -
1 | ESP8266 NodeMCU (CP2102) | $5.00 | [eBay](https://www.ebay.com/itm/201542946669), [AliExpress](https://www.aliexpress.com/item/32716698412.html), [Amazon](https://www.amazon.com/ESP8266-microcontroller-NodeMCU-WiFi-CP2102/dp/B071WRD25D/ref=sr_1_1?keywords=B071WRD25D&qid=1568748259&s=gateway&sr=8-1)
1 | L293DD Motor Shield for ESP8266 NodeMCU | $2.50 | [eBay](https://www.ebay.com/itm/400999618519), [AliExpress](https://www.aliexpress.com/item/32870926299.html), [Amazon](https://www.amazon.com/BeediY-NodeMCU-ESP-12E-ESP8266-Control/dp/B07QVCMM5B/ref=sr_1_1?keywords=B07QVCMM5B&qid=1568748516&s=gateway&sr=8-1)
2 | Infrared sensors | $1.50 | [eBay](https://www.ebay.com/itm/132461910910), [AliExpress](https://www.aliexpress.com/item/32757950384.html), [Amazon](https://www.amazon.com/HiLetgo-Infrared-Avoidance-Reflective-Photoelectric/dp/B07W97H2WS/ref=sr_1_1?keywords=B07W97H2WS&qid=1568748581&s=gateway&sr=8-1)
1 | 2WD Robot Chassis | $8.00 | [eBay](https://www.ebay.com/itm/253202993406), [AliExpress](https://www.aliexpress.com/item/32766175672.html), [Amazon](https://www.amazon.com/SainSmart-Smart-Chassis-Tracing-Encoder/dp/B07DNYQ3PX/ref=sr_1_1?keywords=B07DNYQ3PX&qid=1568748118&s=gateway&sr=8-1)
6 | 20cm Dupont Wires F-F to connect Infrared boards | $2.00 | [eBay](https://www.ebay.com/itm/283983743599)
1 | Various M3 spacers/standoffs/screws | $12.00 | [eBay](https://www.ebay.com/itm/173901459487), [AliExpress](https://www.aliexpress.com/item/32799855557.html), [Amazon](https://www.amazon.com/Yosoo-120pcs-standoff-motherboard-assortment/dp/B01GO2GWWW/ref=sr_1_1?keywords=B01GO2GWWW&qid=1569029665&sr=8-1)
1 | Black Cloth Tape, 32mm x 15m | $2.00 | [AliExpress](https://www.aliexpress.com/item/32964092687.html) |**Total**: about $20
## Connection diagram
