Pressure Sensor HS-S45P

Pressure Sensor HS-S45P

1. Introduction

The BMP180 barometric pressure sensor is a device or apparatus that can sense gas pressure and convert it into usable output signals according to a certain regularity. Its basic function is to accurately measure the pressure value of the gas and convert the pressure signal into electrical signals and other signal forms that are convenient for processing and transmission, providing a basis for subsequent display, control, and data processing.

2. Schematic

Pressure sensor - HS-S45P schematicClick to view

Module Parameters

Pin Name

description

G

GND (Negative Power Input)

V

VCC (Positive Power Input)

L

Clock Signal Communication Pin

A

Bidirectional Data Communication Pin

  • Supply voltage: 3.3V-5V

  • Connection method: PH2.0 4P terminal wire

  • Installation method: screw

4, Circuit Board Size

5 of Arduino IDE example program

Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Arduino IDE Library Download and Import Tutorial:
Click to view

Example program (UNO development board):

#include <Wire.h>
#include <Adafruit_BMP085.h>

Adafruit_BMP085 BMP;

void setup(){
  Serial.begin(9600);
  if (!BMP.begin()) {
    Serial.println("Could not find a valid BMP085/BMP180 sensor, check wiring!");
    while (true) {
    }

  }
}

void loop(){
  Serial.print("Temperature = ");
  Serial.print(BMP.readTemperature());
  Serial.println(" โ„ƒ");
  Serial.print("Pressure = ");
  Serial.print(BMP.readPressure());
  Serial.println(" Pa");
  Serial.print("Approx altitude = ");
  Serial.print(BMP.readAltitude(101325));
  Serial.println(" m");
  Serial.println("");
  delay(1000);

}

6, ESP32 Python Example (for Mixly IDE/Misashi)

Choose the development board Python ESP32 [ESP32 Generic(4MB)] and upload in code mode

Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Download and import tutorial for Mixly IDE ESP32 library:
Click to view

Example program (ESP32-Python):

ๅพ…ๆ›ดๆ–ฐ...

7, Mixly example program (graphical language)

Example Program (UNO Development Board):Click to download
Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Download and import tutorial of Mixly IDE Arduino library:Click to view

Example Program (ESP32 Development Board):Click to download
Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Download and import tutorial for Mixly IDE ESP32 library:
Click to view

8. Setting up the Test Environment

Arduino UNO Test Environment Setup

Prepare Components:

  • UNO-R3 Development Board *1

  • UNO-R3 Expansion Board *1

  • USB TYPE-C DATA CABLE *1

  • HS-S45P pressure sensor*1

  • PH2.0 4P Double Head Terminal Line *1

Circuit wiring diagram:

ESP32 Test Environment Setup

Prepare Components:Pending update...

Circuit wiring diagram:Pending update...

9, Video tutorial

Arduino UNO video tutorial:Click to view

ESP32 Python Video Tutorial:Click to view

10, Test results

Arduino UNO test results:

Enter the code, and then the computer serial port displays temperature and atmospheric pressure.

ESP32 Test Results:

Pending update...