I am using all the same components and the exact same wiring. However when I run my code, the balloon is not inflating. I can hear the pump vibrating and I can feel it sucking in air from one opening so I know that is working correctly.
I am using a crickit with an feather m4 express.
This is my code:
Code: Select all
import time
from adafruit_crickit import crickit
# make two variables for the motors to make code shorter to type
motor = crickit.dc_motor_1
valve = crickit.feather_drive_1
valve.frequency = 1000
while True:
valve.fraction = 1.0
motor.throttle = 1
#inflate
time.sleep(10)
#turn off pump
motor.throttle = 0
#wait to show balloon inflated
time.sleep(5)
#open valve to deflate
valve.fraction = 0
time.sleep(10)