Arduino using 5 volts with 150 pixels and a passive infrared sensor (PIR sensor) done by Neopixel library
the Git code is https://github.com/ironheartbj18/pir-sensor-ws2812b-with-neopixels
A passive infrared sensor (PIR sensor) is an electronic sensor that measures infrared (IR) light radiating from objects in its field of view. They are most often used in PIR-based motion detectors.
PIR sensors allow you to sense motion, almost always used to detect whether a human has moved in or out of the sensors range. They are small, inexpensive, low-power, easy to use and don’t wear out. For that reason they are commonly found in appliances and gadgets used in homes or businesses. They are often referred to as PIR, “Passive Infrared”, “Pyroelectric”, or “IR motion” sensors.
It would be nice if add a sensor called LDR (Light Dependent Resistor), It can be used to automatically turn a light ON whenever there isn’t sufficient light in a room. We can take advantage of it.
What are the stuff required to do this project? Hardware:
- Arduino or an arduino clone board (freeduino).
- WS2812B led strip
- PIR (passive infrared sensor)
- Led
- 300 ohm resistor
Software:


How does it work?
PIR sensors are used to detect motion from pets/humanoids from about 20 feet away (possibly works on zombies, not guaranteed). This one has an adjustable delay before firing (approx 2-4 seconds), adjustable sensitivity and we include a 1 foot (30 cm) cable with a socket so you can easily reposition the sensor or mount it using the two drills on either side
Runs on 5V-16V power (if you need to run it off of 3V you can do that by bypassing the regulator, but that means doing a bit of soldering). Digital signal output is 3.3V high/low. Sensing range is about 7 meters (120 degree cone)
For a full tutorial with wiring diagrams, code examples and project ideas, PIR sensor tutorial page!
