IO Control With Arduino + Esp8266 (NodeMCU) and Ubidots
by mcmchris in Circuits > Arduino
3402 Views, 4 Favorites, 0 Comments
IO Control With Arduino + Esp8266 (NodeMCU) and Ubidots
![Portada Ubidots 2.jpg](/proxy/?url=https://content.instructables.com/F3J/PSL2/JQQYS4VN/F3JPSL2JQQYS4VN.jpg&filename=Portada Ubidots 2.jpg)
Here i show you in simple steps how to control any device over the internet using the Ubidots IoT platform and the NodeMCU WiFi module with the Arduino IDE.
Materials:
![2019.01.11-20.11_01.png](/proxy/?url=https://content.instructables.com/FD1/RQVH/JQQYS50X/FD1RQVHJQQYS50X.png&filename=2019.01.11-20.11_01.png)
-Protoboard.
-Esp8266 (NodeMCU).
-3x LED
-3x 330 ohm resistor.
-LDR
-6.8k ohm resistor
-some wires.
Mount:
![2019.01.11-20.12.png](/proxy/?url=https://content.instructables.com/FAP/2LDF/JQQYS50Y/FAP2LDFJQQYS50Y.png&filename=2019.01.11-20.12.png)
LED 1 goes to pin D0.
LED 2 goes to pin D2.
LED 3 goes to pin D4.
LDR goes to ADC pin (A0).
Upload the Code:
![2019.01.11-20.12_01.png](/proxy/?url=https://content.instructables.com/FGS/K3AK/JQQYS51N/FGSK3AKJQQYS51N.png&filename=2019.01.11-20.12_01.png)
After installing the Ubidots mqtt library and downloading the code.
Link here:
Ubidots Platform:
https://ubidots.com/?utm_source=youtube&utm_medium...
Fill your credentials.
-Ubidots Token.
-WiFi SSID.
-WiFi Password.
And upload the code!
Setting Up the Ubidots Platform:
![2019.01.11-20.13.png](/proxy/?url=https://content.instructables.com/FH3/I3XW/JQQYS520/FH3I3XWJQQYS520.png&filename=2019.01.11-20.13.png)
![2019.01.11-20.13_01.png](/proxy/?url=https://content.instructables.com/FOB/65VN/JQQYS52F/FOB65VNJQQYS52F.png&filename=2019.01.11-20.13_01.png)
![2019.01.11-20.13_03.png](/proxy/?url=https://content.instructables.com/F14/7VDD/JQQYS536/F147VDDJQQYS536.png&filename=2019.01.11-20.13_03.png)
![2019.01.11-20.13_02.png](/proxy/?url=https://content.instructables.com/FA6/G6T0/JQQYS534/FA6G6T0JQQYS534.png&filename=2019.01.11-20.13_02.png)
![2019.01.11-20.14.png](/proxy/?url=https://content.instructables.com/F4F/HXEB/JQQYS4W7/F4FHXEBJQQYS4W7.png&filename=2019.01.11-20.14.png)
![2019.01.11-20.14_01.png](/proxy/?url=https://content.instructables.com/FAM/4RPQ/JQQYS4WA/FAM4RPQJQQYS4WA.png&filename=2019.01.11-20.14_01.png)
![2019.01.11-20.14_02.png](/proxy/?url=https://content.instructables.com/F8Y/U8B2/JQQYS4WC/F8YU8B2JQQYS4WC.png&filename=2019.01.11-20.14_02.png)
![2019.01.11-20.14_03.png](/proxy/?url=https://content.instructables.com/FTI/MER0/JQQYS4WP/FTIMER0JQQYS4WP.png&filename=2019.01.11-20.14_03.png)
After the code is upload to the NodeMCU a device called IO shoul appear.
Then verify that it has the variables we need in it, if don't, create thems.
Then create a table, so you can configure the switches and the visualization graphics for the analog lectures.
And test it.
Testing It!
![Controlar todo con Arduino + Esp8266 | IoT con Ubidots | Entradas y salidas](/proxy/?url=https://content.instructables.com/FUV/UU9M/JQQYS4VH/FUVUU9MJQQYS4VH.jpg&filename=Controlar todo con Arduino + Esp8266 | IoT con Ubidots | Entradas y salidas)
![2019.01.11-20.11.png](/proxy/?url=https://content.instructables.com/F5S/KRDZ/JQQYS4ZU/F5SKRDZJQQYS4ZU.png&filename=2019.01.11-20.11.png)
![2019.01.11-20.14_04.png](/proxy/?url=https://content.instructables.com/FCY/CT48/JQQYS4XF/FCYCT48JQQYS4XF.png&filename=2019.01.11-20.14_04.png)
If you any question, be free.
Hope you to enjoy it.