Skip to content

A firmware for NodeMCU device connected to a thingsboard server (raspberry PI 3) both running in a local network.

License

Notifications You must be signed in to change notification settings

Kike-Ramirez/tempSensorThingsBoard_NodeMCU

Repository files navigation

tempSensor_Thinger_NodeMCU

head A firmware for NodeMCU device connected to a thinger.io server (raspberry PI 3) both running in a local network.

Bill of Materials

Bill of Materials Hardware Required:

  1. NodeMCU v1 Board
  2. DHT22 Sensor
  3. LiPO Battery 2000mAh
  4. LiPO Charger module
  5. DuPont Female connectors

NodeMCU Firmware update

  1. Install Docker by following steps detailed in docker installation guide
  2. Download docker image for nodemcu:
sudo docker pull marcelstoer/nodemcu-build
  1. Build the firmware:
sudo docker run --rm -ti -v ~/samples/nodemcu/nodemcu-firmware:/opt/nodemcu-firmware marcelstoer/nodemcu-build
  1. Flash the firmware (change "XXXX" by your version number and include your full path):
sudo ./esptool.py -b 115200 write_flash --flash_mode dio --flash_size 4MB 0x0 ~/[PATH_TO_YOUR_PROJECT]/nodemcu-firmware/bin/nodemcu_integer_master_XXXX.bin --verify

NodeMCU Application Files Flash

  1. Copy all files to be uploaded to "luatool" folder.
cd lua
cp *.lua ../luatools/luatools
  1. Flash every file (check your USB Port using dmesg and change "ttyUSBX" to the correct value):
sudo ./luatool.py --port /dev/ttyUSBX -b 115200 --src config.lua --dest config.lua -v
sudo ./luatool.py --port /dev/ttyUSBX -b 115200 --src dht11.lua --dest dht11.lua -v
sudo ./luatool.py --port /dev/ttyUSBX -b 115200 --src init.lua --dest init.lua -v

thinger.io platform configuration

You can check details of a demo dashboard using 2 nodeMCU devices measuring temperature and humidity in two different rooms of a house HERE.

thinger.io dashboard

Hardware

NodeMCU

NodeMCU Pinout

DHT22 (Temperature - Humidity Sensor)

DHT22 Pinout

Schematics

NodeMCU+DHT22 Schematics

3D Printing

You can download all files in [Thingiverse](https://www.thingiverse.com/thing:2330811).

Box closure Box closure