APISQUEEN U2 MINI 1.3Kg Underwaterthruster Thruster 16V 130W
Model: U2 mini
Voltage: 12-16V (3-4S LiPo)
Max. current: 8A
Maximum power: 130W
Size: 95.8*77mm
Cable length: >900mm
Weight: 210g
Wire diameter: 7mm
PWM:1-2ms,50HZ
APISQUEEN U2 mini Underwater Propulsion 3 D Drawing Download
Features:
1: U2 mini brushless underwater thruster one piece open mold, using composite materials, anti-corrosion and anti-oxidation, can be used in seawater environment.
2: U2 mini low power consumption, high efficiency.
3: U2 mini front and rear protective ribs, which can effectively block the entry of foreign objects.
4: the use of motor 500KV, high speed.
5: support up to 16V (4S LiPo).
How can I use a Raspberry Pi 4B to send a PWM signal to an ESC to control an underwater thruster?
Example code:
import pigpio
import time
pi = pigpio.pi() #create pigpio object
LED_PIN = 18 # Define the GPIO port to which the LED is connected.
PWM_FREQUENCY = 50 #define the PWM frequency in Hz
PWM_range = 1000
PWM_DUTYCYCLE = 0 # Define PWM duty cycle, value range 0 (2) 55,
pi.set_mode(LED_PIN, pigpio.OUTPUT) #Set the GPIO port to output mode
pi.set_PWM_frequency(LED_PIN, PWM_FREQUENCY) #set PWM frequency
pi.set_PWM_range(LED_PIN, PWM_range) # set range 1000
pi.set_PWM_dutycycle(LED_PIN, 75) # set PWM duty cycle 75/1000=7.5 per cent
time.sleep(3) # delay 3s unlock successful
pi.set_PWM_dutycycle(LED_PIN, 100)
# Positive rotation 7.5%-10% duty cycle, the larger the duty cycle, the faster the positive rotation speed
time.sleep(15)
pi.set_PWM_dutycycle(LED_PIN, 60)
# Reverse The closer the duty cycle is to 5%, the faster the reversal speed is
time.sleep(5)
pi.set_PWM_dutycycle(LED_PIN, 75)
# Duty cycle
time.sleep(5)