Custom Remote Control Car
Laser Cut:
- Chassis
3D print:
- Motor Mounts
- Holder
- Ultrasonic Sensor Mount
- Bluetooth Holder
- LED mount
Supplies
- Laser Cutter
- Onshape
- Arduino program
- USB cable for Arduino
- Soldering tool
- solder
- Wires (regular and jumper)
- Heat Shrink
- Heat Gun
- Screws and nuts of various size
- 3D printer
- Android Phone with Android Joystick
- 2 Geared Drive Motors2 Wheels
- Swivel Caster
- HC-SR04 Ultrasonic Sensor
- Line Following sensor
- Infrared Collision avoidance
- 2 Opto-Interrupters Encoders
- 2 Encoder Disks
- L298 Dual H-Bridge Motor Controller
- Switch
- SG0 9G micro servo
- HC-05 Bluetooth module
- WS2812 LED
- Arduino Uno
- Arduino Breakout Shield\
- Batteries
-
Screwdrivers(flat and cross) of multiple sizes
Things to Make First
3D print and laser cut all pieces before you move past this point.
Drivetrain and Swivel Caster
Supplies:
- 4 10 m3 screws
- 4 25 m3 screws
- 8 nuts
- 2 Geared Motors
- 2 wheels
- 2 3D printed motor mounts
- 2 opto interrupters
- 2 encoder disks
Step:
- Solder two wires to each motor
- Cut and splice the opto interrupter wires as well as add heatshrink to the joint
- Attach the opto interrupter to the small holes in the motor mount
- Attach the motor mount to the holes on the side with no face opposing it
- It should be attached where the opto interrupter is close to the ground
- Attach the wheel to the other side of the motor
- Your completed structure should look like picture 2 above
- Repeat steps 2-6 for the other motor
- Attach both motor structures to the chassis with the remaking screws, nuts, and holes
- It should look like picture 3
- Attach the swivel caster to the other side of the bot to look like picture 4
Arduino Uno, Breakout Board, and Motor Controller
Supplies:
- Arduino Uno
- Breakout board
- Motor Controller
- 7 spacers
- 7 10 m3 screws
- 7 m3 nuts
Steps:
- Attach the Arduino Uno to the Chassis with 3 of each spacer, screw, and nut as such in picture 2
- Attach the breakout board to the Uno such it is aligned to the side without 2 ports sticking out(picture 3)
- Attach the Motor controller using the remaining 4 of each spacer, screw, and nut like in picture 4 above
Battery Mount and Switch
Supplies:
- Battery Mount
- Batteries
- Switch
- 2 10 m3 screws
- 2 m3 nuts
Steps:
- Mount the battery mount(picture 1)
- Push in switch(picture 2)
- Don't put batteries in until ready to turn the bot on
Ultrasonic, Servo, IR Sensors, Line Following Sensors, and Holder
Supplies:
- Ultrasonic Sensor
- Ultrasonic Sensor Mount
- Servo
- Collision Avoidance sensors
- Line Following sensors
- 3D printed plate - Holder
- 4 spacers
- 6 long spacers
- 4 m1.6 screws
- 4 m1.6 nuts
- 2 20 m3 screws
- 2 20 m3 nuts
- 2 42 m3 screws
Steps:
- Place the two collision avoidance sensors atop the holder, aligning the holes. Put a spacer between the holder and collision avoidance sensor. (picture 3)
- Attach this to the front of the bot(picture 4)
- Attach the Ultrasonic mount to the horn of the servo(picture 5)
- Then attach the servo to the holder using the rectangular hole and hole to the side to lock in place. To make it fit, put the wire side through the hole first.(picture 6)
- Attach the horn to the servo(picture 7)
- Put the Ultrasonic sensor in the mount(picture 8)
- Put the two 42 in. screws through the holes(picture 9)
- Split the remaining spacers equally with 3 long and 1 regular spacer and attach them to the screws(picture 10)
- Attach the Line Following sensors the the nuts(picture 11)
Bluetooth Module, Voltage Divider, and LED
Supplies:
- HC-06 bluetooth module
- Bluetooth mount
- voltage divider
- LED
- LED mount
- 1 spacer
- 4 10 m3 screws
- 4 m3 nuts
Steps:
- Attach the Bluetooth mount(picture 2)
- Attach voltage divider using 1 screw, nut, and spacer(picture 3)
- Solder wires to the Power, GND, and Din
- Put LED into mount where the wires stick out the side without a wall
- Attach the LED mount with the LED inside(picture 5)(if you have trouble, just unscrew the motor mount)
- Put the Bluetooth module into mount(picture 6)
Wiring
Follow the Wiring Diagram above. The signal pin on the breakout board is accompanied by a power and ground pin. Use them for the power and ground of the same piece.
Note: you can use the analog pins as digital. It will continue to count D14, D15, and so on.
Driving Code
The code attached will allow you to drive using the joystick on android joystick.
Note: you can use the analog pins as digital. It will continue to count D14, D15, and so on.
Downloads
Roomba Code
The code attached will allow you to avoid obstacles using the Ultrasonic sensor.
Note: you can use the analog pins as digital. It will continue to count D14, D15, and so on.