Smartphone controlled LED using arduino uno

By | February 11, 2018

We come with a new and very useful project tutorial of smartphone controlled LED using arduino uno. It is somewhat we called first step of wireless communication. Smartphone controlled LED using arduino uno is an application of Bluetooth interfacing with arduino uno board. Before start the project I request if you have any doubt on Bluetooth interfacing with arduino uno. Please go through my previous posts that is “Interfacing HC-05 bluetooth module with arduino uno” and “Arduino serial communication”.

Project Description:

Smartphone controlled LED using arduino uno is very useful project. You can replace LED with your home lights using relay switch. Then you will be control your complete home automation through your smartphone App. So in this tutorial we will learn simple on-off single LED by smart phone. Now we shall going to be learn three steps to complete our project. Those are

1 Hardware interfacing.

2 Embedded C programming.

3 Android App making.

If we learn those three steps then it will be very easy for you to make any home automation project using arduino uno board. Now we start discussing the steps of this smartphone controlled LED using arduino uno project.

Hardware interfacing:

For making this smartphone controlled LED using arduino uno project we need

  1. Arduino Uno Board.
  2. Hc-05 Bluetooth module
  3. LED

Here I not go further of Hc-05 bluetooth module with arduino uno. For details of how to interface Hc-05 bluetooth module with arduino uno please refer my previous post that is “Interfacing HC-05 bluetooth module with arduino uno”. In bellow you will be found the circuit diagram of my project.

smartphone controlled LED using arduino uno

Embedded C programming:

We complete hardware connection portion. Now we have to look on embedded c program. This C program will tell arduino that what to do? When it receive any data from Bluetooth. As we know Bluetooth is connected with UART pin. So it established serial communication between arduino and smartphone.

Embedded C Code
// Name : smartphone controlled LED using arduino uno
// Author : Subham Dutta
// Date : 11-02-18
// Website : www.nbcafe.in
void setup()
{
pinMode(13, OUTPUT);
// initialize both serial ports:
Serial.begin(9600);
}
void loop() {
if (Serial.available()) {
unsigned int inByte = Serial.read();
Serial.write(inByte);
if ( inByte == ‘a’)
{
digitalWrite(13, HIGH);
}
if ( inByte == ‘b’)
{
digitalWrite(13, LOW);
}
}
}

Android App making

Finally we come to the last portion of our project that is making an android app to control the LED. For making the android app, I use MIT APP INVENTOR Platform. In our c programing you are noticed that when we send ‘a’ the LED will glow. When we send ‘b’ then the LED will off. So from my apps when we press LED On button it should send ‘a’. when we press LED Off button it should send ‘b’. Now see the picture bellow of my app. It contain two pages. One is Home page and another is control page.

So from here you can download the android app name Blue_LED.apk. Please download that and install to your smartphone and get control over the LED.Now if want to learn how to build this app? for step by step guidance must see my previous post “Make your own android Bluecontrol App without coding”.

Here I give you my project video. I mantion all in video like

  1. Simulation on Proteus.
  2. Embedded C Progrraming
  3. How to build APP
  4. Real time project.

So must watch the video of “ Smartphone controlled LED using arduino uno ”




Leave a Reply

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