Sunny Sailboat

by ifiore in Circuits > Gadgets

156 Views, 0 Favorites, 0 Comments

Sunny Sailboat

unnamed.jpeg
unnamed.jpeg

For Project 2 our CPX device is coded to:

  • Cause the servo Motor to rotate 90 degrees when button A is pressed
  • This will then cause it to light up green
  • The motor will rotate 180 degrees when button B is pressed
  • Causing it to turn red
  • When both buttons are pressed a bicycle sound will play

Supplies

Download 3D Design


  1. Export design from Tinker cad to Maker bot cloud print
  2. To do so go to maker bot, choose print preparation
  3. Download files to maker bot and switch printer to Sketch printer
  4. Decide if it needs to be printed with or without supports
  5. Press print preview and export to USB

Printing

Image 4-6-23 at 9.29 PM.jpeg
unnamed.jpeg

Assembly

unnamed.jpeg
  • Using the three given wires, attach one wire to A1, one to VOUT, and one to GND  
  • Bend each end of the wire to secure the wire in the assigned hole
  • Connect the A1 wire to the orange wire on the servo motor
  • Connect the VOUT wire to the red wire on the servo motor
  • Connect the GND wire to the brown wire on the servo motor 
  • Place the given batteries into the battery pack
  • Connect the battery pack to the CPX 

Constructing the Flag

unnamed.jpeg
unnamed.jpeg
unnamed.jpeg
unnamed.jpeg


  1. Gather materials needed for the boat (construction paper, plastic straw, scissors)
  2. Cut paper into desired sail shape (triangle)
  3. Cut a slit in straw from the top about halfway down
  4. Cut a slit in the edge of the paper triangle as well
  5. Put flag together

Coding

Image 4-6-23 at 9.22 PM.jpeg


  • Used circuit python to code what-is-circuitpython.
  • Causing the motor to rotate 90 degrees when button A is pressed, then light up red
  • Servo will then rotate 180 degrees when button B is pressed, then light up green
  • When buttons are pressed a bicycle sound will play