Skip to content

LED Wiring

Maschine2501 edited this page Sep 19, 2020 · 2 revisions

You have 3 Option for LED-Usage:


  • 1st: No LED
  • 2nd: LED directly connected to GPIO's of the Raspberry
  • 3rd: LED directly connected to a PCF8574

The functions of the LED's:

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

1st: No LED

Nothing to explain, I guess? You don't want any LED's at all...

2nd: LED directly connected to the GPIO's:

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.

3rd: LED connected to PCF8574:

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.

Wiring

I recommend using the PCF8574!

If you need assistance/help, please use e-mail or discord-chanel (can be found on the landing page of my NR1-UI Github.