Self-Drawing Car

by pablodavalos05 in Circuits > Arduino

16 Views, 0 Favorites, 0 Comments

Self-Drawing Car

image-20250421-010431-8a919991.jpeg

Video URL: https://www.capcut.com/editor/41135230-2208-49DD-8C6A-0F727CA544C1?workspaceId=7498797057852014653&spaceId=7498789146119521333&utm_medium=Product&utm_source=draftshare&utm_campaign=link

For our groups project we decided to challenge ourselves by building a self-driving car that is able to draw simple elementary shapes by driving across a flat surface.

Supplies

case_2.jpg
2976514390121.jpeg
714ieWrwbPL.jpg
OIP.jpg
91HkLcgGvpL._AC_SL1500_.jpg
blg-cardboard_reuse.jpg
R.jpg
lego-black-wheel-18x12-with-black-tyre-low-profile-24x12-18976-18977-28.jpg
  1. 1: SparkFun Inventors Kit
  2. 1 Gear Motor
  3. Purpose: This Motor will be the power of the vehicle turning the back wheels and moving the contraption.
  4. 2 Servo Motors
  5. Purpose:
  6. Servo 1: The first servo will be located at the front of the vehicle and turn the wheel to the decided angle.
  7. Servo 2: The second servo will be located at the back and be attached with a sharpie to decide when to draw.
  8. 2 pushbuttons
  9. Purpose: Both buttons will run different codes that when pressed draws different drawings.
  10. 3 Rubber wheels
  11. Purpose: These wheels will move the sharpie giving the desired drawing.
  12. Jumper Wires
  13. Purpose: Connects all the components without soldering
  14. SparkFun Motor Driver
  15. Purpose: Can control two motors independently and Supports Pulse Width Modulation to vary motor speed.
  16. 1 Arduino Uno
  17. Purpose: It is a microcontroller that runs the logic for the device, inputs, and control outputs.
  18. 1 Bread board
  19. Purpose: A breadboard is a reusable platform for quickly building and testing electronic circuits without soldering by allowing components and wires to be easily plugged into a grid of interconnected holes.



  1. 2: 0.5 (Check Measurements) Diameter dowels
  2. Purpose: Connect the gear motor to each wheel widening the vehicle so that the wheel does interfere with the carboard.


  1. All the STL Files 3D printed underneath
  2. https://limewire.com/d/5aC34#mj9PI7Paor
  3. Purpose: Adds major components to the board that connects critical points to each other.
  4. 1 4 double A batteries
  5. Purpose: Power the Arduino Uno and components when not connected to USB
  6. Sharpie
  7. Purpose: Draws the drawing below the vehicle.
  8. Hot Glue/ Tape
  9. Purpose: Holds pieces together
  10. Carboard
  11. Purpose: Is the holder for the sharpie
  12. Sharpie
  13. Purpose: Draws the shapes
  14. Weights
  15. Purpose: weights down the tail to ensure the sharpie is connected to the ground at all times.
  16. Legos
  17. Used for making the front wheel of the vehicle

Gather Supplies

Gather all listed supplies.

Power Connection

image-20250411-000507-b96b71ac.jpeg
image-20250420-234418-933abd14.jpeg

Materials Needed:

  1. 4 Wires
  2. Battery connector
  3. 9-Volt Battery
  4. Audino Uno
  5. Breadboard

