Combining Code from BMP180 and Thermistor LCD Output

Print Friendly, PDF & Email

https://youtu.be/V73NPS6-OYI
http://wmrx00.sourceforge.net/
https://youtu.be/DXGtw0zpOqY
After a lot of trial and error for the order that the 2 code pieces display their resp. data to LCD and serial monitor, I got both sensors to print to the LCD while keeping the BMP180 serial display:
CODE:

 
This had to be space compressed and abbreviated etc. to fit on the LCD, but can be seen that the print line has to be followed immediately by the respective sensor read line to get the next data value e.g .(bmp.readTemperature(), from the unit to follow the LCD text:
Serial.print(“TempBMP(C)= “);
Serial.print(bmp.readTemperature());
lcd.print(“TempBMP(C)= “);
lcd.print(bmp.readTemperature());
delay(2000);
lcd.clear();
In the SFE180 example code, altitude is set as the constant:
SFE_BMP180 pressure;
#define ALTITUDE 1540 // Altitude of SparkFun’s HQ in Boulder, CO. in meters so maybe this an be added…


In this code, you can add your current pressure, but still gives wrong Alt…?:
This is an example for the BMP085 Barometric Pressure & Temp Sensor
Designed specifically to work with the Adafruit BMP085 Breakout
—-> https://www.adafruit.com/products/391
These displays use I2C to communicate, 2 pins are required to
interface
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution