Skip to content

rakesh-i/ESP32-RC-car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32-RC-car

RC car, which you can control from your PC.

image

Prerequisites

  • Knowledge on how to work with MicroPython on ESP32 or any other Micropython compitable development board.
  • Comfortable with soldering on PCB board.
  • Basic knowledge in arduino programming.
  • Basic knowledge in python programming.

Things required

Before we start you can use any other similar parts to build your car. You just need to adjust your code according to it.

Item Image
RC car Logo
L298N motor dc motor driver Logo
Antenna Logo
Buck Convertor Logo
LIPO battery Logo
ESP32 Logo
ESP32 CAM Logo
Servo motor Logo
Header pins Logo
Wires Logo
PCB board Logo

Modifing the rc car

  1. Open the outer shell.

    Logo
  2. Remove all wiring and circuits.

    Logo
  3. Cut slot in battery holder, for fitting lipo battery.

    Logo Logo
  4. Remove steering motor.(we will replace it with servo)

    Logo
  5. Cut slots to accommodate servo motor.

    Logo Logo
  6. Cut slots in servo arm like this for connecting to stering shaft.

    Logo
  7. Fix the servo to chassis with the help of few spacers.

    Logo
  8. Put back the cover.

    Logo
  9. Follow the schematic and solder the parts.

    Logo
  10. If you have done everything right it should look something like this.

    Logo Logo Logo Logo
  11. I have added standoffs to hold the circuit above the battery.

    Logo
  12. Re-route esp32 cam antenna wher interference is less.

  13. If you are struck follow the following video.(coming soon)

Code

  1. Follow this link, where you can find how to setup client-server socket using micropython.
  2. Now that you know how to setup socket for wireless connection. Modify files in esp32-files to setup your connection.
  3. Copy all the files in folder esp32 files to your esp32.
  4. Confirm every thing is working before putting esp32 on car.
  5. Client.py do not show video feed. Use stream.py to get video feed also.
  6. Now, turn on your car, wait for it to connect to your wifi. Once connected run client.py
  7. Once connection is made you can drive the car using AWSD keys on keyboard.
  8. You can change speed by changing the motor.motorSpeed() function in server.py
  9. If direction is reversed, flip the sign of motor.motorSpeed() values.

Contribution

Feel free to point out issues. You can contribute to this repo to improve it.

About

RC car which you can control from PC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages