Arduino Bluetooth Automation – App Virtual Response (Like J.A.R.V.I.S)


Automation Like Iron-Man J.A.R.V.I.S:


Hello Everybody , This is my first article on Instructable.com, I’m so happy for that , and I will start by How to connect Arduino with Bluetooth for Home Automation, To share my experience with You .The Bluetooth module I will use here is HC-05 which is so familiar and cheap, Most tutorials are based on connect the Bluetooth with Rx and Tx on the Arduino Board.

So, here we are going to control a light with this tutorial at the end you can just use it control your A.C , T.V or any Electrical appliance.



Components and Connections Required


  • 1x Arduino
  • A Bluetooth Module ( HC-06)
  • Smartphone (any Android will work)
  • Led
  • 3x resistors
  • 1x Breadboard
  • Jumper Cables

automation


Upload the Sketch


int ledblue=2;
int tx=1;
int rx=0;
char inSerial[15];
void setup(){
Serial.begin(9600);
pinMode(ledblue, OUTPUT);
pinMode(tx, OUTPUT);
pinMode(rx, INPUT);
allpinslow();
}
void loop(){
int i=0;
int m=0;
delay(500);
if (Serial.available() > 0) {
while (Serial.available() > 0) {
inSerial[i]=Serial.read();
i++;
}
inSerial[i]='\0';
Check_Protocol(inSerial);
}}
void allpinslow()
{
digitalWrite(ledblue, HIGH);
digitalWrite(ledblue, LOW);
}
void Check_Protocol(char inStr[]){
int i=0;
int m=0;
Serial.println(inStr);
if(!strcmp(inStr,"2off")){ //Led Off
allpinslow();
digitalWrite(ledblue, LOW);
Serial.println("Blue Off");
for(m=0;m<11;m++){
inStr[m]=0;}
i=0;}
if(!strcmp(inStr,"2on")){ //Led on
allpinslow();
digitalWrite(ledblue, HIGH);
Serial.println("Blue on");
for(m=0;m<11;m++){
inStr[m]=0;}
i=0;}
else{
for(m=0;m<11;m++){
inStr[m]=0;
}
i=0;
}}

​Android App


  1. Connect BT GND to GND of Arduino and 5v to 5v of Arduino , connect tx pin of Bluetooth module to rx pin, then connect rx pin of Arduino to 2.2 k ohm resistor and connect the other end of resistor to 4.7 k ohm and connect the other end of 4.7 k ohm resistor to GND and the rx of BT module should be connected to the middle of both 2.2 k ohm and 4.7 k ohm resistors.
  2. Check the connections.
  3. Now after setting everything install the application
  4. Go on to BT and select the device to connect
  5. After device connected come to back section main menu where there are ON/OFF buttons. Now click on to the buttons for testing and congrats you made it working hurray!!
  6. Any doubts and clarifications will be cleared in the application and further versions will be much better for controlling more than 10 devices at once. with virtual operations.
  7. Please do comment and share your thoughts for future upgrades and versions of the application.

Things in MIND


  1. You need to remove the RX and TX cables when you’re uploading the sketch to your Arduino.
  2. If the HC-05 Bluetooth Module asks for a password, It’s’1234′.or ‘0000
  3. The TX of bluetooth should be connected to the RX of arduino and vice versa. So make sure You didn’t do the wrong way. Make sure you connect it properly, the TX into RX and the RX into the TX.
  4. While uploading sketch remove RX and TX connections , And connect them back when the sketch is uploaded.
  5. Check the connection before giving supply
  6. Check whether the module is operated at 5v or 3.3v.
  7. If you don’t see devices during searching in the app just click on the lines which are formed when the devices are available, then you see devices which are invisible till then. This was made for safety purpose.

Don’t Donate


Just Click that Follow Button On Instagram – V.RISHI RAO


