Control LEDs With Your Android - Arduino-Bluetooth Module Tutorial - MechStuff
Control LEDs With Your Android - Arduino-Bluetooth Module Tutorial - MechStuff
(https://mechstuff.com/)
MechStuff (https://mechstuff.com/)
You already know what we are gonna do today…so lets get started !
VideoSpecial
tutorial
articlesdown below↓
& job alerts only for you Subscribers! Your email-id Subscribe
https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/ 1/5
6/12/2020 Control LEDs with your Android | Arduino-Bluetooth module tutorial – MechStuff
Here’s a video tutorial which will surely make your job easy… 🙂
(https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/?share=facebook&nb=1)
(https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/?share=jetpack-whatsapp&nb=1)
(https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/?share=reddit&nb=1)
(https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/?share=pinterest&nb=1)
(https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/?share=twitter&nb=1)
(https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/?share=linkedin&nb=1) More
Related
https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/ 4/5
6/12/2020 Control LEDs with your Android | Arduino-Bluetooth module tutorial – MechStuff
Of LED –
Positive terminal – to pin 8 of Arduino.
Negative terminal – GND of Arduino.
CONTROLLINO
100% Arduino-compatible
OPEN
(https://i1.wp.com/mechstuff.com/wp-content/uploads/2016/12/ea1bf70c-b284-4f73-bd53-f1fc0c753843.jpg)
Procedure :-
1. Make the connections as shown in the above image. Don’t connect the RX & TX pins WHILE/BEFORE
uploading the code !
2. Copy the code given below.
3. Download the app called BlueControl (It’s free). Here is the link
(https://play.google.com/store/apps/details?id=com.gundel.bluecontrol&hl=es)
https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/ 2/5
6/12/2020 Control LEDs with your Android | Arduino-Bluetooth module tutorial – MechStuff
4. Open the app Blue control (It will automatically turn on the device’s Bluetooth). Go to options. Click on
“Connect to Robot”. Choose the device – HC 05.
CONTROLLINO
100% Arduino-compatible
Unlimited exibility with up to 61 I/Os from 5V to 230V and countless
interfacing options
controllino.biz
OPEN
5. When you are connecting to the Bluetooth module for the first time, it will ask you the password. Enter 0000
OR 1234.
6. When the device gets successfully paired with the sensor, the LED lights on sensor will start blinking at a
slower rate than usual.
7. DONE. Copy the code given below & test it out !
Code :-
void setup() {
Serial.begin(9600);
pinMode(8, OUTPUT); // put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available()>0)
{
char data= Serial.read(); // reading the data received from the bluetooth modu
switch(data)
{
case 'a': digitalWrite(8, HIGH);break; // when a is pressed on the app on y
case 'd': digitalWrite(8, LOW);break; // when d is pressed on the app on you
default : break;
}
Serial.println(data);
}
delay(50);
}
Control LEDs with Voice command (in 2 mins, just change code)
(https://mechstuff.com/control-leds-with-voice-command-arduino-bluetooth-module-
tutoria/)
https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/ 3/5
6/12/2020 Control LEDs with your Android | Arduino-Bluetooth module tutorial – MechStuff
CONTROLLINO
Unlimited exibility with up to 61 I/Os from 5V to 230V and
countless interfacing options
controllino.biz OPEN
https://mechstuff.com/control-leds-with-your-android-arduino-bluetooth-module-tutorial/ 5/5