Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Adafruit LPS35HW: Examples, Pinouts, and Specs

Image of Adafruit LPS35HW
Cirkit Designer LogoDesign with Adafruit LPS35HW in Cirkit Designer

Introduction

The Adafruit LPS35HW (Part ID: 4258) is a high-precision digital barometric pressure sensor designed to measure atmospheric pressure and temperature. Manufactured by Adafruit, this sensor is built for applications requiring accurate environmental data, such as weather stations, altitude measurement, and environmental monitoring. It features an I2C interface for seamless integration with microcontrollers, making it an excellent choice for both hobbyists and professionals.

Explore Projects Built with Adafruit LPS35HW

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered Sensor Hub with Adafruit QT Py RP2040 and OLED Display
Image of 512: A project utilizing Adafruit LPS35HW in a practical application
This circuit features an Adafruit QT Py RP2040 microcontroller interfacing with an MPU-6050 accelerometer, an Adafruit APDS-9960 sensor, and a 0.96" OLED display via I2C communication. It is powered by a 3.7V LiPo battery and includes a green LED with a current-limiting resistor connected to an analog pin of the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Smart Light with Proximity Sensor and OLED Display using Adafruit QT Py RP2040
Image of lab: A project utilizing Adafruit LPS35HW in a practical application
This circuit is a portable, battery-powered system featuring an Adafruit QT Py RP2040 microcontroller that interfaces with an OLED display, a proximity sensor, an accelerometer, and an RGB LED strip. The system is powered by a lithium-ion battery with a step-up boost converter to provide 5V for the LED strip, and it includes a toggle switch for power control. The microcontroller communicates with the sensors and display via I2C.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Smart Sensor Hub with Adafruit QT Py RP2040
Image of wearable final: A project utilizing Adafruit LPS35HW in a practical application
This circuit features an Adafruit QT Py RP2040 microcontroller interfaced with an APDS9960 proximity sensor, an MPU6050 accelerometer and gyroscope, and an OLED display via I2C communication. It also includes a buzzer controlled by the microcontroller and is powered by a 3.7V LiPo battery with a toggle switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Wi-Fi Controlled Sensor and Display System with ESP8266 and MPU-6050
Image of Spider Hand Controller: A project utilizing Adafruit LPS35HW in a practical application
This circuit is a sensor and display system powered by a 3.7V LiPo battery with a boost converter. It uses an ESP8266 NodeMCU to read data from an MPU-6050 accelerometer/gyroscope and display information on a 0.96" OLED screen, while also controlling an RGB LED.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Adafruit LPS35HW

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of 512: A project utilizing Adafruit LPS35HW in a practical application
Battery-Powered Sensor Hub with Adafruit QT Py RP2040 and OLED Display
This circuit features an Adafruit QT Py RP2040 microcontroller interfacing with an MPU-6050 accelerometer, an Adafruit APDS-9960 sensor, and a 0.96" OLED display via I2C communication. It is powered by a 3.7V LiPo battery and includes a green LED with a current-limiting resistor connected to an analog pin of the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of lab: A project utilizing Adafruit LPS35HW in a practical application
Battery-Powered Smart Light with Proximity Sensor and OLED Display using Adafruit QT Py RP2040
This circuit is a portable, battery-powered system featuring an Adafruit QT Py RP2040 microcontroller that interfaces with an OLED display, a proximity sensor, an accelerometer, and an RGB LED strip. The system is powered by a lithium-ion battery with a step-up boost converter to provide 5V for the LED strip, and it includes a toggle switch for power control. The microcontroller communicates with the sensors and display via I2C.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of wearable final: A project utilizing Adafruit LPS35HW in a practical application
Battery-Powered Smart Sensor Hub with Adafruit QT Py RP2040
This circuit features an Adafruit QT Py RP2040 microcontroller interfaced with an APDS9960 proximity sensor, an MPU6050 accelerometer and gyroscope, and an OLED display via I2C communication. It also includes a buzzer controlled by the microcontroller and is powered by a 3.7V LiPo battery with a toggle switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Spider Hand Controller: A project utilizing Adafruit LPS35HW in a practical application
Battery-Powered Wi-Fi Controlled Sensor and Display System with ESP8266 and MPU-6050
This circuit is a sensor and display system powered by a 3.7V LiPo battery with a boost converter. It uses an ESP8266 NodeMCU to read data from an MPU-6050 accelerometer/gyroscope and display information on a 0.96" OLED screen, while also controlling an RGB LED.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Weather stations for real-time atmospheric pressure monitoring
  • Altitude measurement in drones, balloons, or navigation systems
  • Environmental monitoring for IoT devices
  • Indoor air quality and HVAC systems
  • Scientific experiments requiring precise pressure and temperature data

