Bluetooth Controlled App for Operating Neopixel

by aritrakdebnath2003 in Circuits > Mobile

505 Views, 2 Favorites, 0 Comments

Bluetooth Controlled App for Operating Neopixel

WhatsApp Image 2025-09-05 at 03.38.06_ee91e64f.jpg

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

ebhoot.in-53.png
0-1810-m3-550x550.jpg
9V-Original-HW-High-Quality-Battery-1.jpg
images (1).jpeg
images (2).jpeg

ESP32 - 1x

LM7805 -1x

Neopixel Strip - 1m

9V Battery -1x

Jumper wires

9V battery adapter -1x

Circuit Making

WhatsApp Image 2025-09-05 at 01.44.27_912dc3a3.jpg

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

Screenshot 2025-09-05 035103.png
Screenshot 2025-09-05 035327.png
Screenshot 2025-09-05 035343.png
Screenshot 2025-09-05 035348.png
Screenshot 2025-09-05 035352.png
Screenshot 2025-09-05 035357.png
Screenshot 2025-09-05 035404.png


BluetoothSerial → lets the ESP32 communicate with your phone (or any Bluetooth device).

Adafruit_NeoPixel → controls RGB LED strips (WS2812, WS2812B, etc.), also called NeoPixels.



  1. LED_PIN → the GPIO pin of ESP32 connected to the DIN of the LED strip.
  2. NUM_PIXELS → total number of LEDs in the strip.
  3. NEO_GRB + NEO_KHZ800 → tells the library the LED color order (most WS2812 use GRB) and timing.


  1. Each Bluetooth command corresponds to a color.
  2. Example: Sending '1' makes the strip red, '0' turns it off.
  3. 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

WhatsApp Image 2025-09-05 at 03.42.20_ce832400.jpg
WhatsApp Image 2025-09-05 at 04.00.07_346b0101.jpg

The app was created using the MIT APP INVENTOR .

Final testing of the app and the coding .