Control Ws2812 Neopixel LED STRIP Over Bluetooth Using Arduino Uno

by Utsource in Circuits > Arduino

2947 Views, 3 Favorites, 0 Comments

Control Ws2812 Neopixel LED STRIP Over Bluetooth Using Arduino Uno

Screenshot_20191009-122219__01.jpg
Hi guys in this instructables we will learn how to control neopixel with arduino. So basically arduino will be connected via Bluetooth using hc05 Bluetooth module to smartphone and smartphone will send commands to change color of neopixel led strip over Bluetooth to arduino using hc05 and accordingly neopixel led strip color will change.

Things You Need

Km5Zu-2RIncAUweU7uG7IhyWPySZ0SqIgAI0-vk9w7767_IkthCPCcsirj2GGmXF4IdQDg8UVpHVLVM6CXnzFsG1hnAdSkK7BIhIOtEldXoZiDsvzsPo-6o0rD6Mda7UyOE=w456-h323-nc.png
images(78).jpg
images(79).jpg

FOR THIS INSTRUCTABLES YOU WILL NEED FOLLOWING THINGS.

ARDUINO UNO:


HC05:



get a WS2812 Neopixel LED STRIP

OR


WS2812 LED :


WS2812 LED Ring:


And few more components as

Jumper wires

Resistor 1k 2k

Breadboard etc

Circuit

Screenshot_20191009-122227__01.jpg

prepare circuit on the breadboard according to the given schmatics in the image & try to use one other power supply for ws2812 instead of running it from Arduino uno because ARDUINO is not able to run ws2812.& Bluetooth at the same time so try to use extra 5v power supply adapter for ws 2812

If you don't have extra power supply then in the code you can decrease the brightness of neopixel led strip to decrease the power consumed by it.

Coding Part

Screenshot_20191009-122323__01.jpg

Download the code :

And make sure you install adafruit neopixel library is installed .

And in the code setup the data pin of led strip , no of led in led strip & the brightness of the led strip & upload the code to the Arduino.

Downloads

Setup the App and Test It

Screenshot_20191009-210834.jpg
Screenshot_20191009-122219__01.jpg
Screenshot_20191009-122219__02.jpg
Screenshot_20191009-122206__01.jpg
Screenshot_20191009-111905__01.jpg
open play store on your phone and download Bluetooth terminal hc 05 app and connect the app to hc05 Bluetooth module , if you have an iPhone from apple store download any Bluetooth terminal app it will work fine.

And send characters from app to hc 05 to control led strip as shown in images.As sending character "r" will turn led strip into red color similarly all functions are given below:-

CHARACTER FUNCTION

"r" red color led strip

"g" green color led strip

"b" blue color led strip

"w" white color led strip

"o" turn off

"a" rainbow animation

"m" mix pattern

So try all these characters & send it & enjoy your led strip light show in your home