Smoke Detectors are very useful in detecting smoke or fire in buildings, and so are the important safety parameters. It sensible to to flammable gas: Alcohol, and Methane etc. The voltage that the sensor outputs change according to the smoke/gas level that exists in the atmosphere. The sensor outputs a voltage that is proportional to the concentration of smoke/gas. In other words, the relationship between voltage and gas concentration is as following:
- The greater the gas concentration,the greater the output voltage
- The lower the gas concentration,the lower the output voltage
In this DIY Lesson, we’ll learn how to monitor the smoke detector remotely.
2 Hardware Preparation
|UNO R3 board||1|
|Ethernet Shield W5100||1|
|Gas sensor module||1|
3 Hardware connection
Connect the Gas detector sensor with UNO as following diagram:
|UNO Board||Gas detector sensor|
Log in Cayenne IOT platform, Add new…->Device/Widget
Click Analog Input, setting 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.
In your dashboard, click “Step 1:Sketch File”, the sample sketch will be displayed, in this example,we creat a new sketch, please download from:http://osoyoo.com/driver/smoke_sensor.txt
Copy and paste the sketch into Arduino IDE ,please remember to use your own authentication token. Upload to your Uno board, then click “Setp 2 :Add Sensor”, you will find the smoke sensors was added on your dashboad:
Once the smoke sensor detected any smoke the value will change.