-
Notifications
You must be signed in to change notification settings - Fork 402
Using GPIO hardware status led
Note Before we start: Let's remember a Phoniebox rule: Just plug and play using USB, no soldering iron needed. One might to take soldering or GPIO work into account when it is then possible to see the power status of the Phoniebox be an led.
The status LED is supported out of the box. That means it only has to be connected to the Raspberry Pi. The connection is explained below.
- Lighting up when the Phoniebox is fully bootet and ready to respond to card requests
- Reacting on pushed GPIO hardware shutdown button by blinking when shutdown command is accepted
- Going off when the Phoniebox is ready (system has shut down) to be switched off by the main switch (RPi can be disconnected from power supply) so it can be turned off more gracefully.
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 in the Phoniebox software. 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