ESP32 Projects
Start a build
Markdown

Self Balancing Stereo Camera Autonomous Robot ESP32

To provide a DIY and Budget alternative to expensive miniature autonomous vehicle platforms like AWS DeepRacer.

AI Thinker ESP32-CAMSee upstream buildUnrated
Parts and source

Before you start

Confirm board compatibility and supported firmware targets in the upstream documentation.

Upstream README

Self-Balancing-Autonomous-Robot(SBAR)-ESP32

animated

Theme

To provide a DIY and Budget alternative to expensive miniature autonomous vehicle platforms like AWS DeepRacer.

Methodology

To reduce the cost, minimal 'on-robot' processing was encouraged. Heavy lifting tasks like Image Processing etc, were to be done on a remote PC. To achieve this, all the sensor data has to be wirelessly communicated to the PC, and the PC sends back the processed results to the robot. Hence ESP32 was an ideal platform, as it has inbuilt WiFi capability and can host small websites. ESP32-CAM modules with ov2460 cameras were chosen for Stereo Camera setup. And an EPS32 Development Board was selected for self-balancing functionality. To generate the odometry data, encoder discs with light-blocking sensors were used.

Working

Code Structure

1. Left_Camera
     - Embedded Code for the Left Camera.
2. Right_Camera
     - Embedded Code for the Right Camera.
3. Self_Balancing
     - Embedded Code for the Central ESP32 Board with Web interface for giving commands.
     - Embedded Code for the Central ESP32 Board with Web interface for tuning PID parameters.
4. Depth Map
     - Code to stream the images from both cameras and processing them to generate the disparity map.

Hardware Implementation

Result

Disparity Map Generation

animated