Introduction: RC Arduino Car - Speed Racers
The world of electronics and programming can be a fascinating place, especially when it comes to building your own projects. One such project that can be both exciting and educational is the creation of an Arduino RC transmitter, RC car, and race timer that can be combined to create a thrilling time attack racing game--Speed Racers.
To begin this project, we will first focus on building the RC car. The car will consist of a 3D printed chassis that will hold most of the components for the car. The chassis will provide a sturdy base for the motors, servos, and Arduino board, which will control the movements of the car. A body will also be 3D printed to cover the electronics, which will also feature little windows to add a touch of style. The car will have both motors to accelerate the car and servos to control the front wheels, which will be managed using an Arduino and a DC motor controller.
The next component to be built is the RC transmitter. The transmitter will use a NRF24L01 Transceiver Module to communicate with the vehicle. To keep everything tidy and compact, while also allowing us to create a smaller, more comfortable controller, we'll make the controller box out of acrylic. This also adds some durability This will require some design work and cutting but it will be a great opportunity to make the car and joystick your style.
Once the RC car and transmitter are completed, we can move on to building the race timer. The timer will be based around the Arduino Nano, LCD screen, and Gikfun IR LED emitter and receiver. The timer will start as soon as the race gate switch is triggered, and it will stop as soon as the car crosses the finish line. From there, we will calculate the elapsed time to determine the winner. We will also build a casing for the gate, allowing the car to pass through it smoothly.
Building each component of this project can be a challenging but ultimately fulfilling experience. The process of designing and 3D printing the chassis and body of the car, as well as designing and assembling the transmitter, can teach valuable skills such as 3D modeling and soldering. The race timer can teach skills such as programming and working with electronic components. Integrating all of the components into a cohesive system will require careful planning and attention to detail.
Once the project is complete, we can combine all of the components into a time attack racing game.
In conclusion, this project can be an exciting and rewarding way to learn about programming, electronics, and 3D printing. It provides ample opportunities to develop new skills, explore new ideas, and have fun in the process. Whether you are a beginner or an experienced hobbyist, this project is a great way to challenge yourself and create something truly unique.
Code links:
car: https://gist.github.com/emhe3766/0ff75577614b6173cb56227205cdecd5
joystick: https://gist.github.com/emhe3766/b6030957cec9bd9f44902b9c1b3d2ff6
time gate: https://gist.github.com/alci1167/f2712e60a9b2e4270bb787a5bc79b51a
Supplies
- Battery holder for 4
- Batteries x4
- Arduino Uno x3
- Joystick/Remote
- Acrylic sheet (5"x6")
- 4 wheels
- 4 motors
- nRF24L01 Module x2
- Laser sensor
- LCD 1602 Module
- Wires
- Capacitors x2
- Cardboard
- Optional: car shell
Step 1: Cut Acrylic Sheet
Cut the acrylic sheet to be 5"x6".
Step 2: 3D Print Wheels and Car Shell
Model and 3D print your wheels and if you want, your car shell. You can also buy these.
Step 3: Acrylic Sheet Attachments
Use acrylic safe glue to attach motors onto the acrylic sheet. Arrange it how a car would be. We attached the motor shield to the uno and then glued the uno motor shield piece to the acrylic sheet. Attach the uno and the battery holder to the acrylic sheet, as well.
Step 4: Wiring to Motor Shield
Then screw the wires from the motor onto the motor shield.
Step 5: Attach the Wheels
Securely put wheels in motor.
Step 6: Attach a Power Switch
Attach the on/off switch to the battery holder that connects motor shield.
Step 7: Transmitter
Solder the transmitter module to the motor shield.
Step 8: Car Shell
Attach the car shell to the base to cover the top.
Step 9: Joystick
Attach the joystick module to the uno. (Place the joystick pieces in a casing for easy handle when everything is done.)
Step 10: Transmitter
Attach the transmitter to the uno.
Step 11: Power
Attach a 9 volt battery to the uno.
Step 12: Wire
Wire the LCD screen the arduino. Wire the LCD display to the arduino using this as a reference. The LCD display also needs a 220 ohm resistor and a 10k potentiometer. The potentiometer helps control the brightness of the display.
Step 13: Laser Gate
Add to circuit with the arduino and LCD.
These are the laser transmitter and the laser receiver. These are added to the arduino and LCD display. The laser is connected to pin 13 and ground. The receiver is connected to power, ground, and pin 8.
Step 14: Battery
This is the completed circuit including a battery for the power source. The laser and receiver have long wires so we can sit across from each other in the gate
Step 15: Program the Laser Gate
Put the outputs on the serial monitor.
Step 16: Output LCD
Output to the LCD.
Step 17: Make the Gate
These are the cutouts for the laser gate enclosure. This is made out of chipboard and put together using some craft glue.
Step 18: Make the Gate Pt 2
Make a gate for the timer out of cardboard.
Step 19: Full Circuit for Reference
This is the circuit in its enclosure. The laser and receiver are placed across from each other to ensure they make contact. The LCD display is placed in the center to make sure it can be seen when in use.