You would have seen weather application right? Like, when you open it you get to know the weather conditions like temperature, humidity, etc. Those readings are the average value of an a big area, so if you want to know the exact parameters related to your room or your fields, you can't just rely upon the weather application. For this purpose, let's move on to the making of weather station which is cost effective, and is also reliable and gives us the accurate value. It requires little bit of effort to plug and code. So let's get started.
- DHT11 with NodeMCU:
Pin 1 - 3.3V
Pin 2 - D4
Pin 3 - NC
Pin 4 - Gnd
- BMP180 with NodeMCU:
Vin - 3.3V
Gnd - Gnd
SCL - D1
SDA - D2
Before starting make sure, you have:
1. Installed the arduino ide in your system (and check for com port for NodeMCU).
2. Register yourself at http://thingsai.io.
3. Create and configure a new project.
For the IoT cloud, we are using ThingsCloud platform.
How to Use ThingsCloud Platform?Setting up cloud account on ThingsIO.AI
ThingsIO.AI is a IoT platform for developers. As a developer we understood the pain of not having a seamless place to connect, analyze and process device data. Many pure analytics platforms does not offer device management, which is core for the iot. That is the reason for ThingsIO.AI.
- Register the account in http://thingsai.io/
- You will get the notification for sign up.
- Go in your email address and verify your account.
- After that, sign in your account with your email address and password
- Now, you will be on the project dashboard. Click on the new project option.
- Click on the add a new device option. you will get device ID.
- Enter the device name and click on the create and configure device.
- You will be on your device dashboard.
Some basic points(1-5) for analysing data on ThingsIO.AI.
1. Track your device’s special parameters here. This can be set in device configuration(default to null).
2. You can see your real time and special parameter’s graph.
3. You can see your all data points.
4. You can see here your last 5 data points.
5. You can see here all the list of created graphs.
- Go in sample device code options and click on the NodeMCU.
- You will get the sample code from there copy and paste into your Arduino IDE.
Click on the “Send trial data” to send a trial data to the server:
Charting and Visualizations on ThingsIO.AIGo to your ThingsIO.AI account and go to your device.
Click on the configuration device option:
- You can set the special parameters (this is tracked on the device dashboard) & transform it accordingly and add new parameters (Parameters are updated automatically as you send them from your device).
- Click on the update device option:
- To create a graph for your device click on the “create graph option."
- Put the parameter that you want in your graph.
- And you will be having the graph of your data.
https://app.thingsai.io/#/device/all-devices/61121696126
Here you can see the visualization for this project.
After making the proper connections, dump your program to nodemcu, complete illustration of which is showing in below video.
Any questions let me know in comments.
That's all makers!
I hope you enjoy my work.
Ciao!
Comments
Please log in or sign up to comment.