Arduino: Project 20: Control LED with your phone!! (with Bluetooth)

Hello everyone!! Welcome to this post on Arduino Projects!!
Need a short introduction to what the Arduino is then click on LINK
Check out the breadboard intro right HERE

In this project I used the HC-05 Bluetooth Module to turn LED on/off. I made an App through MIT App Inventor too!! Wahhh!! So much awesomeness!!!

Demo:

This is how my project is like:

Things Required:

  1. Arduino UNO
  2. Jumper Wires
  3. LED
  4. 330 ohm resistor
  5. HC-05 Bluetooth Module
  6. Arduino IDE on computer
  7. MIT App Inventor (It’s superr cool!)

Reference Material:

  1. So I referred to this video for this project: (LINK)

Code:

View on/ Download from Github: (LINK)

char ins=0;
int led=8;

void setup() {
  pinMode(led, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  while(Serial.available()>0){
    ins= Serial.read();
    Serial.print(ins);
    Serial.print("\n");

    if(ins=='1'){
      digitalWrite(led, HIGH);
    }

    else if(ins=='0'){
      digitalWrite(led, LOW);
    }
  }
}

Stay Tuned for upcoming posts on Arduino Projects! Want to be the first to know when a new and amazing post comes up?? Then feel free to subscribe!

Happy Learning!!

This image has an empty alt attribute; its file name is stay-tuned.gif

Leave a Reply

PHP JS HTML CSS BASH PYTHON CODE

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close