RC Control Wooden Monstertruck using Arduino IDE, ESP32, loudspeaker, lights and MIT App Inventor
This Christmas project turned out to be a lot of fun: an RC controlled Monster Truck using Arduino IDE, ESP32 and MIT app inventor. The Truck has following functions:
- Speakers (you can play the imperial march from StarWars e.g.)
- Lights
- 4 motors
- Bluetooth Control
- Arduino Code and detailed steps are provided.
Full guide: https://www.lasercut24.net/rc-controlled-wood-monster-truck-arduino-ide-esp32-app-inventor/
Woodcraft & Wi-Fi: Custom App Inventor RC Truck
Plastic RC cars break. The DIY RC Wood Truck project marries traditional woodworking craftsmanship with ultra-modern Wi-Fi telemetry. Instead of relying on a dedicated radio controller, you utilize the powerful ESP32 chip alongside MIT App Inventor to generate a custom steering wheel application directly on your smartphone screen.
ESP32 Wi-Fi Command Parsing
We are bypassing Bluetooth entirely for far superior range.
- The Server Mode: The ESP32 acts as a Standalone Access Point (AP Mode). It creates its own Wi-Fi network named
WoodTruck_Network. - You connect your Android phone to that specific Wi-Fi network.
- Inside the C++ code, the ESP32 hosts a tiny UDP (User Datagram Protocol) listener on port 8888.
- UDP is faster than HTTP because it doesn't wait for "receipts." It just instantly catches packets!
if (udp.parsePacket()) { int command = udp.read(); executeMotors(command); }
Designing the Virtual Joystick (MIT App Inventor)
You must build the phone interface.
- In the MIT App Inventor web portal, you drag a
Canvasimage of a steering wheel and a throttle slider onto the screen. - You code the visual math: When the user's thumb slides the throttle image upward, the app calculates the pixel distance (e.g.,
Speed = 255). - You drag the "UDP Extension" block into the code. The phone instantly blasts the
Speed=255string over the Wi-Fi connection directly into the ESP32! - The ESP32 updates the L298N Motor Driver PWM pin instantly, sending the heavy wooden truck flying across the dirt.
Integrating Crafting and Electronics
- ESP32 Dev Board: Necessary for the UDP Wi-Fi server.
- MIT App Inventor 2: Used to rapidly prototype the Android
.APK. - L298N Motor Driver or BTS7960 (for massive motors).
- Two high-torque 12V DC gear motors and heavy rubber off-road tires.
- Custom-fabricated Wooden Chassis (Plywood or Pine) glued and bolted together to withstand immense impacts!