fbpx
Connect your Magicbit to ThingSpeak
ThingSpeak Project

Connect your Magicbit to ThingSpeak

Send data from sensors connected to magicbit which we can display visually on thingspeak.

Components Required

What is ThingSpeak?

ThingSpeak is an open-source server-side platform that allows you to monitor and control IoT devices. It is free for both personal and commercial usage and you can deploy it anywhere. If this is your first experience with the platform we recommend to review Learn more about ThingSpeak page.

Learn About ThingSpeak

Story

ThingSpeak is an open-source server-side platform that allows you to monitor and control IoT devices. It is free for both personal and commercial usage and you can deploy it anywhere.

This sample application will allow you to display humidity/temperature data from DHT11 sensor using your magicbit device and ThingSpeak web UI.

The application that is running on Magicbit device is written using ThingSpeak Arduino SDK which is quite simple and easy to understand.

Once you complete this sample/tutorial, you will see your sensor data on the following dashboard.

Connect your Magicbit to ThingSpeak 2

Visit the ThingSpeak official page and click on Get Started For Free to get signed up for a trial period.

Connect your Magicbit to ThingSpeak 3

After Signing in On the Left Side, you will see My Channels. Click on New Channel Button and add a new channel.

Connect your Magicbit to ThingSpeak 5
After creating the channel, you can see the two empty fields as below and customize the graph as your preference.
Connect your Magicbit to ThingSpeak 6
Get Api key and Channel ID as follows.
Connect your Magicbit to ThingSpeak 7
Connect your magic bit with DHT11 module as follows to pin 33.
Connect your Magicbit to ThingSpeak 8
In the Arduino IDE, install the following library for ThingSpeak.
Connect your Magicbit to ThingSpeak 9
Note: You need to edit following constants and variables in the secrets.h header file :
SECRET_SSID, SECRET_PASS, SECRET_CH_ID, SECRET_WRITE_APIKEY.
Find the header file with example arduino code in attachments; inside the Thingspeak_Magicbit.rar.

Uploading the code

Follow the steps in the image to upload the demo code to Magicbit.

Connect your Magicbit to ThingSpeak 10

Data Visualisation

In live-demo server:

If the code is uploaded correctly, As a result, you will see a time-series chart displaying latest values of “temperature” and “humidity” in 2 fields of the created channel as in below image.

Connect your Magicbit to ThingSpeak 11

Download Code from here.

Related Posts
Leave a Reply

Your email address will not be published.Required fields are marked *