Bluetooth Controlled App for Operating Neopixel
by aritrakdebnath2003 in Circuits > Mobile
505 Views, 2 Favorites, 0 Comments
Bluetooth Controlled App for Operating Neopixel
Designing a Bluetooth-controlled app for operating NeoPixel LEDs involves combining wireless communication with addressable RGB lighting control. NeoPixels (WS2812 or similar LEDs) can produce millions of colors and dynamic patterns by sending digital control signals from a microcontroller.
Supplies
ESP32 - 1x
LM7805 -1x
Neopixel Strip - 1m
9V Battery -1x
Jumper wires
9V battery adapter -1x
Circuit Making
Component |Pin (Component) | Pin (ESP32)
NeoPixel Strip VCC | VCC (5V) | 5V (from Reg.)
NeoPixel Strip GND | GND | ESP32 GND
NeoPixel Strip DIN | Data In | GPIO 5
ESP32 Power | VIN (5V) | 5V (from Reg.)
9V Battery | +9V | Regulator IN
9V Battery | GND | Common GND
Coding
BluetoothSerial → lets the ESP32 communicate with your phone (or any Bluetooth device).
Adafruit_NeoPixel → controls RGB LED strips (WS2812, WS2812B, etc.), also called NeoPixels.
- LED_PIN → the GPIO pin of ESP32 connected to the DIN of the LED strip.
- NUM_PIXELS → total number of LEDs in the strip.
- NEO_GRB + NEO_KHZ800 → tells the library the LED color order (most WS2812 use GRB) and timing.
- Each Bluetooth command corresponds to a color.
- Example: Sending '1' makes the strip red, '0' turns it off.
- strip.Color(r,g,b) creates a 24-bit color value.
Loops through all the LEDs in the strip.
Updates their color.
Calls strip.show() to actually send data to the LEDs.
Downloads
Mobile App
The app was created using the MIT APP INVENTOR .
Final testing of the app and the coding .