I’m having problems with coral board edge tpu interacting with a servo micro SG90. I don’t think that the problem is in the code because I tried it on the reaspberry pi and it worked, maybe the problem is the power voltage of the coral dev board. Should I buy a separate battery pack to power the servo or is there another way?
and this is the code:
import time
import board
import pulseio
from adafruit_motor import servo
pwm = pulseio.PWMOut(board.PWM3, duty_cycle=2 ** 15, frequency=50)
my_servo = servo.Servo(pwm)
while True:
for angle in range(0, 180, 5):
my_servo.angle = angle
time.sleep(0.05)
for angle in range(180, 0, -5):
my_servo.angle = angle
time.sleep(0.05)