Raspberry Pi Controlling LED Strip Lights (5v)

2020-05-11 00:01:09

In this video I show how to control a 5v single color LED strip using a Raspberry Pi and a MOSFET. I'm powering the LED strip directly from the Raspberry Pi. If you are using a short run of lights this should be fine, but for larger runs you will need an external power supply.

Announcing the BasementMaker Raspberry Pi Configurator script: https://github.com/basementmaker/raspberrypi-configurator

The script will automatically update your Raspberry Pi and configure it with the software required to work on this project.

How to use:

wget https://raw.githubusercontent.com/basementmaker/raspberrypi-configurator/master/pi-config.sh chmod +x pi-config.sh ./pi-config.sh

You can also use the shorter url:

wget https://basementmaker.net/pi-config.sh chmod +x pi-config.sh ./pi-config.sh

Run the script, select: 1 -> Standard Setups and then select: 1 -> PiGPIO

If you prefer to install PiGPIO manually, here are those commands:

sudo apt install -y build-essential python-setuptools python3-setuptools wget https://github.com/joan2937/pigpio/archive/master.zip && unzip master.zip && cd pigpio-master && make && sudo make install

Commands: sudo pigpiod pigs p 17 255

Affiliate Links
Breadboard (Half Size)
CanaKit Raspberry Pi 3 B+ with 2.5A Power Supply
ELEGOO Half-Size Breadboard - 3 Pack
N-Channel Power Mosfet
Raspberry Pi 3 Model B+
USB LED Strip Light White 5V Non-Waterproof
Helping Hands Third Hand Soldering Tool and Vise
US Art Supply 18" x 24" GREEN/BLACK Professional Self Healing Mat