Intro: ESP32 Bluetooth Ambience Light Controller With WS2812 LED Strips.
ESP32 is a feature rich chip with lots of built in features. We will use these to create ambience lighting and control it with smartphone app.
We will use two of the built-in components to build Hornbill Lights. In this tutorial we will make use of the built-in remote peripheral to drive the WS2812 LEDs with Hornbill ESP32 and then build a cross platform app using cordova-ionic to control the LEDs. The app speaks with the Hornbill ESP32 with Bluetooth Low Energy (BLE).
Step 1: Components:
The Hornbill Lights Kit Comes with all the parts required to build the project. You may use any other ESP32 boards and parts as per schematic.
- WS2812 LED Strip. 5 meters in length uses 150 LEDs.
- Power Supply, 10A.
- Hornbill Lights Kit
- Hornbill ESP32 Dev Board
- Hornbill Proto Board
- Other Passive components as per schematic.
If you're looking to build this without much scouting for parts and at an affordable cost, get the kit at our campaign.
Step 2: Schematic
Step 3: Code :
Indestructible code formatting is broken, so find the Arduino Code with the link below:
Step 4: App :
The Hornbill Lights App can be used to set any color depending on your mood or run light effects like rainbow. The app is still not published on the app store. However if you're using an Android Phone you may download the .apk file from repository (links in the download section).
Step 5: Installation :
I would recommend using aluminum brackets to to install the strips with plastic caps. This serves dual purpose of heat dissipation and light refraction. Like the one shown in the Image below.