Buzz of light for Raspberry Pi

In this instruction, I create a Christmas display using a version of the LightshowPi loaded on a Raspberry Pi 3, an 8-channel SSR, 4 outputs and various THREADS. The video displayed is a sample of what I did last year. If you like this instruction, vote for the Raspberry Pi Contest. Https://

Step 1: Hardware List:

  • Raspberry Pi 3 (any newer version Works)
  • 16GB or more micro memory card
  • Monitor
  • HDMI Cable
  • Mouse
  • Keyboard
  • Laptop or other computer to program the memory card
  • 8-channel Static relay (SSR)
  • 4 Points of Sale
  • 4-outlet Box
  • 4 Drywall Anchors
  • 4 small Screws
  • RJ45 plugs
  • Ethernet Cable
  • Ends of the Ethernet cable
  • Insulating tape and heat shrink sleeve
  • Various Wires
  • Tools
    • Screwdriver
      • Small Flat Head
      • Phillips
    • Cutting pliers
    • Stripping pliers
    • Pliers
    • RJ45 crimping tool for lengthening the Ethernet cable
    • Shoot
    • Shears or scissors
    • Soldering iron

Step 2: Raspberry Pi


Using the laptop, load the latest version of Raspbian, there is a lot of video and documentation to load the memory Card.

On the Raspberry Pi connect an HDMI monitor, a mouse and a keyboard

Once the Raspbian image is loaded on the card, place it in the IP memory card reader and plug in the appropriate power supply, turn on the monitor if it is Not.

Wait until it starts, after booting, connect to Wi-Fi and install LightshowPi.

To install Lightshow Pi, go to and click on start-up Guide under new User. The guide will explain how to load it on the Pi, I set up the steps below and if a confusion may concern the Website.

  • Open the terminal window type sudo su which is the root and will not have to type sudo before anything that requires sudo
  • HTTPS git clone :// . git
  • git Fetch & & git Checkout Master
  • ./ (if you have not used sudo su, you will need to put sudo in front of the./ File)
  • Reboot (again If you have not used sudo su, you must put sudo to Reboot)

After reboot

  • Open the terminal window again and type sudo su
  • Python py/hardware_controller. py–state = Flash (if You don’t use it, sudo su will have to put sudo in front of Python)
    • This is a test to see if the program has loaded properly

Here’s what I did by reading the website

  • In the terminal window and always in the lightshow directory.
  • CD Config
  • CP default. CFG overrides. CFG
    • This command copies the Default. cfg file and paste it into the same folder and changes the name to Overrides. CFG
    • When configuring changes, use the Overrides. cfg file
  • Nano overrides. cfg (if you have not used sudo su, you will have to put sudo in front of the Nano)
    • Opens the Override. CFG file and can scroll and change configurations.
    • CTRL + O saves changes
    • CTRL + X closes the overrides. cfg
  • You can play music from a folder or Internet like Pandora or other music streaming on the internet
    • Create a playlist Create a folder in the music folder
      • Can either use the terminal window or use the graphical interface
      • In the terminal window
        • sudo su
        • CD Lightshowpi/music
        • mkdir Noel
          • will create a new folder
        • Move music to this folder
        • Cd..
          • This command will bring you to the previous folder
        • CD Tools
        • Python playlist_generator. py (uses sudo in front of Python if does not use the sudo su command)
        • Will ask for the full path to the songs folder
          • For Example:/home/pi/lightshowpi/music/christmas
        • Then cd..
        • CD Config
        • Nano Overrides. CFG
          • Scroll to where you see Playlist_path = $ SYNCHRONIZED_LIGHTS_HOME/music/sample/. Playlist
          • Change the sample at Christmas
          • Ctrl + O to save
          • Ctrl + x to exit
        • cd ..
        • python py / –playlist = / home / pi / lightshowpi / musique / noel / .playlist
        • Start_music_and_lights start it
          • Stop_music_and_lights stops it

Be able to play music from a streaming source On the website you can follow a link on how to play Music.

For more personalization and information, go to or the Google community, there is a link to the community on the front of the Site.

Step 3: Hardware

Buzz of light for Raspberry Pi
Smart Switch Setup

Buzz of light for Raspberry Pi Buzz of light for Raspberry Pi

