Sunny Sailboat


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
- Adafruit Circuit Playground Express Basekit
- Continuous Rotation Micro Servo
- 3D printer
- Plastic Straw (for flag)
- Construction paper
- Hot Glue gun
- Scissors
- Paint
- Paintbrush
- Sandpaper
Download 3D Design
- Export design from Tinker cad to Maker bot cloud print
- To do so go to maker bot, choose print preparation
- Download files to maker bot and switch printer to Sketch printer
- Decide if it needs to be printed with or without supports
- Press print preview and export to USB
Printing


- These files were design using TinkerCAD
- Mount remixed from Adafruit’s Snap-fit Mount
- Project 2 (3).stl
Assembly

- 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




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

- 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