Rebuild an RC Car With ESP32 & Arduino Code

by mikroct in Circuits > Microcontrollers

3537 Views, 5 Favorites, 0 Comments

Rebuild an RC Car With ESP32 & Arduino Code

Rebuild an RC CAR with ESP32 & Arduino Code
01 Rebuild your RC Car (Remote Control)
02 Rebuild your RC Car (RF communication over ESP-NOW)
03 Rebuild your RC Car (Hardware Setup of the RC Car)
04 Rebuild your RC Car (fundamental operation)
05 Rebuild your RC Car (final step)

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:

  1. ESP32 package (run Boards Manager in Arduino IDE)
  2. Servo ESP32 library, available at: https://github.com/RoboticsBrno/ServoESP32
  3. Adafruit_INA219, available at: https://github.com/adafruit/Adafruit_INA219
  4. ThingPulse OLED SSD1306, available at: https://github.com/ThingPulse/esp8266-oled-ssd1306


20220817_185322.jpg
20220817_185011.jpg

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)