Technical Specifications

The Adafruit LPS35HW is a robust and versatile sensor with the following key specifications:

Parameter Value
Operating Voltage 1.7V to 3.6V
Communication Interface I2C (default address: 0x5D) or SPI
Pressure Range 260 hPa to 1260 hPa
Pressure Accuracy ±0.5 hPa
Temperature Range -40°C to +85°C
Temperature Accuracy ±2°C
Output Data Rate (ODR) Up to 75 Hz
Power Consumption 4 µA (low-power mode)
Dimensions 2.5mm x 2.5mm x 0.9mm

Pin Configuration

The Adafruit LPS35HW breakout board includes the following pins:

Pin Name Description
VIN Power supply input (3.3V or 5V compatible)
GND Ground
SCL I2C clock line
SDA I2C data line
CS Chip select for SPI (leave unconnected for I2C)
SDO I2C address selection or SPI data output

Usage Instructions

Connecting the LPS35HW to an Arduino UNO

To use the Adafruit LPS35HW with an Arduino UNO, follow these steps:

  1. Wiring:

    • Connect the VIN pin of the sensor to the 5V pin on the Arduino.
    • Connect the GND pin of the sensor to the GND pin on the Arduino.
    • Connect the SCL pin of the sensor to the A5 pin on the Arduino (I2C clock).
    • Connect the SDA pin of the sensor to the A4 pin on the Arduino (I2C data).
  2. Install the Adafruit LPS35HW Library:

    • Open the Arduino IDE.
    • Go to Sketch > Include Library > Manage Libraries.
    • Search for "Adafruit LPS35HW" and install the library.
  3. Example Code: Use the following example code to read pressure and temperature data from the sensor:

    #include <Wire.h>
    #include <Adafruit_LPS35HW.h>
    
    // Create an instance of the LPS35HW sensor
    Adafruit_LPS35HW lps;
    
    void setup() {
      Serial.begin(115200);
      while (!Serial) {
        delay(10); // Wait for Serial Monitor to open
      }
    
      Serial.println("Adafruit LPS35HW Test");
    
      // Initialize the sensor
      if (!lps.begin_I2C()) {
        Serial.println("Failed to find LPS35HW sensor!");
        while (1) {
          delay(10); // Halt if sensor is not detected
        }
      }
    
      Serial.println("LPS35HW sensor initialized successfully!");
    }
    
    void loop() {
      // Read pressure in hPa
      float pressure = lps.readPressure();
      // Read temperature in °C
      float temperature = lps.readTemperature();
    
      // Print the readings to the Serial Monitor
      Serial.print("Pressure: ");
      Serial.print(pressure);
      Serial.println(" hPa");
    
      Serial.print("Temperature: ");
      Serial.print(temperature);
      Serial.println(" °C");
    
      delay(1000); // Wait 1 second before the next reading
    }
    

Important Considerations:

  • Ensure the I2C pull-up resistors are enabled on the breakout board (default configuration).
  • The sensor operates at 3.3V logic levels. If using a 5V microcontroller, ensure the breakout board's level shifters are enabled.
  • Avoid exposing the sensor to water or extreme environmental conditions beyond its specified range.

Troubleshooting and FAQs

Common Issues and Solutions:

  1. Sensor Not Detected:

    • Ensure the wiring is correct and matches the pin configuration.
    • Verify the I2C address (default: 0x5D). If another device shares the same address, modify the SDO pin connection to change the address.
  2. Incorrect Readings:

    • Check for loose connections or poor solder joints.
    • Ensure the sensor is not exposed to rapid temperature changes or vibrations.
  3. Arduino Code Compilation Errors:

    • Confirm that the Adafruit LPS35HW library is installed correctly.
    • Ensure the Arduino IDE is updated to the latest version.

FAQs:

Q: Can I use the LPS35HW with a Raspberry Pi?
A: Yes, the LPS35HW is compatible with Raspberry Pi. Use the I2C interface and appropriate Python libraries, such as Adafruit_CircuitPython_LPS35HW.

Q: How do I change the I2C address?
A: Connect the SDO pin to GND to set the I2C address to 0x5C. Leave it unconnected or pull it high for the default address 0x5D.

Q: What is the maximum cable length for I2C communication?
A: The maximum cable length depends on the pull-up resistor values and the I2C clock speed. For standard setups, keep the cable length under 1 meter to ensure reliable communication.

By following this documentation, you can effectively integrate the Adafruit LPS35HW into your projects and achieve accurate pressure and temperature measurements.