Assembly of Audino:

  1. Connect the 5V pin on the Arduino to the positive rail (5V) on the breadboard with a wire. The positive or 5V rail of the breadboard is represented by the red plus (+) sign.
  2. Connect the GND pin on the Arduino to the ground rail (GND) of the breadboard with a wire. The ground rail on the breadboard is represented by a black minus (-) sign.
  3. On the opposite side of the bread board using 2 wires connect the positive rail to the other positive rail and the negative rail to the other negative rail.
  4. We suggest color coding the power and ground wire be red and black respectively. There will be many wires used and making sure you don't mix them up will help the project go by faster.
  5. Ensure the 9-volt battery holder is connected to the Arduino’s battery input and test if the Arduino uno is receiving power (If the board starts lighting up).
  6. Next, you'll want to gather the necessary parts listed below:
  7. 1 x Hobby Gearmotor
  8. 1 x Servo Motor
  9. 1 x Motor Driver
  10. 2 x Push Buttons (we suggest they be different colors)
  11. 17 x Jumper Wires (Including the already attached power and ground cables)
  12. 1 x Breadboard
  13. 1 x Arduino Uno or breadboard
  14. 2 x Large Wheels
  15. 1 x Homemade Axle/Small Wheel
  16. 1 x Battery holder (9v or 1.5v)
  17. 1 x 9v Battery or 4 x 1.5v Battery
  18. 1 x 3D printed base (or carboard)
  19. After gathering the needed parts and connecting the power and ground wire, it is now time to begin assembling the cart.
  20. Starting with the buttons we suggest putting them side by side. The bottom right pin of a button should be located in the D 30 spot. The bottom pin refers to the pins that are closest to the Arduino board.
  21. The next button should have the bottom right pin in the D25 spot.
  22. Next you will connect the Motor Driver. The “a01” should be in the C13 spot.
  23. Now comes the wiring.
  24. Starting with the button wires you will put one wire in the C30 spot which will then connect to the ~6 spot on your Arduino Board.
  25. Next you’ll connect another wire into the C25 with the other end being in the 7 spot on the Arduino board.
  26. The two wires will be connect to the ground rail on your Breadboard to C26 and C23 spots.
  27. Next the Servo Motor will be attached. A wire will connect from the ground (black) plug in the Servo connector to the ground rail on the Arduino board and the same will happen with a power (red) wire.
  28. A final wire will be connected from the control (white) plug in to the ~10 spot on your Arduino board.
  29. For the Motor Driver connect all the GND plug ins to the Ground rails on the Breadboard.
  30. Attach a cable from the VM, STBY, and VCC spots to the power rail on the Breadboard.
  31. Plug the Power (Red) wire from the motor to the A01 spot.
  32. Plug the Ground (Black) wire from the motor to the A02 spot.
  33. Plug in a wire from the PWMA spot into the ~11 spot on the Arduino board.
  34. Plug in two wires from the AIN1 and AIN2 spots into the 12 and 13 respective spots on your Arduino Board.


Assembly of the Vehicle

image-20250420-232601-5a29d3cd.jpeg
image-20250412-010927-7e94d426.jpeg
image-20250420-232611-18c4fc2f.jpeg
  1. Next, you'll want to gather the necessary parts listed below:
  2. 2 x Large Wheels
  3. 1 x Homemade Axle/Small Wheel (We suggest Legos)
  4. 1 x 3D printed base (or carboard)
  5. Carboard
  6. Ducktape
  7. Hot glue
  8. Sharpie
  9. Weights
  10. Scissors
  11. Decorations (optional)
  12. Once all the wires are connected use your 3D printed base and slide in the gear motor to the back of the board and the servo motor to the front. For security tape or glue can be used.
  13. Once motors are secured, we recommend tying the middle wires with your choice to ensure that it doesn’t interfere with the rest of the construction
  14. Next use you assemble Front Axle/Small Wheel and hot glue it to the servo motor making sure the sides are Parallele with where the axel is pointing.
  15. Once that is completed, cut out a rectangle 6x2 from carboard and hot glue it to the gear motor making sure that it can barely touch the ground.
  16. After hot glue the sharpie ensuring that the tip of it can touch the ground
  17. Next hot glue the weights to the side of the sharpie to help give it some force when writing the shapes.
  18. Lastly connect the battery back into the Arduino Uno board to supply power.



Downloading the Code

  1. Click the Audino coded presented below and open the Audino Uno.
  2. Once open clicked select a board and click Arduino Uno and the USB port that is being used
  3. Plug your Arduino USB connector to the desktop USB and to the Arduino Uno plug in. It should look cubic.
  4. Once connected to both Arduino Uno and USB click the arrow to download the code.
  5. After this step everything has been completed to use your drawing robot, Have fun. Past this step is optional.


Customization of the Vehicle

image-20250421-010431-8a919991.jpeg
image-20250421-010427-f7b6f69b.jpeg
  1. Using carboard create a rectangle that fits over the board and wires.
  2. Using whatever means draw/tape/print customization on the rectangle making your drawing bot your own
  3. Next cut a hole to press the buttons to start the code
  4. Place the rectangular piece over the board, wires, battery supply
  5. Now if you have any hood ordainments glue it to the front of the vehicle
  6. You are now done Customizing, Enjoy the drawing vehicle.