How To Receive Arduino Sensor Data On Your Android
How To Receive Arduino Sensor Data On Your Android
Table of Contents
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
http://www.instructables.com/id/How-to-Receive-Arduino-Sensor-Data-on-Your-Android/
Intro: How to Receive Arduino Sensor-Data on your Android-Smartphone
In default the Arduino is not equipped with a display to visualize measuring-data, for example from your temperature or your pressure Sensor. If you want to get the data
shown you need a PC, printing the data to the console or mounting a display directly to the Arduino. So there is no simple way to WIRELESSLY visualize measuring-
data.
In this instructable i will show you, how to transfer measured Sensor-datain realtime from your Arduino-Mikrocontroller to your Android-Smartphone via Bluetooth.
-Arduino
-Android-Device
The Bluetooth-Module HC-05/HC-06 is communicating with the Arduino via the UART-Interface. Every message the Arduino wants to send, is first given to the Bluetooth-
Module, which sends the message wirelessly. To avoid problems with the UART, Arduino and Bluetooth-Module have to use the same baud-rate (in default 9600). It is
possible to change the baud-rate and the password (and many other things) of the HC-05/HC-06, but this is not part of this instructable.
Wiring HC-05:
Important Notices:
This Arduino-Code is written for Visualizating measurement data from a microcontroller via Bluetooth.
Before starting this application, the Bluetooth-Modul (HC-05) has to be coupled to the Smartphone.In the special case of the HC-05 the default PinCode for initiating the
Coupling-Process is "1234".
Wiring: GND of HC-05 to GND Arduino, VCC of HC-05 to VCC Arduino, TX HC-05 to Arduino Pin 10 (RX) RX HC-05 to Arduino Pin 11 (TX) */
void setup() {
BTserial.begin(9600); }
void loop() {
sensorValue = analogRead(sensorPin);
//(every Value has to be seperated through a comma (',') and the message has to
http://www.instructables.com/id/How-to-Receive-Arduino-Sensor-Data-on-Your-Android/
//end with a semikolon (';'))
BTserial.print("1234");
BTserial.print(",");
BTserial.print("1234.0");
BTserial.print(",");
BTserial.print("1234 hPa");
BTserial.print(",");
BTserial.print("500 ml/s");
BTserial.print(",");
BTserial.print(sensorValue);
BTserial.print(";");
delay(20);
https://play.google.com/store/apps/details?id=com....
Before using the app the Bluetooth-Module (HC-05/HC-06) has to be coupled to the Android in the system-preferences. In the special case of the HC-05 the default
PinCode for initiating the Coupling-Process is "1234".
If both devices a coupled, go to the app, pick the HC-05/HC-06 and click the red connect-button.
In the Arduino-Code you determine on your own which values you want to send to the Android-Device. Just change these lines and fit in your own values:
BTserial.print(sensorValue);
http://www.instructables.com/id/How-to-Receive-Arduino-Sensor-Data-on-Your-Android/
Related Instructables
Cheap 2-Way
Androino! Bluetooth
Pulse Sensor Control an
With Bluetooth Connection
SensoDuino: Arduino from Simple Mobile Simple Remote Between
and Arduino by Turn Your your Android Data Logging Data Plotting Arduino and PC
SaadAbd Android Phone device using a using pfodApp, using Android / by techbitar
into a Wireless cheap bluetooth Android and Arduino /
Sensors Hub for module. by Arduino by pfodApp by
Arduino by metanurb drmpf drmpf
techbitar
http://www.instructables.com/id/How-to-Receive-Arduino-Sensor-Data-on-Your-Android/
Advertisements
Comments
http://www.instructables.com/id/How-to-Receive-Arduino-Sensor-Data-on-Your-Android/