I started with hooking up the PCA9685 board to my Pi 4B and then installing the Adafruit PCA9685 library.
I followed this guide Control Servos using 16 Channel Servo Driver And Raspberry Pi except that I installed the latest adafruit library
I tried different examples I found but the servos don't move.
I get no errors but there's no movement.
When going through a loop
for i in range(180):
servo.angle = i
print(servo.angle)
it prints the angle from 0 to 180, but....no moving servos.
What could be wrong? It's the az-delivery PCA9685 board, could there be a problem with that..?
I'm using the AZDelivery SG90 Micro Servo Motor 9G
Also when I execute sudo i2cdetect -y 1
I get
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --
That's ok I guess.
Below are the images showing the connections.
Note: I’m using a 5V supply for the servo motors on the PCA9685 board.