In this lesson, we will use the Espro Board to make an object follow project.
Hardware:
Espro Robot Control board
Chassis and motor system same as lesson 1
Two IR object sensors
| L293 Pin | ESP32 GPIO | Function |
| IN1 | 23 | Motor A Direction 1 |
| IN2 | 25 | Motor A Direction 2 |
| IN3 | 26 | Motor B Direction 1 |
| IN4 | 27 | Motor B Direction 2 |
| ENA | 16 | Motor A Speed (PWM) |
| ENB | 17 | Motor B Speed (PWM) |
| Object Sensor | VCC | GND | Left Out | Right Out |
| ESP32 GPIO | 3V3 | GND | GPIO 15 | GPIO 14 |
Software Installation Guide:


Then Select correct port which matches ESP32 board.
Step 2) Download Correct Sample Code and Upload to Arduino.
Sample Code:
https://github.com/osoyoo/espro_objectfollow/blob/main/objectfollow.ino
| Left Sensor | Signal | VCC | GND |
| Espro GPIO | 15 | 3.3V | GND |
| Right sensor Pin | Signal | VCC | GND |
| Espro GPIO | 14 | 3.3V | GND |
DownLoad Url osoyoo.com