This lesson, we’ll show how to get environment temperature data fromm DS18b20 temperature sensor from browser or smart phone
2 Hareware Preparation
UNO R3 board
Ethernet Shield W5100
3 Hardware connection
Connect the DS18B20 temperature sensor with UNO as following diagram:
4 Add new device
Log in Cayenne IOT platform, Add new…->Device/Widget
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.