Changes

Jump to: navigation, search

LED

1,006 bytes added, 19:56, 7 November 2015
Created page for LEDs in general, started work on guide for PCA9685
Page about everything that is LED

== Controlling LEDs with RPi ==
=== PCA9685 I2C board ===
[https://learn.adafruit.com/adafruit-16-channel-servo-driver-with-raspberry-pi/overview Board and guide]

'''Steps to get it to work'''
# Connect VCC to Pi's 3.3v, GND to Ground
# Connect the SCL to pin 05 (GPIO3) SDA to pin 03 (GPIO2)
# sudo apt-get install python-smbus i2c-tools
# Add the following two lines to <code>/etc/modules/</code> with something like sudo nano:<br> <code>i2c-dev</code><br> <code>i2c-bcm2708</code>
# Add the following lines to <code>/boot/config.txt</code> and reboot: ([https://www.raspberrypi.org/forums/viewtopic.php?p=675385#p675385 see this for older Pi's])<br><code>device_tree=bcm2708-rpi-b-plus.dtb</code><br><code>device_tree_param=i2c1=on</code><br><code>device_tree_param=spi=on<br></code>
# Run <code>sudo i2cdetect -y 1</code> and you should see something like this:<br>[[File:Raspberry-I2C-test.png]]<br>If everything was setup correctly, you now should be ready to go
#
462
edits