meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
sensor:bmp_bme [2026/02/15 20:40] – created - external edit 127.0.0.1sensor:bmp_bme [2026/03/31 18:26] (current) – [GY-BMP280-3.3 Pinout] vamsan
Line 19: Line 19:
 ===== BME/BMP Modules ===== ===== BME/BMP Modules =====
  
-==== GY-68, BMP180 Temperature/Barometric Pressure Module ====+==== BMP180 Temperature/Barometric Pressure Module ====
 {{ :sensor:modul_gy68.png?150|GY-68}} {{ :sensor:modul_gy68.png?150|GY-68}}
 {{anchor:gy_68}}{{:sensor:t.png|Temperature measuring}}{{:sensor:p.png|Air-press measuring}} {{anchor:gy_68}}{{:sensor:t.png|Temperature measuring}}{{:sensor:p.png|Air-press measuring}}
  
-The GY-68 module is a breakout board that integrates the [[#bmp180|Bosch BMP180]] sensor to measure atmospheric pressure, temperature, and altitude. The two terms refer to different components of the same product for hobbyist use: the BMP180 is the sensing chip on the GY-68 printed-circuit board.+Another name for the **GY-68** module is a breakout board that integrates the [[#bmp180|Bosch BMP180]] sensor to measure atmospheric pressure, temperature, and altitude. The two terms refer to different components of the same product for hobbyist use: the BMP180 is the sensing chip on the GY-68 printed-circuit board.
  
-The GY-68 BMP180 sensor module is known for its high precision, low power consumption, and ease of use via the I2C interface, making it popular for various DIY and IoT projects.+The GY-68 BMP180 sensor module is known for its high precision, low power consumption, and ease of use via the I2C interface, making it popular for a wide range of DIY and IoT projects.
  
 ^Feature^Specification| ^Feature^Specification|
Line 39: Line 39:
 ^Calibration|Fully calibrated at the factory, and data is stored in internal E2PROM| ^Calibration|Fully calibrated at the factory, and data is stored in internal E2PROM|
  
-==== GY-BME280 Temperature/Humidity/Barometric Pressure modul ====+==== BME280 Temperature/Humidity/Barometric Pressure module ====
 {{ :sensor:modul_gy_bme280.png?150|GY-BME280}} {{ :sensor:modul_gy_bme280.png?150|GY-BME280}}
 {{anchor:gy_bme280}}{{:sensor:t.png|Temperature measuring}}{{:sensor:h.png|Humidity measuring}}{{:sensor:p.png|Air-press measuring}} {{anchor:gy_bme280}}{{:sensor:t.png|Temperature measuring}}{{:sensor:h.png|Humidity measuring}}{{:sensor:p.png|Air-press measuring}}
  
-The GY-BME280 is a sensor module that integrates the [[#bme280|Bosch BME280]] environmental sensor chip and measures temperature, humidity, and atmospheric pressure. It is an upgrade to the BMP280 and is widely used in hobbyist electronics and IoT projects for comprehensive environmental monitoring.+Another name, **GY-BME280**, is a sensor module that integrates the [[#bme280|Bosch BME280]] environmental sensor chip and measures temperature, humidity, and atmospheric pressure. It is an upgrade to the BMP280 and is widely used in hobbyist electronics and IoT projects for comprehensive environmental monitoring.
  
 The Bosch BME280 sensor features high precision and low power consumption, making it suitable for battery-powered systems. The GY-BME280 module often includes a voltage regulator and a logic-level converter, allowing it to operate with both 3.3V and 5V microcontrollers such as Arduino and Raspberry Pi. The Bosch BME280 sensor features high precision and low power consumption, making it suitable for battery-powered systems. The GY-BME280 module often includes a voltage regulator and a logic-level converter, allowing it to operate with both 3.3V and 5V microcontrollers such as Arduino and Raspberry Pi.
Line 60: Line 60:
 //*: To change the I²C address to 0x77, cut the trace between the middle and left copper pads with a sharp knife. Then add a solder blob between the middle and right copper pads to short them.// //*: To change the I²C address to 0x77, cut the trace between the middle and left copper pads with a sharp knife. Then add a solder blob between the middle and right copper pads to short them.//
  
-==== GY-BMP280-3.3 Temperature/Barometric Pressure modul ====+==== BMP280 (HW-611) Temperature/Barometric Pressure module ====
 {{ :sensor:gy_bm.png?150|GY-BMP280}} {{ :sensor:gy_bm.png?150|GY-BMP280}}
 {{anchor:gy_bmp280}}{{:sensor:t.png|Temperature measuring}}{{:sensor:p.png|Air-press measuring}}  {{anchor:gy_bmp280}}{{:sensor:t.png|Temperature measuring}}{{:sensor:p.png|Air-press measuring}} 
Line 94: Line 94:
  
 {{page>:tarhal}} {{page>:tarhal}}
 +
 +==== GY-BMP280/HW-611 Arduino code ====
 +<code c>
 +// include
 +#include <Wire.h>
 +#include <Adafruit_Sensor.h>
 +#include <Adafruit_BMP280.h> // BMP280/HW-611
 +
 +// variable
 +float bmp_280_temp;
 +float bmp_280_press;
 +bool bmp_280_ready;
 +String unitID = "abcd";
 +
 +// init
 +Adafruit_BMP280 bmp_280; // BMP280/HW-611
 +
 +// call block
 +void bmp_280_function () {
 +  bmp_280_temp = bmp_280.readTemperature();
 +  bmp_280_press = bmp_280.readPressure() / 100.0F;
 +  Serial.print("unitID: "); Serial.print(unitID); Serial.print("; bmp_280_temp: "); Serial.print(bmp_280_temp); Serial.println(" ; unit: C");
 +  Serial.print("unitID: "); Serial.print(unitID); Serial.print("; bmp_280_press: "); Serial.print(bmp_280_press); Serial.println(" ; unit: hPa");
 +}
 +
 +
 +void setup() {
 +  Serial.begin(115200);
 +    // unit works?
 +    bmp_280_ready = bmp_280.begin(0x76); 
 +    if (!bmp_280_ready) {
 +    Serial.println("BMP280/HW-611 Sensor not found");
 +    } else {
 + Serial.println("BMP280/HW-611 Sensor works");
 + }
 +  }
 +
 +void loop() {
 +  // call all units with 2 sec raster
 +  static unsigned long lastTime = 0;
 +  if (millis() - lastTime > 2000) {
 +    lastTime = millis();
 +    // units call, if works
 +    if (bmp_280_ready) {bmp_280_function ();}
 +  }
 +}
 +</code>
 ==== CJMCU-680 Temperature/Humidity/Barometric Pressure/Gas (VOC) Module ==== ==== CJMCU-680 Temperature/Humidity/Barometric Pressure/Gas (VOC) Module ====
 {{ :sensor:cjmcu_680_1.png?150|CJMCU-680}} {{ :sensor:cjmcu_680_1.png?150|CJMCU-680}}
Line 277: Line 324:
  
  
-===== I²C topics on lamaPLC =====+ ===== I²C topics on lamaPLC =====
 {{topic>i2c}} {{topic>i2c}}
  
Line 283: Line 330:
 \\ \\
  
-{{tag>BME280 BME680 BMP180 BMP280 Bosch temperature humidity pressure sensor arduino i2c communication CJMCU}}+{{tag>BME280 BME680 BMP180 BMP280 HW-611 HW611 Bosch temperature humidity pressure sensor arduino i2c communication CJMCU}}
  
 This page has been accessed for: Today: {{counter|today}}, Until now: {{counter|total}} This page has been accessed for: Today: {{counter|today}}, Until now: {{counter|total}}