RC car, which you can control from your PC.
- 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.
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 | |
L298N motor dc motor driver | |
Antenna | |
Buck Convertor | |
LIPO battery | |
ESP32 | |
ESP32 CAM | |
Servo motor | |
Header pins | |
Wires | |
PCB board |
-
Open the outer shell.
-
Remove all wiring and circuits.
-
Cut slot in battery holder, for fitting lipo battery.
-
Remove steering motor.(we will replace it with servo)
-
Cut slots to accommodate servo motor.
-
Cut slots in servo arm like this for connecting to stering shaft.
-
Fix the servo to chassis with the help of few spacers.
-
Put back the cover.
-
Follow the schematic and solder the parts.
-
If you have done everything right it should look something like this.
-
I have added standoffs to hold the circuit above the battery.
-
Re-route esp32 cam antenna wher interference is less.
-
If you are struck follow the following video.(coming soon)
- Follow this link, where you can find how to setup client-server socket using micropython.
- Now that you know how to setup socket for wireless connection. Modify files in esp32-files to setup your connection.
- Copy all the files in folder esp32 files to your esp32.
- Confirm every thing is working before putting esp32 on car.
Client.py do not show video feed. Use stream.py to get video feed also.
- Now, turn on your car, wait for it to connect to your wifi. Once connected run client.py
- Once connection is made you can drive the car using AWSD keys on keyboard.
- You can change speed by changing the motor.motorSpeed() function in server.py
- If direction is reversed, flip the sign of motor.motorSpeed() values.
Feel free to point out issues. You can contribute to this repo to improve it.