![]() It executes only one time when the Arduino or Mega board is powered up. One more thing about the void setup function. Then I activated the Serial communication and I selected 9600 as the baud rate. As in this tutorial, I am using a variable resistor as the sensor so that’s why I set it as the input using the pinMode function. This is inside the void setup function that we tell the controller what are the input pins and what are the output pins. Then I defined a variable Vdata of the type integer, this variable will be used to store the value of the variable resistor.Īs you know my friends every Arduino and Mega program has at least two functions which are the void setup and void loop functions. On the third line, I defined a pin for the Variable Resistor which is connected with the Analog pin A0 of the Arduino. Pin number 2 is the Rx while Pin number 3 is the Tx. I defined a Serial Port with the name Blue on pin number 2 and pin number 3 of the Arduino. So that’s the reason I added the SoftwareSerial.h header file. You can always define other Serial Ports using the SoftwareSerial library. The Arduino’s default Serial Port should only be used for debugging purposes. As I always say never use these pins for communication with other devices. Arduino Bluetooth Module Programming:Īs you know my friends in Arduino we have only one Serial port which is available on pin number 0 and pin number 1. While the VCC and GND pins are connected with the Arduino’s 5v and GND. Pin number 2 and pin number 3 will be used as the Serial Port, which will be defined in the programming. The Bluetooth module Tx and Rx pins are connected with the Arduino’s pin number 2 and pin number 3. If you are using a Bluetooth for the first time then you can watch my getting started tutorial on the Bluetooth module, which completely explains how to change the name of the Bluetooth module and how to change the pairing code. On the left side, you can see a Bluetooth module, you can use HC-05 or HC-06 Bluetooth Module. While the other two legs of the variable resistor are connected with the Arduino’s 3.3v and GND. As you can see the middle leg of the variable resistor is connected with the Arduino’s Analog pin A0. This variable resistor can be easily replaced with any sensor you want. If you want to learn how to make a schematic and PCB then watch my tutorial.įor the demonstration purposes, I am using a variable resistor. This is a very basic circuit diagram designed in CadeSoft Eagle 9.1.0 version. HC-05 Bluetooth Module with Arduino Circuit Diagram: Because we can only design a good android application if we know exactly for what purpose we are making this application. My recommendation is first you should follow some basic tutorials and then you can resume from here.īefore we start the android app development, first of all, I would like to explain the circuit diagram and Arduino programming. Otherwise It can be really confusing for you. Before you follow this tutorial you should have some basic knowledge of how to use the Android studio. The Software used for the Android app developmentĪndroid studio is one of the most commonly used software used for android app development which includes designing and programming.I would appreciate your support in this way! I may make a commission if you buy the components through these links. Without any further delay, let’s get started!!! Amazon Links: Step by Step android cell phone App designing using Android Studio and finally.While in version 1 of the android cell phone application designing, I created an application to control an LED using only two buttons. This is version 2 of the Android cell phone application designing. This sensor monitoring application is designed using Android Studio. Later this variable resistor can be replaced with any sensor you want. For the best understanding, I am using a variable resistor as the sensor. In this tutorial, you will learn how to create your own android cell phone application for monitoring any Sensor using Arduino, HC-05 Bluetooth module and an Android cell Phone. Finally, I decided to share with you the knowledge, how to develop your own Android app to monitor any sensor which is connected with the Arduino. ![]() Due to a lot of requests from my subscribers and followers on my YouTube channel “Electronic Clinic” to explain how to create your own android application. I will share the links of all the projects in which I have used the android applications. ![]() How to Create Android App for Arduino Sensor Monitoring over Bluetooth- I have been using Android applications for monitoring Arduino sensors over Bluetooth.
0 Comments
Leave a Reply. |