Temperature & humidity monitoring is very important factor in our daily life, especially in business, and more importantly if we want to monitor the remote places/moving assets. So I made this solution using Hologram Nova 3G Modem and Raspberry Pi. Thanks to benstr (Hologram) for sending me the complete Pi kit, so today I am able to present this project to all of you guys.
When firstly I see the hologram, I deal like as an ordinary sim card but when I study it in more details it's not an ordinary platform it have a lot of features but most features I like are below.
- First thing that i like about this platform is providing global connectivity to your devices.
- Second thing is secure data transmission from your device to hologram cloud and next to your cloud.
- Third is route you can send your data to Amazon, Slack, Email, SMS and generally to any platform which support REST API via web-hooks.
Well you guys will also understand when you deploy your solutions/prototype with hologram. Now we need to focus on our project, collect the above mentioned board & sensor. Follow this tutorial to setup your sim card.
Hardware Required:
1x Raspberry Pi Model B+ Purchase From Amazon
1x DHT11 Module Purchase From Amazon
1x Bread Board Purchase From Amazon
3x Jumper Wires Purchase From Amazon
1x Nova Hologram USB Modem Purchase From Hologram
Setup:Before we move to next first update your Raspberry Pi repo and Python version. and follow this link to install Hologram SDK and hologram utils at your Raspberry Pi https://hologram.io/docs/guide/nova/developer-tools/
Hardware Setup:Below is the DHT11 Module & Simple DHT11 Sensor Pinout Diagram. In this project I am going to use DHT11 Module but my favorite sensor is DHT22.
Follow the below diagram to connect DHT11 module with Raspberry Pi.
Every thing has been setup. Finally follow this link to activate your hologram sim and insert into Nova modem. https://hologram.io/docs/guide/connect/connect-device/ and connect your nova modem to Raspberry Pi.
Code:Download the attached code and save it to an appropriate directory at pi dht-hologram.py name and run the following command at terminal.
Note: more your terminal current working directory to that directory where you place the code.
python dht-hologram.py
Hologram Dashboard:After running the code we need to view our data. Open dashboard.hologram.io and click on your device.
After clicking on device. you will get the stats of your device like how much data consumed, last data sent, network carrier and etc. To view your device data click on "All Activity" link which is at bottom.
From there you can view your device data in raw format.
Hologram provides Routes to send the data to Amazon AWS Server, Web Hooks, Slack, Email, SMS and etc. I will explore these options in next projects. If you have any query in this project you can message me.
Usage:- Remote warehouses/farm house monitoring
- Vehicle temperature & humidity monitoring specially food cargo/medicine/chemical containers, etc.
- Outdoor stations monitoring
Comments