3D Printed Toy Car

by kzercie in Workshop > 3D Printing

76 Views, 0 Favorites, 0 Comments

3D Printed Toy Car

IMG_5153.jpg

We made a 3D printed toy car as an assignment for our Intro to Engineering class. We were given outlines of the project by another group and assigned to make it better by using what we learned in our class over the semester. Using the previous groups design and coding, we had a good head start and idea of what to do and modified it.

Supplies

Download Your 3D Print

Screenshot 2024-12-17 at 8.11.51 PM.png
Screenshot 2024-12-17 at 8.18.35 PM.png
  1. Choose a file from Thingiverse and download it to your computer as an stl file
  2. We 3D printed the shell of the car, the CPX holder, and the axles

Slice + Save Your Model

  1. Use Makerbot Cloud Print to see your print layer by layer
  2. Import the stl file and position it how you want
  3. The shell, and holder don't need supports, the axels need a raft
  4. Export your file so it is saved on your computer

Using MakeCode

Screenshot 2024-12-17 at 8.25.47 PM.png
  1. The provided code blocks will have three inputs:
  2. The 'forever' code will have the lights of the car be black until the light level is less than 5, then they will be white
  3. When button A is clicked, the servo will run forwards and the lights will be white
  4. When button B is clicked, the servo will run backwards and the lights will be red
  5. When both buttons A and B are clicked, the CPX will play a siren sound and all the lights will be red
  6. Download this and drag it from your downloads into the CPX so it runs the code

Using Circuit Python Code

Screenshot 2024-12-18 at 10.39.37 AM.png
  1. Follow these instructions to install CircuitPython onto your CPX: https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython
  2. Connect your CPX to your computer and save code.py onto it
  3. The provided code will:
  4. Cause the servo to run clockwise when button A is pressed and have white lights
  5. Cause the servo to run counterclockwise when button B is pressed and have red lights
  6. When both buttons are pressed, the servo stops, a siren is heard, and the lights turn red

Servo + CPX Assembly

servo connection.jpg
  1. From: https://learn.adafruit.com/circuitpython-essentials/circuitpython-servo
  2. use jumper wire alligator clips to connect the ground wire to GND, the power wire to VOUT, and the signal wire to A2

Final Assembly

IMG_5153.jpg
IMG_5152.jpg
IMG_5151.jpg
  1. First, use hot glue on all of the wheels so they have more traction
  2. Glue the servo motor to the side of the inside of the car shell and attach a wheel using hot glue
  3. Attach the axles to the inside of the car shell using hot glue
  4. Attach the wheels to the axles so they are still able to spin
  5. Attach the CPX holder to the roof of the car
  6. Thread the wires through the back window of the car so they reach the CPX