49 thoughts on “Arduino Bluetooth Automation – App Virtual Response (Like J.A.R.V.I.S)

  1. I savour, result in I discovered just what I was having a look for.
    You’ve ended my four day long hunt! God Bless you man. Have
    a great day. Bye

  2. I feel that is one of the most significant info for me.

    And i am satisfied studying your article. But should
    remark on few basic things, The site taste is wonderful, the articles is really great : D.
    Just right task, cheers

  3. Your style is so unique compared to other folks I’ve read stuff from.
    Thanks for posting when you’ve got the opportunity, Guess I will just book mark this blog.

  4. You really make it appear really easy with your presentation however
    I find this topic to be actually one thing which I believe I would by
    no means understand. It seems too complex and very huge for me.
    I’m looking ahead for your next submit, I’ll attempt to get the hold of
    it!

  5. Hi to every , as I am truly keen of reading this webpage’s post to be updated regularly.

    It contains fastidious information.

  6. I do believe all the ideas you have offered on your post.
    They’re very convincing and can definitely work. Still, the
    posts are very quick for novices. Could you please lengthen them a little from next time?
    Thanks for the post.

  7. Simply wish to say your article is as surprising. The
    clarity on your post is just spectacular and that i can suppose you’re an expert
    on this subject. Fine with your permission allow me to clutch
    your RSS feed to keep updated with drawing close post.
    Thank you one million and please keep up the rewarding work.

  8. Your style is very unique in comparison to other people I have
    read stuff from. Thanks for posting when you’ve got the opportunity, Guess I will just book mark this web site.

  9. It’s really a nice and helpful piece of info. I’m glad that
    you simply shared this useful info with us.
    Please stay us informed like this. Thanks for sharing.

  10. Hey, I think your site might be having browser compatibility issues.
    When I look at your blog in Chrome, it looks fine but when opening in Internet Explorer, it
    has some overlapping. I just wanted to give you a quick heads up!
    Other then that, amazing blog!

  11. Can I just say what a relief to discover someone that actually
    knows what they’re discussing on the web. You definitely know how to bring a
    problem to light and make it important. More and more people must check this out and understand this side of your story.
    I was surprised that you’re not more popular given that you
    definitely possess the gift.

  12. I think that everything composed was actually very logical.
    However, what about this? what if you added a little content?
    I ain’t suggesting your content isn’t solid, but suppose you added a post title that makes people desire more?
    I mean Automation with Arduino Bluetooth Module – Devil Science is a little vanilla.
    You might look at Yahoo’s front page and note how they
    write post titles to grab people to click. You
    might add a related video or a related picture or two to grab people interested about
    what you’ve got to say. In my opinion, it might make your posts a little
    bit more interesting.

  13. Superb site you have here but I was curious about if
    you knew of any message boards that cover the
    same topics talked about here? I’d really like to be a part of community where I can get responses from other knowledgeable
    people that share the same interest. If you have
    any recommendations, please let me know. Bless
    you!

  14. I think what you posted was very reasonable. However, consider this, what if you added a little information? I mean, I
    don’t wish to tell you how to run your blog, but what if you added a headline that
    makes people desire more? I mean Automation with Arduino Bluetooth Module – Devil Science is a little plain. You ought to peek
    at Yahoo’s home page and see how they write post
    headlines to grab viewers interested. You might add a video or a pic or two to get people excited about what you’ve written. Just my opinion,
    it would make your website a little bit more interesting.

  15. Hello there I am so delighted I found your webpage, I really found you by
    mistake, while I was searching on Bing for something else,
    Anyways I am here now and would just like to say cheers for a tremendous post and
    a all round entertaining blog (I also love the theme/design), I don’t have time to read through it
    all at the moment but I have bookmarked it and also added in your RSS feeds,
    so when I have time I will be back to read a lot more,
    Please do keep up the fantastic work.

  16. Greate post. Keep posting such kind of information on your
    blog. Im really impressed by your site.
    Hey there, You’ve done a fantastic job. I will certainly digg it and individually recommend to my friends.
    I am confident they will be benefited from this web site.

  17. Nice post. I was checking constantly this blog and I’m impressed!
    Very useful info specifically the final phase 🙂 I care for
    such info a lot. I was looking for this particular information for a long time.

    Thank you and best of luck.

  18. What i don’t understood is if truth be told how you
    are not really a lot more well-appreciated than you may be
    now. You are so intelligent. You recognize thus significantly in relation to this topic, produced me for my
    part believe it from a lot of various angles. Its like men and women don’t seem to be fascinated unless
    it is something to accomplish with Girl gaga! Your own stuffs nice.
    At all times take care of it up!

  19. Good post. I learn something new and challenging on sites I stumbleupon everyday.

    It’s always exciting to read through articles from other writers and practice a little something from their sites.

  20. We’re a bunch of volunteers and starting a new scheme in our community.
    Your site offered us with valuable information to work on. You’ve done
    a formidable task and our entire neighborhood will
    be thankful to you.

  21. I take pleasure in, result in I found exactly what I used to be taking a
    look for. You’ve ended my four day lengthy hunt! God Bless
    you man. Have a great day. Bye

  22. Fantastic beat ! I would like to apprentice at the same time as you amend your site,
    how could i subscribe for a blog site? The account aided me a acceptable deal.
    I have been a little bit acquainted of this your broadcast offered
    bright clear concept

  23. I’m very pleased to uncover this web site. I need to to thank you for ones time for this fantastic
    read!! I definitely loved every little bit of it and i also have you book
    marked to look at new things in your blog.

  24. I got this site from my friend who told me about this website and now
    this time I am visiting this website and reading very informative
    articles or reviews here.

  25. Have you ever thought about creating an e-book or guest authoring on other blogs?
    I have a blog based upon on the same ideas you discuss and would really like
    to have you share some stories/information. I know my viewers would enjoy your work.

    If you are even remotely interested, feel free to shoot
    me an e-mail.

  26. You can definitely see your expertise within the article you write.

    The sector hopes for more passionate writers like you who aren’t afraid to say
    how they believe. Always follow your heart.

  27. We absolutely love your blog and find most of your post’s
    to be just what I’m looking for. Does one offer guest writers to write content for yourself?
    I wouldn’t mind creating a post or elaborating on a few of the subjects you write about here.
    Again, awesome site!

  28. Thanks a lot for sharing this with all of us you actually know what you’re talking about! Bookmarked. Kindly additionally consult with my website =). We could have a link alternate arrangement among us!

Leave a Reply

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