Propeller Boat

by parisabates1 in Circuits > Microcontrollers

126 Views, 1 Favorites, 0 Comments

Propeller Boat

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
Screenshot 2023-11-08 at 3.02.05 PM.png
Screenshot 2023-11-08 at 3.02.41 PM.png
Screenshot 2023-11-08 at 3.08.59 PM.png
Screenshot 2023-11-13 at 2.20.23 PM.png
Screenshot 2023-11-13 at 2.21.20 PM.png
Screenshot 2023-11-16 at 11.33.08 AM.png


Downloading the 3D Design

Screenshot 2023-12-04 at 1.24.20 PM.png
Screenshot 2023-12-04 at 1.25.39 PM.png
Screenshot 2023-12-04 at 1.26.27 PM.png
  • Download the STL file to your computer  
  • Make sure to use breakaway supports for this print
  • Now You are ready to print!
  • These Designs were made using TinkerCAD and Onshape 
  • And printed using MakerBot

Coding

Screenshot 2023-12-04 at 12.46.54 PM.png


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
Screenshot 2023-11-15 at 3.05.57 PM.png
Screenshot 2023-11-15 at 3.07.07 PM.png
IMG_2864.jpeg
Screenshot 2023-11-17 at 8.55.40 AM.png
  1. Wiring 
  2. 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. 
  3. Connect the servo to the CPX: 
  4. Connect the green or black ground wire to the ground pin on the CPX, labeled 'GND'.
  5. Attach the red power wire to the voltage output pin, denoted as 'VOUT'.
  6. Hook up the yellow signal wire to the analog input designated 'A1' on the CPX for signal control.


  1. Heat Shrink 
  2.  Select an appropriate size of heat shrink tubing that  fits over the electrical connectors.
  3. Slide the heat shrink over the exposed areas of the wiring where the servo connects to the CPX.
  4. Use a heat gun or a lighter to carefully shrink the tube around the connectors


  1. Connect the battery to the servo motor 
  2. Using the appropriate connector plug attach the battery pack
  3. 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
Screenshot 2023-12-04 at 1.16.10 PM.png
Screenshot 2023-12-04 at 1.17.09 PM.png
Screenshot 2023-12-04 at 1.17.29 PM.png
  1. Make sure all parts are printed and ready for assembly
  2. 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
  3. For a tighter fit, put hot glue on the edges of the opening before inserting servo motor
  4. Grab a hot glue gun and glue the bottom of the cabin to backside of the boat above the servo motor
  5. Glue the back of the propeller to the axle of the servo motor
  6. Take CPX and insert it into the cabin
  7. Make sure all wires are tightly tucked through the hole in through the front of the cabin
  8. Hot glue the cover for the boat so that it covers the frontside of the design 
  9. Put battery/wires through the hole in the cover into the boat