Antares offers an IoT platform specifically designed for any Internet of Things (IoT) projects. The platform is developed by Telkom Indonesia to support the integration of data from sensors and actuators on the Internet.
This article will present a step by step example how to upload analog value of a potentiometer and DHT11 (temperature & humidity sensor) from ESP8266 NodeMCU to Antares IoT platform. Watch video below for its demonstration, then follow these instructions to start building your project with ESP8266 NodeMCU and Antares.
1. What You Need π
To build this project, you will need the following items:
- 1 ESP8266 NodeMCU board
- 1 breadboard
- 1 potentiometer
- 1 DHT11 sensor
- some jumper wires
- Arduino IDE (download here)
- Antares ESP8266 library (download here)
Gather your parts then follow the schematics below.
- Create Antares Application & DeviceSignup/login to Antares then go to Applications menu, and click +Add Application button to create a project. Fill out the forms then click +Add Device button to create your virtual device on Antares.Please remember your application & device name, we'll use it later!
- Get Antares Access KeyNow go to your Antares Account, grab your access key, and you're Done!
- First you need to install ESP8266 platform on Arduino IDE, follow these instructions: click here.
- Install manually Antares library for ESP8266 (download here). Download, extract & copy its files to C:\...\Documents\Arduino\libraries. In my case, I have to deactivate WiFiClient library from Antares library. Simply open AntaresESPHTTP.h file, then delete/comment this line:
#include <WiFiClient.h>
- Open your Arduino IDE, then copy sketch below to your Arduino IDE. Make sure you have chosen the right option for Board and Port under Tools menu, then upload to your NodeMCU board.
Now you can monitor your potentiometer & DHT11 sensor value every 10 seconds on Antares dashboard. You can also create some widgets under Widgets menu to visualize the data. For more information about Antares, read its full documentation: click here.
Comments