Ever wondered how cool it could be, if you could design your own altitude measuring unit for UAV and space exploration projects??? Well stop thinking and start getting your hand dirty, because this tutorial covers all about it.
We'll be designing our own altitude measuring unit using the Adafruit's BMP180 pressure and temperature sensor interfaced through the I2C protocol in the ESP8266 NodeMCU board.
To make things more exciting we'll be using the thingsai.io online platform to build it as an IoT project and use it for visualizing the data over the cloud services, with real time stamps, so you can know exactly at what time,where your project is heading at.
Hardware Pictures:NodeMCU is a LUA-based interactive firmware for Espressif ESP8622 Wi-Fi SoC, as well as an open source hardware board that contrary to the $3 ESP8266 Wi-Fi modules includes a CP2102 TTL to USB chip for programming and debugging, is breadboard-friendly, and can simply be powered via its micro USB port.
Power: 5V via micro USB port
The pinout for the esp8266 nodemcu board is displayed below:
Link to download the Adafruit's library to setup the bmp_180 Sensor :
https://learn.adafruit.com/bmp085/using-the-bmp085
Link to understanding how pressure and temperature relates to altitude:
https://en.wikipedia.org/wiki/Barometric_formula
Here's a video to help you understand what I2C protocol basically is:
https://www.youtube.com/watch?v=qeJN_80CiMU&t=4s
How to ConnectESP8266 pins---------------------------------------------> bmp180 pins
3.3 V ---------------------------------------------------------> Vin
Gnd------------------------------------------------------------->Gnd
D1----------------------------------------------------------------->SCL
D2----------------------------------------------------------------->SDA
Follow to video tutorial to help you setting up the IoT cloud for real time data visualization:
.
Comments