I'm trying to do some basic functions with the servo motor:
https://www.adafruit.com/product/1404 and the board "Adafruit QT Py ESP32-S2"
I have only connected the red (power), brown (gnd) and orange (signal) cables and execute the following code:
Code: Select all
import time
import board
import pwmio
from adafruit_motor import servo
# create a PWMOut object on Pin A2.
pwm = pwmio.PWMOut(board.A2, duty_cycle=2 ** 15, frequency=50)
# Create a servo object, my_servo.
my_servo = servo.Servo(pwm)
while True:
for angle in range(0, 180, 5): # 0 - 180 degrees, 5 degrees at a time.
my_servo.angle = angle
time.sleep(0.05)
for angle in range(180, 0, -5): # 180 - 0 degrees, 5 degrees at a time.
my_servo.angle = angle
time.sleep(0.05)
break
my_servo.angle = None
time.sleep(0.05)
print("stop")
The problem now is that I cannot get the servo to assume a “release” status in any setting. This means that I can then move it again by hand. The reason for this is this project (https://learn.adafruit.com/two-way-disp ... ck-servos#), which I would like to implement.
I have already rebuilt the bootloader and tried versions
- adafruit-circuitpython-adafruit_qtpy_esp32s2-de_DE-8.2.10.uf2
- adafruit-circuitpython-adafruit_qtpy_esp32s2-en_US-9.2.3.uf2
- adafruit-circuitpython-adafruit_qtpy_esp32s2-de_DE-9.2.3.uf
What am I missing?