This time the test is performed on the well-known Cayenne platform.
What is Cayenne? It is a solution for building IoT applications based on platforms known as Arduino, Raspberry pi, ESP8266 and Serial devices, Wi-Fi, Lora devices, also includes a Mqtt API to connect any MQTT client which to use in this case, in This tutorial will explain the following:
This tutorial will take a tour of the Cayenne platform.
1- Create a Starter account in cayenne
2-Download libraries and examples
3- Modifying Arduino IDE Examples
Official website : cayenne mydevices
Tutorial Read LDR and Turn on a led from Cayenne
In this case you use a module ESP8266 NodeMCU:
1-We will control GPIO 04 (Led) in this case should make changes to the default example.
2-We will read the ADC 0 (LDR).
During tests it is denoted that cayenne allows to send values and the dashboard allows to preview the value and it facilitates when adding the associated widgets to that value.
For the control of the Led in Arduino IDE, the function log of cayenne by default is configured, which technically listens to the parameters of any channel that sends data from Cayenne to the ESP, in this case the widget button.
It takes the value of the channel assigned to the button and that value goes from String to int to activate the GPIO 04.
Full Downloads Bottom …
Dashboard Cayenne Mydevices
Note: The ESP8266 module must be connected to cayenne in order to create and display the dashboards.
Part 2 Full Test
In this videotutorial the following will be done:
1-Download Arduino IDE
2-Configuration and creation of Widgets
Pinout ESP8266 12E NodeMCU
1 LDR (Photoresistance)
2 Resistors of 1.5K
1 Diode 1N4001
Note: In this case the LDR for safety never exceeds 500mV to avoid damaging the ADC0.
- Resistors are Precision.