Day 2, Skip Lua, lets try Arduino IDE and some sensors on nodemcu

After reading about lua programming language and its downturn in mcu (bugs and lack of space and code libraries) and after a clear sign from Benrnhard, i decided to switch to the Arduino IDE and its C libraries.

So let me try to setup a temperature/humidity sensor today….

 

so far so good,

  1. installed the arduino ide here https://www.arduino.cc/en/Main/Software
  2. Went to File -> Preferences -> Additional Boards Manager URLS, added the link http://arduino.esp8266.com/stable/package_esp8266com_index.json now search for it and waaaaaaiiiit (5-10 min) for it to download and install, now u can choose it from the Board menu.
  3. installed the DHT11 sensor and used the File-> examples -> DHT sensor library -> DHTtester

 

adjusted some lines with the sensor type and now its working.

Next step-> using an android APP to read the data

 

 

 

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.