Propeller Boat
![IMG_9583.jpeg](/proxy/?url=https://content.instructables.com/FK6/EF3E/LOQ3HJ8U/FK6EF3ELOQ3HJ8U.jpg&filename=IMG_9583.jpeg)
Our final CPX design is an operational propeller boat. A CPX is a micro controller that you can program to make a moving part which will be activated by a Servo Motor. The Servo Motor is a motor that can rotate or move parts with high precision and efficiency. Our final product has an attached 3D printed propeller that makes it functional in water. Our boat incorporates a cabin top, to hold our CPX and ensure it stays dry. Our final design features boat lights that illuminate from the cabin top and are accompanied by a boat horn. Our final product has been tested in water to ensure that it floats and keeps the wires and CPX dry.
Supplies
![Screenshot 2023-11-08 at 3.01.09 PM.png](/proxy/?url=https://content.instructables.com/FVD/6X3C/LOQ3HJBK/FVD6X3CLOQ3HJBK.png&filename=Screenshot 2023-11-08 at 3.01.09 PM.png)
![Screenshot 2023-11-08 at 3.02.05 PM.png](/proxy/?url=https://content.instructables.com/FYK/SR2H/LOQ3HJBQ/FYKSR2HLOQ3HJBQ.png&filename=Screenshot 2023-11-08 at 3.02.05 PM.png)
![Screenshot 2023-11-08 at 3.02.41 PM.png](/proxy/?url=https://content.instructables.com/FNS/3HGV/LOQ3HJBU/FNS3HGVLOQ3HJBU.png&filename=Screenshot 2023-11-08 at 3.02.41 PM.png)
![Screenshot 2023-11-08 at 3.08.59 PM.png](/proxy/?url=https://content.instructables.com/FR7/6QJ2/LOQ3HJCD/FR76QJ2LOQ3HJCD.png&filename=Screenshot 2023-11-08 at 3.08.59 PM.png)
![Screenshot 2023-11-13 at 2.20.23 PM.png](/proxy/?url=https://content.instructables.com/FJ6/4UMO/LOWX1AU5/FJ64UMOLOWX1AU5.png&filename=Screenshot 2023-11-13 at 2.20.23 PM.png)
![Screenshot 2023-11-13 at 2.21.20 PM.png](/proxy/?url=https://content.instructables.com/FPU/27JZ/LOWX1AWB/FPU27JZLOWX1AWB.png&filename=Screenshot 2023-11-13 at 2.21.20 PM.png)
![Screenshot 2023-11-16 at 11.33.08 AM.png](/proxy/?url=https://content.instructables.com/FX4/VY3A/LP17BLKZ/FX4VY3ALP17BLKZ.png&filename=Screenshot 2023-11-16 at 11.33.08 AM.png)
- Adafruit Circuit Playground Express Basekit
- Continuous Rotation Micro Servo
- Propeller Attachment
- 3D Printer
- Soldering iron and Solder
- Heat Shrink Tube and heat gun
- Hot Glue Gun
- Battery Pack
Downloading the 3D Design
![Screenshot 2023-12-04 at 1.24.20 PM.png](/proxy/?url=https://content.instructables.com/FPJ/RAOV/LPQX8K71/FPJRAOVLPQX8K71.png&filename=Screenshot 2023-12-04 at 1.24.20 PM.png)
![Screenshot 2023-12-04 at 1.25.39 PM.png](/proxy/?url=https://content.instructables.com/FNV/F5OD/LPQX8K7Q/FNVF5ODLPQX8K7Q.png&filename=Screenshot 2023-12-04 at 1.25.39 PM.png)
![Screenshot 2023-12-04 at 1.26.27 PM.png](/proxy/?url=https://content.instructables.com/FTW/TUPY/LPQX8K8O/FTWTUPYLPQX8K8O.png&filename=Screenshot 2023-12-04 at 1.26.27 PM.png)
Coding
![Screenshot 2023-12-04 at 12.46.54 PM.png](/proxy/?url=https://content.instructables.com/F4E/3TZQ/LPQX8JZU/F4E3TZQLPQX8JZU.png&filename=Screenshot 2023-12-04 at 12.46.54 PM.png)
- Follow these instructions to install CircuitPython onto your CPX: https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython
- Connect your CPX to your computer and save code.py onto it
- The provided code will:
- Run the servo if a light is detected
- Play a light pattern if sound is detected
- Stop if a shake is detected
from adafruit_circuitplayground import cp
import time
# Servo control setup
cp.servo1.set_pulse_width_range(min_pulse=500, max_pulse=2500)
# Constants for light and sound thresholds
LIGHT_THRESHOLD = 300 # Adjust this based on sensitivity
SOUND_THRESHOLD = 500 # Adjust this based on sensitivity
while True:
if cp.light > LIGHT_THRESHOLD:
cp.servo1.throttle = 1.0
elif cp.sound_level > SOUND_THRESHOLD:
cp.pixels.fill((255, 0, 0))
time.sleep(0.5)
cp.pixels.fill((0, 0, 0))
elif cp.shake(shake_threshold=20):
cp.servo1.throttle = 0.0
time.sleep(0.1)
Attaching & Connecting the Servo Motor
![Screenshot 2023-11-15 at 2.59.24 PM.png](/proxy/?url=https://content.instructables.com/FT3/XK5Y/LP03BORJ/FT3XK5YLP03BORJ.png&filename=Screenshot 2023-11-15 at 2.59.24 PM.png)
![Screenshot 2023-11-15 at 3.05.57 PM.png](/proxy/?url=https://content.instructables.com/FN1/3WSA/LP03BOS5/FN13WSALP03BOS5.png&filename=Screenshot 2023-11-15 at 3.05.57 PM.png)
![Screenshot 2023-11-15 at 3.07.07 PM.png](/proxy/?url=https://content.instructables.com/FQ8/NQBC/LP03BOSK/FQ8NQBCLP03BOSK.png&filename=Screenshot 2023-11-15 at 3.07.07 PM.png)
![IMG_2864.jpeg](/proxy/?url=https://content.instructables.com/F16/21SG/LP03BOT0/F1621SGLP03BOT0.jpg&filename=IMG_2864.jpeg)
![Screenshot 2023-11-17 at 8.55.40 AM.png](/proxy/?url=https://content.instructables.com/FU5/JZEV/LP2MRD1L/FU5JZEVLP2MRD1L.png&filename=Screenshot 2023-11-17 at 8.55.40 AM.png)
- Wiring
- Begin by Identifying the wires of the Servo Motor Wires; you'll find a green or black wire, which serves as the ground connection, a red wire for power, and a yellow wire that carries the signal.
- Connect the servo to the CPX:
- Connect the green or black ground wire to the ground pin on the CPX, labeled 'GND'.
- Attach the red power wire to the voltage output pin, denoted as 'VOUT'.
- Hook up the yellow signal wire to the analog input designated 'A1' on the CPX for signal control.
- Heat Shrink
- Select an appropriate size of heat shrink tubing that fits over the electrical connectors.
- Slide the heat shrink over the exposed areas of the wiring where the servo connects to the CPX.
- Use a heat gun or a lighter to carefully shrink the tube around the connectors
- Connect the battery to the servo motor
- Using the appropriate connector plug attach the battery pack
- Then attach the battery to the inside of the Boat using a hot glue gun
Final Assembly of the Boat
![Screenshot 2023-12-04 at 1.04.36 PM.png](/proxy/?url=https://content.instructables.com/F85/FV8O/LPQX8K2Q/F85FV8OLPQX8K2Q.png&filename=Screenshot 2023-12-04 at 1.04.36 PM.png)
![Screenshot 2023-12-04 at 1.16.10 PM.png](/proxy/?url=https://content.instructables.com/FRI/WNT0/LPQX8K4M/FRIWNT0LPQX8K4M.png&filename=Screenshot 2023-12-04 at 1.16.10 PM.png)
![Screenshot 2023-12-04 at 1.17.09 PM.png](/proxy/?url=https://content.instructables.com/F09/5CUJ/LPQX8K56/F095CUJLPQX8K56.png&filename=Screenshot 2023-12-04 at 1.17.09 PM.png)
![Screenshot 2023-12-04 at 1.17.29 PM.png](/proxy/?url=https://content.instructables.com/FRJ/9URT/LPQX8K5R/FRJ9URTLPQX8K5R.png&filename=Screenshot 2023-12-04 at 1.17.29 PM.png)
- Make sure all parts are printed and ready for assembly
- Grab servo motor and glue to the rear hole in the back from the inside of the boat so the axel is sticking out of the boat
- For a tighter fit, put hot glue on the edges of the opening before inserting servo motor
- Grab a hot glue gun and glue the bottom of the cabin to backside of the boat above the servo motor
- Glue the back of the propeller to the axle of the servo motor
- Take CPX and insert it into the cabin
- Make sure all wires are tightly tucked through the hole in through the front of the cabin
- Hot glue the cover for the boat so that it covers the frontside of the design
- Put battery/wires through the hole in the cover into the boat