Pollution / Wind Sensing + RGB Pixel Strand

Pollution has an extremely harmful presence in urban areas, a presence that is almost completely invisible to the human eye.  This project attempts to make the invisible visible.  This tutorial is one piece of a project that senses both wind and pollution and produces in output to a subtle light demonstration of these levels. In this tutorial, I will show how to connect an RGB pixel strand to an Arduino Uno and will provide the code and code instructions for how to receive an input from a sensor and create movement in the light strand.

Parts List
– Arduino Uno
– Adafruit 12mm Digital RGB LED Pixels (Strand of 25 ) WS2801
– 5V power source (computer USB or 5V battery)

Additional Libraries Needed
CLICK HERE  to download the Adafruit WS2801 library needed for this project.

Before beginning to wire the lights to the Arduino, please make sure you follow the diagram below and that you are plugging the right end of the light strand to the Arduino.led_pixels_flat-io

Notice that the pixel strand has four colored wires: red, yellow, green, and blue.  First connect the blue wire to the ground (GND).  Then connect the yellow wire to the Digital 2 pin and the green wire to the Digital 3 pin.  Finally, connect the red wire to the 5V regulated power supply. See diagram below.

Circuit Diagram



Leave a Reply

Your email address will not be published. Required fields are marked *