https://github.com/mtb-rz/esp8266_rc_car
This project is a WiFi-controlled RC car using an ESP8266 and an L298N motor driver. The ESP8266 receives throttle and steering inputs via WebSockets and controls the DC motor and servo steering proportionally.
https://github.com/mtb-rz/esp8266_rc_car
arduino diy esp8266 iot l298n motor-driver pygame python rc-car websockets wireless-control xbox-controller
Last synced: about 2 months ago
JSON representation
This project is a WiFi-controlled RC car using an ESP8266 and an L298N motor driver. The ESP8266 receives throttle and steering inputs via WebSockets and controls the DC motor and servo steering proportionally.
- Host: GitHub
- URL: https://github.com/mtb-rz/esp8266_rc_car
- Owner: MTB-RZ
- Created: 2025-03-16T14:45:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-16T15:10:16.000Z (about 1 year ago)
- Last Synced: 2025-03-16T15:48:06.602Z (about 1 year ago)
- Topics: arduino, diy, esp8266, iot, l298n, motor-driver, pygame, python, rc-car, websockets, wireless-control, xbox-controller
- Language: Python
- Homepage:
- Size: 201 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP8266_RC_Car
This project is a WiFi-controlled RC car using an ESP8266 and an L298N motor driver. The ESP8266 receives throttle and steering inputs via WebSockets and controls the DC motor and servo steering proportionally.
**Features**
• Proportional throttle control (PWM-based speed control).
• Proportional steering control (Servo-based angle adjustment).
• WebSocket communication for real-time control.
• Adjustable PWM frequency for stable motor operation.
**Hardware Used**
ESP8266 (NodeMCU or Wemos D1 Mini)
L298N Motor Driver
High Speed 12V DC Motor
Servo Motor for Steering (SG90)
12V or 7.4V Li-ion Battery
**Setup & Upload**
Flash the ESP8266 with the provided code using Arduino IDE.
Power the ESP8266 separately or through the L298N’s 5V output (with a capacitor for stability).
Connect the ESP8266 to the motor driver as per the pin configuration.
Use a WebSocket client or a custom controller (e.g., a mobile app or PC) to send throttle and steering data. (In the code provided, it is being controlled via Xbox Controller)
**Next Improvements**
Implement PID-based speed control for better accuracy.
Add IMU-based stabilization for smoother handling.
Develop a mobile app UI for easier control.