Home Temperature and Pressure on your phone with NodeMCU, BMP180, IFTTT and Numerous app

Luigi Sirito
Mixing IoT
Published in
2 min readDec 13, 2015

Recently I built a simple sensor reader with a NodeMCU (ESP8266) and Bosch BMP180, both bought on AliExpress. Here you find the NodeMCU and here you find the BMP180 I bought.

How to?

Firmware

First, you need to flash the firmware to NodeMCU, a light one that you can build on this site, because the library of BMP180 has some problem with memory. If you want you can use with ESP8266Flasher this firmware(nodemcu-master-9-modules-2015–12–06–15–30–14-float.bin) I built the 6th of December.

Connection of pins

Connect the 3v3 pin of BMP180 to the 3v3 pin of NodeMCU (it’s 5v tollerant, but I didn’t try it), connect the ground, and use D2 for sda and D3 for scl.

Script

Flashed the firmware open either LUALoader or ESPlorer and flash BMP180.lua, the library, and init.lua, the script, to the NodeMCU: you can download here bmp180.lua and init.lua. The BMP180 library is the javierjanez library you can find on GitHub.

Here you find the simple Fritzing project.

The script read the pressure and the temperature every 15 seconds and send them to the Maker Channel of IFTTT, that you can set up at this link, just add your Maker Event and your key to the script.

Originally published at luigi.space.

--

--