book collections email follower instructable user
Picture of One-button Radio Streaming Box

I built a box for my friend's bar that has a Raspberry Pi inside and with the push of one button it streams audio to a website using Darkice and Icecast, while simultaneously lighting an 'On-Air' sign. I thought this was something people were already doing but after extensive searching I found nothing and decided to figure it out for myself and make this Instructable.

I used a Raspberry Pi 3+ B but as far as I can tell it would work on any Pi (perhaps the GPIO pin numbers would vary, I cannot attest to that though). I used the NOOBS package for the OS and bought a super simple soundcard for the input. I also added a safe shut-down button and activity LED to the box to protect the Pi.

You will need:

Raspberry Pi

NOOBS package on an SD card

On/Off switch (I used a big red emergency stop button like this, but it can be any kind of 'click' switch)

Push Button


An 'On-Air' sign, I made my own with an LED array

Soldering iron and small connector-board (I just cut a strip off one of these that I had around)

Soundcard (I used a super-simple one like this)

Step 1: Set-up Your Server

For the actual radio station we're using I didn't do this part as I didn't have access to the server and my friend did it, but there is a basic set-up guide on the Icecast website and I managed to get it working from the Pi in the beginning just to see how it goes. Alternatively you can get an account at and it works with Darkice.

mikerosati6 months ago
Great streaming setup... One comment though - you should have a current limiting resistor on your LED array or they are going to have issues over time.. All LED's need them.. They vary depending on the rated current draw for the particular LED's you have, but you should only need one inline on the positive lead..
OllyH4 (author)  mikerosati6 months ago
Yes I experimented with some but it just took too much brightness away from the lights... is there a way to do it without that happening?
jonfrei OllyH46 months ago
“All LED’s need them” is a misstatement — an LED needs a resistor if the voltage on the circuit exceeds the forward voltage rating. I.e., a circuit with an LED that requires a resistor may not require one with two LED’s on that same circuit. These values need to be calculated. For example, an LED with a forward voltage of 2Vf @ 20mA would need a 360 Ohm reisitor with a 9V supply. 3 of the same would need a 160 Ohm resistor, and 5 would exceed the current provided, resulting in a dimming of the output. More would result in dimmer yet results, to where eventually you would not get any brightness out of them at all.
audreyobscura6 months ago

What a clever little streaming set up! This is a really good idea, you should consider entering it into one of the Instructables Contests :D