Arduino IOT Lesson 6:Using DS18b20 to detect temperature remotely

This lesson, we’ll show how to get environment temperature data fromm DS18b20 temperature sensor from browser or smart phone

2 Hareware Preparation

Quantity

UNO R3 board

1

Ethernet Shield W5100

1

USB cable

1

DS18B20

1

Jumper wires

several

Breadboard

1

3 Hardware connection

Connect the DS18B20 temperature sensor with UNO as following diagram:

Arduino UNO

DS18B20

GND

–

5V

Middle

D2

S

4 Add new device

Log in Cayenne IOT platform, Add new…->Device/Widget

Choose :Sensors->”Temperature”

Choose DS18B20

Change the datasheet as followed:

Please note: If V1 pin was used by other widgets, you can select other pins. and change the VIRTUAL PIN in sketch to the pin number you have selected.

Click “Step 1:Sketch File”,the sample sketch will be displayed,copy and paste the sketch into Arduino IDE. The onewire and DallasTemperature are required to run the sketch, If you have not installed these libraries yet, you can installed them from Arduino IDE library manager

Choose the Board type Arduino Uno and correct Port, upload the sketch to Uno board, in your Cayenne dashboard click”Step 2 :Add Actuators” then you should see the DS18bB20 was added on your dashboard:

The HC-06 is a class 2 slave Bluetooth module designed for transparent wireless serial communication. Once it is paired to a master Bluetooth device such as PC, smart phones and tablet, its operation becomes transparent to the user.
Address:
E-mail:
Tel: