0% found this document useful (0 votes)
26 views9 pages

Raspberry Pi Controlled Neopixels

Uploaded by

mp6bxd2jwb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views9 pages

Raspberry Pi Controlled Neopixels

Uploaded by

mp6bxd2jwb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Raspberry Pi Controlled Neopixels

What this video will cover

1. Step-by-step instructions on how to do this


2. Four methods of controlling neopixel (LED strips) using a raspberry pi
3. Wiring for four different methods
4. Links to all parts and references
5. Links to the code used
6. I will reset a Raspberry to original OS to ensure I show everything you need to do

****Note: One method uses only a raspberry pi, LED strip, and wire.****
Wire your preferred circuit

1. More details on these circuits can be found here: Circuit Details


2. Circuit one:
a. The simplest.
b. Can only be used for a low number of LEDs (less than 10?)
c. All you need is a pi, LEDs, and wire.
3. Circuit two:
a. Moderat simplicity
b. No special components
c. Can run more LEDs than circuit 1
d. Requires a 5V power supply
4. Circuit three:
a. My favorite
b. Safest choice for your Pi
c. Can run a high number of LEDs
d. Requires a Logic level converter and 5V power supply
Order of operations

1. Setup your Raspberry Pi using this great tutorial by Raspberry:


a. Link for Raspberry Pi setup tutorial
2. Connect to a screen or use VNC viewer
i. To set up VNC viewer, use this link: vnc setup tutorial
3. Once your Raspberry is running, continue to next page
Programming Setup

1. Verify you are using Python3


i. Open the command terminal
ii. Type: python --version
1. Press: ENTER
iii. Type: python3 --version
1. Press: ENTER
2. Setup your Neopixel specific stuff
a. Within the Terminal:
i. Type: sudo pip3 install rpi_ws281x adafruit-circuitpython-neopixel
ii. Press: ENTER
iii. Type: sudo python3 -m pip install --force-reinstall adafruit-blinka
iv. Press: ENTER

****Continue to next page****


Program setup continued

1. Download the code on this page: (Link to code)


2. Transfer the code file using the Vnc viewer or using a SD card (or use a flash drive)
a. This is the file we downloaded on page one. Named:
3. Place the chosen code on your desktop home screen
4. Open the Terminal and:
a. Type: cd Desktop
b. Press ENTER
c. Type: sudo python3 code.py
i. Note: If your code is named something other than “code.py” enter its name instead
1. Ie.. if you codes name is “otherName.py” Type: sudo python3 otherName.py
d. Press ENTER
5. After a few seconds, your LEDs you begin to show
6. To turn off the program and stop the lights:
a. Type: CTRL+C
Links

1. Information:
a. Adafruit Neopixel Article
b. Picture of GPIO pinout
2. Items I use in the video:
a. Logic Level Converter (3.3volt - 5volt)
b. LED strips I use
c. Raspberry Pi 3B
d. Wire
e. Sd Card I used
3. Links for downloads:
a. Raspberry Pi Imager
b.

You might also like