PCA9685: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
= Try It =
= Try It =
<pre>
Color  PCA9685 Raspberry Pi
yellow SCL    GPIO 3 / SCL (Pin 5)
orange SDA GPIO 2 / SDA (Pin 3)
Red    VCC / V 3,3V (pin 1)
Black  GND    GND (Pin 6)
</pre>
<source lang='bash'>
<source lang='bash'>
sudo raspi-config
sudo raspi-config
Line 23: Line 30:
* https://tutorials-raspberrypi.de/mehrere-servo-motoren-steuern-raspberry-pi-pca9685/
* https://tutorials-raspberrypi.de/mehrere-servo-motoren-steuern-raspberry-pi-pca9685/
* https://cdn-learn.adafruit.com/downloads/pdf/adafruit-16-channel-servo-driver-with-raspberry-pi.pdf
* https://cdn-learn.adafruit.com/downloads/pdf/adafruit-16-channel-servo-driver-with-raspberry-pi.pdf
<pre>
 
Color  PCA9685 Raspberry Pi
yellow SCL    GPIO 3 / SCL (Pin 5)
orange SDA GPIO 2 / SDA (Pin 3)
Red    VCC / V 3,3V (pin 1)
Black  GND    GND (Pin 6)
</pre>


= Datasheet =
= Datasheet =

Revision as of 18:19, 3 February 2020

[edit]
Color  PCA9685 	Raspberry Pi
yellow SCL     	GPIO 3 / SCL (Pin 5)
orange SDA 	GPIO 2 / SDA (Pin 3)
Red    VCC / V 	3,3V (pin 1)
Black  GND     	GND (Pin 6)
sudo raspi-config
# activate Interfacing Options P5 / I2C
wf@picar:~/source/python/pi $ sudo i2cdetect -y 1
     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 -- -- -- -- -- -- --   
sudo pip install Adafruit-PCA9685 
sudo pip3 install adafruit-circuitpython-servokit
[edit]