HanG321 Blog

Arduino temperature and bluetooth wireless communication

I have brought a arduino kit in 2016 but haven’t played with it. Finally have some taste on it.

Install sketch – official software from arduino

Add “Adafruit unified sensor” & SimpleDHT library in sketch, then create a new file.

Code

Verify code, then connect the Ardunio board, and upload the file.

If it failed to upload, disconnect the bluetooth module. sending/receiving bluetooth data may interrupt the code upload.

 

Now let’s see the value from receiver via bluetooth, the simplest way to connect a android phone. Pair it up by bluetooth, install a terminal app, e.g. Bluetooth Terminal HC-05. (blueTerm does not work for my old GS3)

value will display on screen:

Connections:

 

reference:

Arduino Bluetooth Wireless Communication

http://www.instructables.com/id/ArduinoAndroid-Bluetooth-HC-06-Module-DHT11-Temp-M/