-
Notifications
You must be signed in to change notification settings - Fork 402
Using GPIO hardware status led
IMPORTANT NOTE: This section needs rework. Documentation is inconsistent with gpio_control.
Note Before we start: Let's remember a Phoniebox rule: Just plug and play using USB, no soldering iron needed. One might take soldering or GPIO work into account to have the power status of the Phoniebox shown by an led.
The status LED is supported out of the box, but it has to be configured and connected to the Raspberry Pi in order to work. The configuration and connection is explained below. Before starting, please read the functionality that this LED will provide:
- Lighting up when the Phoniebox is fully bootet and ready to respond to card requests
- LED switches off after complete shutdown when the shutdown is initiated by GPIO shutdown. The Phoniebox is then ready to be switched off by the main switch or can be disconnected from power supply which turns it off more gracefully.
Follow the gpio control configuration and add the [StatusLED]
section of the sample LED configuration to your GPIO configuration file.
Change the GPIO number if needed.
As mentioned in the flexible hardware layout the status LED has to be connected to GPIO 12 (which is pin 32). Pin numbering and positions on the Raspberry Pi can be found in the description of the GPIO hardware buttons.
This pin is already configured as output by the configuration of the status LED. As documented at the Raspberry Pi GPIO documentation this pin outputs 3.3 Volt. So you should pick an led based on that together with a matching resistor and cables.
If you don't know how to chose this hardware below is a working combination listed:
Example led and power button combination
Example resistor (matched the mentioned led and button combination on the RPi GPIO)
Example cable
The following illustration shows the full connection:
GPIO 12 (pin 32) => cable => resistor => led+ connector => led itself => led- connector => cable => ground pin (any free ground pin)
The example cables can be connected without soldering. This connection is not bullet proof but does the job. The resistor can be soldered to the led+ connector and a cable can be plugged on the resistor and directly. (Soldering is possible but is not necessary)
Status led development (pull request): https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/387
If you like Phoniebox, consider: buy me a coffee or PayPal
- Code: https://github.com/MiczFlor/RPi-Jukebox-RFID
- Phoniebox home page: English | Deutsch
Phoniebox is a contactless jukebox for the Raspberry Pi, playing audio files, playlists, podcasts, web streams and spotify triggered by RFID cards. All plug and play via USB, no soldering iron needed. Update: if you must, it now also features a howto for adding GPIO buttons controls.
Visit Phoniebox.de
π₯ Version 3
- β Releases
- π΅ Install Jukebox Version 3
- π Report a bug
- π Propose a feature
- βοΈ Feature Status
- π Documentation
- π©βπ» Development
- βοΈ Contributing
- π¦ Code
πΆ Version 2
- β Releases
- π΅ Install Jukebox Version 2
- π Report a bug
- βοΈ Features
- π Documentation
- βοΈ Contributing
- π¦ Code
Version 2 Pages
-
Setup / Upgrades
- Synchronising Phonieboxes in a local network
- Smart Home remote control with MQTT
- Hardware Pinout Overview
- Systemwide Equalizer
- Phoniebox with read-only Filesystem
- HiFiBerry Soundcard Details
- WM8960 Hi-Fi HAT
- PAM8403 Amplifier Power Off
- TPA3118 Amplifier Power Off and EMI improvement
- External Non USB Audio DAC ES9023, PCM5102, etc.
- On-board LEDs with fibre optics
- Setting GPIOs at boot time
- Stop on removal with USB RFID Reader
- Firmware update improves audio out
- Architecture