Giter VIP home page Giter VIP logo

kike-ramirez / tempsensorthingsboard_nodemcu Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 441.08 MB

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

License: MIT License

Lua 0.65% C++ 46.78% C 33.17% Processing 3.18% CMake 9.43% Makefile 6.46% Shell 0.34%
nodemcu lua dht22 thingsboard nodemcu-firmware esptool 3d-printing iot iot-application nodemcu-lua

tempsensorthingsboard_nodemcu's Introduction

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

tempsensorthingsboard_nodemcu's People

Contributors

kike-ramirez avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.