Introduction: 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.
Step 1: Software Required
a) Raspbian OS: This is the recommended os for raspberry pi. You can also installed other OS from third party. Raspbian OS is debian based OS. We can install it from noobs installer. you can Download here
b) Python idle: This is the software we get in raspbian os. For this project we have used python script.
c) Putty: We are using putty for remote access of Raspberry Pi.you can Download here
d) Win32DiskImager: This software is used to burn Raspbian Os on SD Card. you can Download here e) SDFormatter: This software is used to format memory card. you can Download here
Step 2: Component Used:
1) Raspberry Pi
2) DHT22 sensor
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 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.
Step 3: 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.
Step 4: Circut Diagram
Step 5: Code and Video
you can get the source code in our github page here is the link
And the whole project description is given in the above video
if you have any doubt feel free to comment us below So finally if all things will go well.
Definitely you will enjoy this project.
You can also mail us on email@example.com and if you want to learn more about these type of project then feel free to visit our youtube channel link
Thanks & Regards,
We have a be nice policy.
Please be positive and constructive.