Rebuild an RC Car With ESP32 & Arduino Code
by mikroct in Circuits > Microcontrollers
4815 Views, 6 Favorites, 0 Comments
Rebuild an RC Car With ESP32 & Arduino Code
The present document provides all the information needed to rebuild an RC CAR from scratch using ESP32-based microcontroller units (MCUs), programmed in Arduino environment. The current project applies to the 1:16 Xinlehong (XLH)9136 model, but can be easily adapted to any RC Car model that incorporates:
a) DC motor for the forward/backward (FW/BW) movement of the car,
b) 3-wireServo Motor (operating at 5V) for the control of the steering wheel,
c) 2S LiPo battery (of 7.4 nominal voltage or perhaps of higher voltage if taking into consideration the specifications and limitations of the boards held by the proposed system).
To complile this project with Arduino IDE you need to install:
- ESP32 package (run Boards Manager in Arduino IDE)
- Servo ESP32 library, available at: https://github.com/RoboticsBrno/ServoESP32
- Adafruit_INA219, available at: https://github.com/adafruit/Adafruit_INA219
- ThingPulse OLED SSD1306, available at: https://github.com/ThingPulse/esp8266-oled-ssd1306
The image on the right side depicts the hardware setup of the RC Car chassis while the one on the left side depicts the hardware setup of the Remote Control device. To build the project follow the five above videos providing a step-by-step guide to the user and read the detailed description found in the document: "DOCUMENTATION__Rebuild an RC CAR with ESP32 and Arduino Code.pdf"
Source code for this project is given below and is as follows:
RC-CAR.ino (This is the Arduino code for the RC Car)
Remote-Control.ino (This is the Arduino code for the Remote Control)
Enclosure.stl (This is the 3D Printer file for RC Car Enclosure)
Lid.stl (This is the 3D Printer file for RC Car Enclosure's Lid)