ESP8266/ARDUINO Bluetooth Led Control

10,568

11

2

hi,

this is a fun project for controlling an led on nodemcu using the music player on your mobile phone through bluetooth.

click here to watch on YouTube.

follow the next steps for the arduino code and the connections

Step 1: The Connections

The ADC pin is the top most pin on the left side of nodemcu module. The positive signal / wire from the bluetooth speaker is connected to this pin.

I have connected the positive lead on the LED to the GPIO5 on NodeMcu (second pin from the top on right side),

and the negative lead is connected to the ground pin on the NodeMcu.

Step 2: The Arduino Sketch

you can use an Arduino board instead of the NodeMcu.
the sketch will be same for the arduino board (except you dont need the #include <ESP8266WiFi.h> statement.)

the code is in the text format..

SO, that's it guys.. Enjoy the Embedded Systems

Share

    Recommendations

    • Woodworking Contest

      Woodworking Contest
    • Fandom Contest

      Fandom Contest
    • Arduino Contest 2019

      Arduino Contest 2019

    2 Discussions

    0
    None
    DougL56

    1 year ago

    This is a nice little project demonstrating how to control a digital output with an analog input. But it really isn't a bluetooth project because it doesn't use any bluetooth components. The speaker just provides an analog input signal; the fact that it's a bluetooth speaker is incidental.

    1 reply
    0
    None
    CuriositydriveDougL56

    Reply 1 year ago

    Yeah, but there is a significant difference between using a wired earphone jack to give the "analog" input and using a wireless "bluetooth" speaker. And this is not about just "controlling digital output with an analog input", it's about putting useless things into "use". Hope you get the point.