-
Notifications
You must be signed in to change notification settings - Fork 12
LED Wiring
Maschine2501 edited this page Sep 19, 2020
·
2 revisions
- 1st: No LED
- 2nd: LED directly connected to GPIO's of the Raspberry
- 3rd: LED directly connected to a PCF8574
Usage of The LEDs:
- led7 = more than 02% CPU load
- led6 = more than 10% CPU load
- led5 = more than 25% CPU load
- led4 = more than 50% CPU load
- led3 = more than 75% CPU load
- led2 = Power LED
- led1 = Play LED
- led0 = Stereo LED
Nothing to explain, I guess? You don't want any LED's at all...
Please refer to the Wiring Diagram to see which GPIO's are free. Then refer to the StatusLEDgpio.py. The file is prepared for you. You simply have to replace the "xx" in the beginning with your used GPIO-BCM Numbers.
led1 = LED(xx)
led2 = LED(xx)
...
to:
led1 = LED(18)
led2 = LED(23)
...
Here you can find the BCM numbers of the GPIO's.
The PCF8574 is a cheap GPIO-Extender connected to the I2C-Port. Reason to use it? -> Instead of blocking 8 GPIO's for the LED's, you only use 2 (BCM2 and BCM3) How to connect: Connect SDA and SDL (plus 5v and GND) of the PCF8574 to the SDA (BCM2) and SDL (BCM3) of your Raspberry. After that connect the LED's to Port 0-7 of the PCF8574.