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.

40 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. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.
    android development company in chennai

    ReplyDelete
  4. I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts.
    IEEE Final Year Projects Quantum Computing Domain

    JavaScript Training in Chennai

    Project Centers in Chennai

    JavaScript Training in Chennai

    ReplyDelete
  5. 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
  6. It's very useful article with inforamtive and insightful content and i had good experience with this information.Enroll today to get free access to our live demo session which is a great opportunity to interact with the trainer directly which is a placement based Salesforce training India with job placement and certification . I strongly recommend my friends to join this Salesforce training institutes in hyderabad practical course, great curriculum Salesforce training institutes in Bangalore with real time experienced faculty Salesforce training institutes in Chennai. Never delay to enroll for a free demo at Salesforce training institutes in Mumbai who are popular for Salesforce training institutes in Pune.

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

    ReplyDelete
  8. 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
  9. I am so happy to found your blog post because it's really very informative. Please keep writing this kind of blogs and I regularly visit this blog. Have a look at my services.
    I have found this Salesforce training in India worth joining course. Try this Salesforce training in Hyderabad with job assistance. Join Salesforce training institutes in ameerpet with certification. Enroll for Salesforce online training in hyderabad with hands on course. 

    ReplyDelete
  10. Great post. I would like more information about this, because it is very nice.If you want to more information Read More

    ReplyDelete
  11. Excellent blog thanks for sharing the valuable information..it becomes easy to read and easily understand the information.
    Useful article which was very helpful. also interesting and contains good information.
    to know about python training course , use the below link.

    Python Training in chennai

    Python Course in chennai

    ReplyDelete
  12. 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
  13. Great blog ! I am impressed with suggestions of author.
    Who Is Invented Mobile Phone

    ReplyDelete
  14. It is truly a well-researched content and excellent wording. I got so engaged in this material that I couldn’t wait to read. I am impressed with your work and skill. Thanks. Read more info about Buy Spy Bluetooth Headset In India

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

    ReplyDelete
  16. 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
  17. Great work with the hard work you have done I appreciate your work thanks for sharing it...
    ESET Internet Security Crack

    ReplyDelete
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. Nice article and explanation Keep continuing to write an article like this you may also check my website Crack Softwares Download We established Allywebsite in order to Create Long-Term Relationships with Our Community & Inspire Happiness and Positivity we been around since 2015 helping our people get more knowledge in building website so welcome aboard the ship.

    https://idmcracksetup.com/revo-uninstaller-pro-crack-plus-license-key/

    https://idmcracksetup.com/minitool-partition-wizard-pro-crack/

    https://idmcracksetup.com/eset-endpoint-security-crack/

    ReplyDelete
  24. 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
  25. 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
  26. 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
    Apowersoft Watermark Remover Crack
    Europa By Reason Crack
    PUSH Video Wallpaper Crack
    Redshift Render Crack
    Adobe Acrobat Pro DC Crack

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

    ReplyDelete
  28. Beyond Compare 4.4.2 Crack enables you to compare your folders and files efficiently. You may concentrate on the differences and dismiss.https://cyberspc.com/beyond-compare-crack-free-download/

    ReplyDelete

  29. I'm the luckiest husband to have you beside me. Happy anniversary wife, I love you! A wife like you is a blessing. I am thankful to God for having you 10 Year Anniversary Quotes To Wife

    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.