Raspberry Pi - Robot Arm
1. Robot Configuration
-
1 * Raspberry Pi processor.
-
4 * SG90 servos.

-
1 * PCA9685.

-
1 * 5V(2A/4A) adaptor.
-
3D printed arm model EEZYbotARM.

1.1 Configure PCA9685
I have followed this post
- Install I2C tools
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
sudo i2cdetect -y 0
- Connect pins

- Install python PCA9685 library
sudo pip3 install adafruit-circuitpython-servokit
1.2 servokit lib
This library offers simple usage of servos.
- Initialize the system (PCA9685 is a 16 channels system):
from adafruit_servokit import ServoKit
kit = ServoKit(channels=16)
- Standard servos, control the desire angle.
kit.servo[servo_id].angle = 180
kit.servo[servo_id].angle = 0
kit.servo[servo_id].set_pulse_width_range(1000, 2000)
- Continuous servo (which is our case with S

最低0.47元/天 解锁文章
1046

被折叠的 条评论
为什么被折叠?



