🔹 Overview The BMP180 is a sensor that measures atmospheric pressure and temperature . It is commonly used in weather stations, altitude measurement, and IoT projects . In this tutorial, we will interface the BMP180 sensor with Raspberry Pi 3 and display the readings. 🛠️ Components Required ✔️ Raspberry Pi 3 ✔️ BMP180 Sensor ✔️ Breadboard & Jumper Wires 🔌 Circuit Diagram The BMP180 communicates with the Raspberry Pi using the I2C protocol . 🔗 BMP180 to Raspberry Pi Connections BMP180 Pin Connection VCC 3.3V (Raspberry Pi) GND GND SDA GPIO 2 (I2C SDA) SCL GPIO 3 (I2C SCL) 📜 Python Code to Read BMP180 Sensor Save the following Python script as bmp180_sensor.py and run it on Raspberry Pi. python Copy Edit import smbus import time # BMP180 Default Address BMP180_ADDR = 0x77 # Open I2C bus bus = smbus.SMBus( 1 ) def read_temperature (): bus.write_byte_data(BMP180_ADDR, 0xF4 , 0x2E ) time.sleep( 0.005 ) temp_msb = bus.read_byte_data...
|LEARN | EXPLORE | INNOVATE | I.O.T | A.I | ROBOTICS |