Buzz of light for Raspberry Pi
Smart Switch Config

Buzz of light for Raspberry Pi Buzz of light for Raspberry Pi Buzz of light for Raspberry Pi Buzz of light for Raspberry Pi Buzz of light for Raspberry Pi















































From the 4-way output box, break 3 tabs (photo)

Take a plug and on the bronze side, a tab that connects the 2 plugs together, with a pliers breaks the tab to have 2 individual outputs, do this to the 3 remaining outputs, do not have to break the silvery Side.

With the plug, take a piece of wire I used 14 caliber and attach a thread to the bronze Screw. Take another piece of wire and tie it to the other bronze screw. Doing this at the other 7 outlets, should have 8 threads in Total.

then, with another piece of wire cut 4 roughly equal

Buzz of light for Raspberry Pi







Long to form a garland of neutrals (silver screws). then, on the last silver screw, cut a longer piece of wire to connect it to the neutral side of the cap.

Do the same thing with the ground as with the Neutrals.

Take 4 of the hot wires (bronze screw side) and pass through one of the broken tabs. With the remaining 4 wires, pass through another broken tab. then, on the neutral wire and on the ground wire, pass on the last Broken tab.

With a phillps screwdriver or a square head screwdriver, screw the outputs into the box

Now with the threads passing through the Broken tab. Connect each hot wire to the SSR with a small flat screwdriver. For example, all the upper rows of the outlets are odd and all the lower outputs are Paired. With the number one output at the top left, connect it to Channel 1 on the SSR. With the number two output at the bottom left, connect to channel Two and so on until all cables are Connected.

With the neutral, Earth and heat from the relay card, you can either plug in a plug as I did, or add a cable with a Plug.

Once the wires are connected, mount the SSR card on the back of the Box. By taking a cutter or a pair of scissors and cutting the drywall anchors in half to use them as a fulcrum. Place the spacers where the mounting holes are and mount them with small screws.

Step 4: Hardware Suite

On the control side of the SSR:

  • Using an Ethernet cable, connect the cable as Follows:
    • Channel One connect white with orange strip
    • Two channel connect solid orange
    • Channel three connects White with green wire
    • Channel Four connects Blue fixed
    • Channel Five connects White to blue strip
    • Channel six connect green fixed
    • Channel Seven connects White to brown strip
    • Channel Eight connects solid Brown
  • At the other end of the wire, connect the RJ45 jack using row B with a perforation Tool.
  • With about one foot long Ethernet cable plug an RJ45 jack as before
  • At the other end of the cable with the Jack unplug the sheath with stripping pliers, then strip each of the 8 individual wires by about 1/4 “and Solder The presentation board leads to the female end to be connected to the Raspberry Pi.
  • Make or find an Ethernet cable of different lengths when making sure to use the T-568B protocol

As this relay card is a 5vdc; Connect a suitable 5VDC power supply to VCC (positive) and GND (negative).

The Raspberry Pi and the relay card must share a lot, this can be done in many ways. The way I did it was by using a modified power supply from the Computer.

Step 5: put all together

With the Raspberry Pi, you want to use the pin out WIRINGPI

Buzz of light for Raspberry Pi


  • With female jumpers, regardless of the color used to solder the Ethernet cable, you want to connect to the WiringPi pin of the Raspberry Pi as Follows:
    • White with orange stripe connected to 0 which is the physical pin 11
    • Solid Orange connected to 1 which is the physical pin 12
    • White with green stripe connected to 2 which is the physical pin 13
    • Solid Blue Connect to 3 which is physical pin 15
    • White with blue stripe connected to 4 which is the physical pin 16
    • Fixed green connected to 5, which is the physical pin 18
    • White with brown stripe connects a 6 which is the physical pin 22
    • Solid Brown Connect to 7 which is the physical pin 7
  • Connect an Ethernet cable between the two jacks
  • Connect 5v to the relay board and plug in the Raspberry Pi (if not already done) and turn on the Pi.
  • Run the LightshowPi Program.
  • On the relay board you can watch the dance directed towards the Music.
  • Connect the relay board to power the Plugs.
  • Plug in the Christmas lights and watch them go to the Music.
    Buzz of light for Raspberry Pi
    Connects Gpio Smart Switch

















Show Buttons
Hide Buttons