Arduino and Mobile Bluetooth Communication (messenger)

by adithya1543 in Circuits > Arduino

1478 Views, 3 Favorites, 0 Comments

Arduino and Mobile Bluetooth Communication (messenger)

pjimage.jpg
OIPDY5QZ631.jpg
OIP77T8BVYI.jpg
OIPNBURJ3GX.jpg
OIPG2XW4X9J.jpg
2018-07-28T09_21_56.450Z-2pcs-lot-DIY-HC-05-Master-Slave-Bluetooth-Module-Serial-Pass-Through-Bluetooth-Module%20(2).jpg

Communication is playing an important factor in our day-to-day life. But during these time of lockdown communication with our own family or intercommunication with people in our home sometimes need mobile phones. But use of mobile phones for short range communication is just mere waste of money. So this is my own Arduino project using Bluetooth module to communicate from phone to Arduino ,from Arduino to phone, like a Bluetooth messenger. Lets begin :)

Supplies

Things needed :

  • Arduino nano / UNO / MEGA.
  • Bluetooth module hc - 05.
  • android device.
  • jumper wire nos.4 (female to female)
  • android app (link given)

Video Reference

Arduino and Mobile Bluetooth Communication (messenger)

Pls watch this video for clear picture of my project

Like share and subscribe my channel for more projects.

Connections

20200424_094119.jpg

Bluetooth >> Arduino

  • vcc / 5v+ >> 5v
  • gnd >> gnd
  • RX >>D4
  • TX>>D3

Arduino Code

arduino-ide-screenshot.png

Coding is the most important thing in Arduino .

*Code not to be modified or claimed . code belongs to me*

The code can be uploaded in Arduino IDE.

The code can be downloaded here:

#include <SoftwareSerial.h>
SoftwareSerial bt(3,4); int LED =2; String btdata; String serialdata; void setup () { Serial.begin(9600); bt.begin(9600); Serial.println("Waiting for bluetooth connection.."); } void loop () { if(bt.available() != 0){ btdata=bt.readString(); Serial.println(btdata); } if(Serial.available() != 0){ serialdata = Serial.readString(); bt.print(serialdata); Serial.print(" "); Serial.print(serialdata); } }


Bluetooth Android App

20200424_095556.jpg

The android app is very important for communication of Arduino.Special features are installed in the android app I will explain it below. I have created an android app using MIT app inventor (quit easy to create).I have given the download link below:

Downloads

Connecting Android and Arduino

20200424_101109.jpg
20200424_101855.jpg
20200424_101932.jpg
20200424_101352.jpg
20200424_101715.jpg
20200424_101809.jpg
20200424_102008.jpg
  • connect the Arduino to computer and open Serial monitor.
  • Turn on bluetooth in your android device.
  • Open bluetooth settings and pair the device called HC-05, password (1234 or 0000).
  • Open the android app.
  • Click the Bluetooth button and select hc-05
  • now the Android is paired with Bluetooth module.

Video Link

This video shows a clear picture of my project please watch





https://youtu.be/VcL8ADuc2yE





Watch the video in youtube.



How to Communicate?

20200424_101800.jpg
20200424_101806.jpg
20200424_101818.jpg
20200424_101812.jpg
20200424_101816.jpg
  • After connecting to Bluetooth, type your text in the text box.
  • Open the Serial monitor in pc.
  • Type something in the textbox and enter send , you can view that the text entered by you will be displayed in Serial monitor.
  • Type something on the Serial monitor and press enter , you can view the the text in the android app.
  • The button voice command is used by android ,the speech given in it is converted into text and sent to Serial monitor.
  • The voice button is used to read the text sent by Arduino aloud (The text lasts for few seconds).
  • If needed you can replace the Serial monitor with LCD display module.

THANK YOU

OIPGXI5YUYV.jpg

Like and visit my other projects. Stay tuned for more projects.