Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Pressure Sensor BMP180 Interfacing with Arduino Uno
Just Do Electronics
March 06, 2020
Pressure Sensor BMP180 Interfacing with Arduino Uno
CODE :-
//Prateek Singh //www.prateeks.in #include
#include
#include
// initialize the library with the numbers of the interface pins LiquidCrystal lcd(13, 12, 11, 10, 9, 8);//RS,EN,D4,D5,D6,D7 char PRESSURESHOW[4];// initializing a character of size 4 for showing the result char TEMPARATURESHOW[4];// initializing a character of size 4 for showing the temparature result Adafruit_BMP085 bmp; void setup() { lcd.begin(16, 2); // Print a logo message to the LCD. lcd.print("Data Loading__]"); lcd.setCursor(0, 1); delay (2500); delay (2500); lcd.clear();//clear display // Print another message to the LCd Serial.begin(9600); if (!bmp.begin()) { Serial.println("ERROR");///if there is an error in communication while (1) {} } } void loop() { lcd.print("Pressure= "); // print name String PRESSUREVALUE = String(bmp.readPressure()); // convert the reading to a char array PRESSUREVALUE.toCharArray(PRESSURESHOW, 4); lcd.print(PRESSURESHOW); lcd.print("hPa "); lcd.setCursor(0, 1); //// set the cursor to column 0, line 1 lcd.print("Tempar.=");// print name String TEMPARATUREVALUE = String(bmp.readTemperature()); // convert the reading to a char array TEMPARATUREVALUE.toCharArray(TEMPARATURESHOW, 4); lcd.print(TEMPARATURESHOW); lcd.print("C "); lcd.setCursor(0, 0);// set the cursor to column 0, line1 delay(1000); }
0 Comments
Newer
Older
Build Your Own Gps Tracking System using Arduino
How To Make RFID & Keypad Based Door Lock
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Ultrasonic Sensor as a Counter with Arduino
OTP Based Door Lock Using Arduino And SIM800L
IoT Based Patient Health Monitoring System Using Blynk App
ESP32 Interfacing With LDR Sensor
MLX90614 Non-Contact Infrared Thermometer With Arduino
Nodemcu Interfacing With Em-18
ESP32 Led Blink With Push Button
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments