Skip to content

Latest commit

 

History

History
74 lines (59 loc) · 3.42 KB

BUILD.md

File metadata and controls

74 lines (59 loc) · 3.42 KB

In this file you'll find all the instructions to build your controllable ledstrip.

Requirements

  • A RaspberryPI, I'm using a RaspberryPi 4 Model B with 4GB ram.
  • A WS2812B rgb led strip. Technically you can use whatever strip (12V or 5V) as long as you provide the correct power supply and connection to the raspberry. You can check this out for a comparison between different led strips.
  • A 5v power supply unit. The linked one has 20 ampere for a total of 5*20=100W. Depending on the number of leds on your strip you'll have different power needs, specifically the type of led mounted on the Ws2812b draws 60 ma per led. So for a 300 led strip you'll need at least 60*300= 18000ma= 18a
  • Some jumper wires to connect the raspberryPi to the led strip (you actually need only two).
  • Electric wires
  • An internet connection

Raspberry Setup

There are plenty on excellent tutorial on how to setup a new RapsberryPi:

To set a wifi connection and enable ssh protocol follow this.

Update

  • Use ssh to log into your raspberryPi:
ssh pi@YourPiIP
  • (Optional) set password-less access following this

  • Update with:

sudo apt-get update && sudo apt-get -y upgrade
  • Reboot:
sudo reboot

Python

My current raspberryPi comes with python2.7 by default and python3.7, you can check yours with

python --version 
> Python 2.7
ls /usr/bin/python*

To set python3 as default use the following:

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2
sudo update-alternatives --config python

Now the version command should return something like this:

python --version 
> Python 3.7.3

Cable Connections

Power source

Connect the power source cables to your home electric system. This part vary depending on how you would like to connect it, just remember to keep the black with the black (minus) and the red with the red (plus)

Raspberry

Since there is no connection powering the RaspberryPi, an usb type c power supply is necessary.

For the connection you can follow this tutorial which uses following diagram: diagram

Where the extern power source is given by your power supply unit.