Custom Remote Control Car

by Bkt2401 in Circuits > Robots

155 Views, 0 Favorites, 0 Comments

Custom Remote Control Car

05914227-F689-413B-9269-2F7588F145BE.jpeg
E66CD6C5-B5F4-4D7F-B778-DD1625358A06.jpeg
Second page.PNG
Third page.PNG
P1 Chassis Drawing 1 4-page-001.jpg
First page.PNG

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

AC4139DC-6CB8-43D5-8478-C574C6AC7EF5.jpeg
96283331-A0C1-4DD9-AA1B-13BD7F72D08F.jpeg
53EBEE16-60F3-41C1-88DA-F7F8B559FFE8.jpeg
4A8756CA-FE39-422B-AD7B-FDECEE0969C1.jpeg

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:

  1. Solder two wires to each motor
  2. Cut and splice the opto interrupter wires as well as add heatshrink to the joint
  3. Attach the opto interrupter to the small holes in the motor mount
  4. Attach the motor mount to the holes on the side with no face opposing it
  5. It should be attached where the opto interrupter is close to the ground
  6. Attach the wheel to the other side of the motor
  7. Your completed structure should look like picture 2 above
  8. Repeat steps 2-6 for the other motor
  9. Attach both motor structures to the chassis with the remaking screws, nuts, and holes
  10. It should look like picture 3
  11. Attach the swivel caster to the other side of the bot to look like picture 4

Arduino Uno, Breakout Board, and Motor Controller

8263B979-8AD2-43AD-83F1-C4CEF1DF9873.jpeg
5ACAEE90-3282-48B3-A391-7524C09F1578.jpeg
E4738980-B1AB-4FB0-8195-F77F7B19046E.jpeg
45001FCD-5A9F-4DBC-9ED9-48B364C77208.jpeg

Supplies:

  • Arduino Uno
  • Breakout board
  • Motor Controller
  • 7 spacers
  • 7 10 m3 screws
  • 7 m3 nuts

Steps:

  1. Attach the Arduino Uno to the Chassis with 3 of each spacer, screw, and nut as such in picture 2
  2. Attach the breakout board to the Uno such it is aligned to the side without 2 ports sticking out(picture 3)
  3. Attach the Motor controller using the remaining 4 of each spacer, screw, and nut like in picture 4 above

Battery Mount and Switch

ED851727-1CDE-4A56-A42C-E8347F4C955F.jpeg
A2F5C70C-2ED3-4E52-8A97-EA443B405123.jpeg
40D141C1-A103-4080-91F2-519C641DEF89.jpeg

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

F9676BED-5270-4FB7-AE16-F8831D889F15.jpeg
F73AE7C0-3E86-4FDD-A916-F87EB181EDFE.jpeg
0E78AFD3-7D62-4FD3-BBCE-31038B1A8265.jpeg
073CE201-0263-4073-82A9-0DEFAB391CE3.jpeg
54A651E4-6BBD-4D0C-911F-0E47391BA435.jpeg
F1049491-424C-498D-BA79-F21F096AAD44.jpeg
4B33612F-009C-4245-BB39-9724F53C4F54.jpeg
91049881-43C2-41F8-9407-840A36EB3939.jpeg
5CDCB8CE-395E-434D-96C6-C5DD0280EFD4.jpeg
804B9178-F356-4D0D-84FB-CE8807E1E470.jpeg
E0CB5CF2-B1FD-44D8-AA08-942DB982C7AF.jpeg
495F4797-F2AA-43C5-B446-0EFCF1510FA1.jpeg

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

A97CC46D-3406-49E5-91EC-1651EBB342B2.jpeg
712017F4-19E2-4875-A111-7A3C3111C3D2.jpeg
6BFACBEA-B3C4-42B6-9D89-77F72439235B.jpeg
48D3D1FF-B293-464C-B016-A174E1565314.jpeg
B42F6051-9898-4501-BC93-0858E275C72F.jpeg

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

84181205-3439-4AE5-9F03-C48B10AC62F7.jpeg

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.

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.