Raspberry
Pi Sending Dht22 Sensor Data to Thingspeak:
In this project we are going to interface dht22 sensor
to raspberry pi. In this we are going to explain you about how we can get
sensor data in cloud. Here we are using thingspeak as a cloud for getting
sensor data.
Component
Used:
Raspberry
Pi:s
This is the latest version of raspberry pi. In this we
have inbuilt Bluetooth and wi-fi, unlike previously we have to use Wi-Fi dongle
in one of its usb port. There are total 40 pins in RPI3. Of the 40 pins, 26 are
GPIO pins and the others are power or ground pins (plus two ID EEPROM pins.)
There are 4 USB Port and 1 Ethernet slot, one HDMI port, 1 audio output port
and 1 micro usb port and also many other things you can see the diagram on
right side. And also we have one micro sd card slot wherein we have to
installed the recommended Operating system on micro sd card. There are two ways
to interact with your raspberry pi. Either you can interact directly through
HDMI port by connecting HDMI to VGA cable, and keyboard and mouse or else you
can interact from any system through SSH.
DHT22
sensor:
DHT22 capacitive humidity sensing digital temperature
and humidity
module is one that contains the compound has been
calibrated digital signal output of the temperature and humidity sensors.
Application of a dedicated digital modules collection technology and the
temperature and humidity sensing technology, to ensure that the product has
high reliability and excellent long-term stability.
Thingspeak
Working:
So till now you got the software and hardware required
in this project. So Now It's time for thingspeak. So what is thingspeak:->
ThingSpeak is an open source Internet of Things (IoT) application and API to
store and retrieve data from things using the HTTP protocol over the Internet
or via a Local Area Network.
So for getting the graph and sensor data in thingspeak
first you have to create an account in thingspeak. After creating the account
now just sign in the account. Now you need to create a channel so click on New
Channels shown in above figure. now give name to your channel and fill some of
the things like description and field1 and field2. We can make up to 8 field
for a single channel. Here we need only 2 channels as we are getting temperature
and humidity from dht22 sensor.
Now after creating the channel you need to go to API
Keys and get the key of that channel this key you will use in your python
script.
Circut
Diagram:
0 comments:
Post a Comment
if you have any doubt please let me know