The OSOYOO Espro board is a credit-card-sized, mini ALL-IN-ONE Motor Control Board. It integrates an ESP32 MCU and an L293DD H-Bridge dual-channel motor control module, allowing users to program two sets of motors directly via the Arduino IDE to control a robot car’s movement.
This tutorial will show how to program the ESPRO MCU to control a ultrasonic sensor to do obstacle avoidance.
| 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) |
Left Motor to K3 or K4 , Right Motor to K1 or K2
| Ultrasonic Sensor | VCC | Trig | Echo | GND |
| ESP32 GPIO | 3V3 | 18 | 19 | GND |
Software Installation Guide:


Then Select correct port which matches ESP32 board.
Step 2) Download Correct Library and Sample Code and Upload to Arduino.
Library Code:
https://osoyoo.com/driver/ESP32Servo.zip
please go to Sketch->Include Library->Add .Zip File and upload above zip file to Arduino IDE.
Copy Sample Code from following link and paste it to your Arduino IDE.
https://github.com/osoyoo/espro_obstacle/blob/master/espro_obstacle.ino
DownLoad Url osoyoo.com