A beginner-friendly Robotics project for competeting with a wireless formula-style robot car using WiFi and a smartphone app.
This project lets you control a two-wheeled robot car wirelessly using your smartphone! The robot can:
- Move forward and backward
- Turn left and right
- Be controlled remotely via WiFi
- Work with different control interfaces (buttons or sliders)
We provide two different versions of the code, each with a different smartphone interface:
- Simple button interface - perfect for beginners!
- 4 directional buttons: Forward, Backward, Left, Right
- 1 center slider for fine speed control
- Easy to understand - just press and hold buttons to move
- Advanced joystick-like control - for more precise movement
- 2 sliders: one for forward/backward, one for left/right turning
- Smoother, more gradual control
- Variable speed based on how far you move the sliders
- ESP32 development board
- 2x DC motors
- Motor driver board (L298N or similar)
- Wheels and chassis
- Battery pack
- Jumper wires
- Download Arduino IDE from arduino.cc
- Install the ESP32 board package in Arduino IDE
- In Arduino IDE, go to Tools → Manage Libraries
- Search for "RemoteXY" and install it
- For beginners: Use
Formula_IEEE_Buttons.ino - For advanced users: Use
Formula_IEEE_sliders.ino
- Copy the entire code from your chosen file
- Paste it into a new Arduino IDE sketch
- Connect your ESP32 to your computer
- Select the correct board and port in Arduino IDE
- Click Upload ⬆️
- Download RemoteXY app on your smartphone
- Upload the code to your ESP32
- Look for WiFi network "RemoteXY" or "ESP32_AP"
- Connect with password:
123456789 - Open RemoteXY app and start controlling!
Connect your motors to these ESP32 pins:
Motor 1 (Left): Motor 2 (Right):
- Enable: Pin 27 - Enable: Pin 14
- Input 1: Pin 25 - Input 1: Pin 12
- Input 2: Pin 26 - Input 2: Pin 13
| Feature | Button Version | Slider Version |
|---|---|---|
| Control Style | Discrete buttons | Continuous sliders |
| Learning Curve | Easier for beginners | Little more advanced |
| Speed Control | Fixed speeds | Variable speeds |
Both versions use the same core principles:
- WiFi Connection: ESP32 creates a WiFi hotspot
- RemoteXY App: Your phone connects and sends control commands
- Motor Control: ESP32 receives commands and moves the motors accordingly
- Movement Logic:
- Forward/Backward: Both motors spin in same direction
- Turning: Motors spin in opposite directions
- Start simple: Begin with the button version
- Test early: Upload code before adding all hardware
- Check connections: Double-check all wiring
- Practice: Try both versions to see which you prefer!
Good luck with your Formula WIEEE Car! 🏁