Blogroll

Powered by Blogger.

Thursday 24 December 2015

Circuit to interface HC-05 bluetooth module to Arduino uno

by realfinetime  |  in HC-05 at  09:37

Household equipment such as bulb or fan controlled using your android device is an interesting project which most hobbyists want to do. A communication should be there between the android device and household equipment through some microcontroller boards such as Arduino uno. Bluetooth is a simple method to establish a communication between android device and household equipment. Here, I am using a HC-05 bluetooth module to communicate with android device. HC-05 is connected to Arduino uno to receive the data sent from android device. Depending on the data received from android device, we can use this Arduino uno to control our household equipment.
Connections are done as shown in the following diagram. Connections can be summarized as,
  1. 5V pin of Arduino uno is connected to the VCC terminal of HC-05 bluetooth module.
  2. Gnd pin of Arduino uno is connected to the Gnd terminal of HC-05 bluetooth module.
  3. RX pin of Arduino uno is connected to the TX terminal of HC-05 bluetooth module.
  4. TX pin of Arduino uno is connected to the RX terminal of HC-05 bluetooth module.

After completing the circuit, upload the following program to your Arduino board. Disconnect RX and TX pins connected to Arduino uno for successful uploading. Otherwise, uploading will be failed. After successful uploading, reconnect the RX and TX pins.

char junk;
String inputString="";

void setup()
{
  while (!Serial);
  Serial.begin(9600);
}

void loop()
{
  if(Serial.available())
  {
    while(Serial.available())
    {
      char inChar = (char)Serial.read(); //read the input
      inputString += inChar;             //make a string of the characters coming on serial
    }
    Serial.println(inputString);
    while (Serial.available() > 0)  
    { 
      junk = Serial.read() ; 
    } 
    inputString = "";
  }
}

Now, open the serial monitor from Arduino IDE. Nothing will be displayed in the serial monitor. Still, you must keep the serial monitor open until the remaining steps also get completed.

Next steps will be in your android device. Install Bluetooth Terminal application in your android device from Google Play Store.

After installing, open Bluetooth Terminal application and connect your android device to bluetooth device HC-05.
Select your bluetooth device from a list of available devices.
If connection goes successful, your Bluetooth Terminal will be as shown below.
Now, type letters in the text box and send.
Letters sent from your android device will be displayed in the serial monitor of Arduino.

27 comments:

  1. But how those letters control home equipment?

    ReplyDelete
  2. Winters are almost ending and spring is almost here. This painting is soo beautiful it reminds of the blossoming of spring amd its vibrant and sparkling colours

    ReplyDelete
  3. It's very Pleasure to Visit your Site...The Effective Information's about Corporate Training course are Posted Here...It's Really Good.Thanks for Such an wonderful works...
    Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Myself so glad to establish your blog entry since it's actually quite instructive. If it's not too much trouble continue composing this sort of web journal and I normally visit this blog. Examine my administrations.  
    Read these Salesforce Admin Certification Topics which are really helpful. I read these Salesforce Admin and Developer Certification Dumps and very much useful for me.   

    ReplyDelete
  6. Amazing how powerful blogging is. These contents are very good tips to grow my knowledge and I satisfied to read your wonderful post. Well do.. Primavera Training in Chennai | Primavera online course

    ReplyDelete
  7. https://www.chinastreetlight.com/collections/led-street-light
    led streetlight

    ReplyDelete
  8. If you want to download the latest version of this software so links are given below!
    HD Video Converter Factory Pro Crack
    Soundtoys Crack
    Waves Crack

    ReplyDelete
  9. Great work with the hard work you have done I appreciate your work thanks for sharing it...
    ESET Internet Security Crack

    ReplyDelete
  10. You have given essential data for us. about ajax alarmsysteem bestellen It is excellent and good for everyone. Keep posting always. I am very thankful to you.

    ReplyDelete
  11. Many thanks for sharing such incredible knowledge. It's really good for your website.
    The info on your website inspires me greatly. This website I'm bookmarked. Maintain it and thanks again.
    I'm really impressed with your writing skills, as smart as the structure of your weblog.
    PDFMate PDF Converter Pro Crack

    ReplyDelete
  12. Congratulations on all of your hard work. I'm grateful for it, and I'm grateful for you sharing it with me.
    Revo Uninstaller Crack

    ReplyDelete
  13. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 6 years, but I had no idea of solving some basic issues. I do not know how to Download Cracked Pro Softwares But thankfully, I recently visited a website named PCexe.org
    All Pro Cracked Softwares Download
    Revo Uninstaller Pro Crack
    VueScan Pro Crack
    Panda Antivirus Pro Crack
    Windows 12 Pro Crack
    Zemana AntiMalware Premium Crack

    ReplyDelete
  14. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. Thank you very much, this is really a large amount of information content-rich articles, I am glad that the author could get out to share with you It is very useful. Try to keep on posting these kind of things. Thanks for sharing. download RadioBOSS Crack

    ReplyDelete
  15. Wow, amazing block structure! How long
    Have you written a blog before? Working on a blog seems easy.
    The overview of your website is pretty good, not to mention what it does.
    In the content!
    vstkey.com
    Redshift Render Crack

    ReplyDelete
  16. Wow, amazing block structure! How long
    Have you written a blog before? Working on a blog seems easy.
    The overview of your website is pretty good, not to mention what it does.
    In the content!
    vstkey.com
    SoundToys Crack
    Rekordbox DJ Crack
    Apowersoft Watermark Remover Crack
    Windows KMS Activator Ultimate Crack
    Audio Amplifier Pro Crack
    Malwarebytes Crack
    Omnisphere Crack

    ReplyDelete
  17. Reflector Crack refers to Chromebooks with Android Monitor mirroring and current relationships. Enable display mirroring on your devic Reflector Crack

    ReplyDelete
  18. IoT SIM cards store credentials and security keys to distinguish between cellular memberships.

    ReplyDelete

IMPORTANT NOTICE

All the circuits, published in this blog is only after testing and getting proper results in my private lab. When you try these circuits, you should check the supply voltage, polarity of components, presence of childrens nearby and shorts in the circuits. This website will not be responsible for any harm happened to you or your components caused by your carelessness.

For More Electronic Tips



Proudly Powered by Blogger.