meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| sensor:bmp_bme [2026/02/15 20:40] – created - external edit 127.0.0.1 | sensor: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/ |
| {{ : | {{ : | ||
| {{anchor: | {{anchor: | ||
| - | The GY-68 module is a breakout board that integrates the [[# | + | Another name for the **GY-68** module is a breakout board that integrates the [[# |
| - | The GY-68 BMP180 sensor module is known for its high precision, low power consumption, | + | The GY-68 BMP180 sensor module is known for its high precision, low power consumption, |
| ^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/ | + | ==== BME280 Temperature/ |
| {{ : | {{ : | ||
| {{anchor: | {{anchor: | ||
| - | The GY-BME280 is a sensor module that integrates the [[# | + | Another name, **GY-BME280**, is a sensor module that integrates the [[# |
| The Bosch BME280 sensor features high precision and low power consumption, | The Bosch BME280 sensor features high precision and low power consumption, | ||
| 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/ | + | ==== BMP280 |
| {{ : | {{ : | ||
| {{anchor: | {{anchor: | ||
| Line 94: | Line 94: | ||
| {{page>: | {{page>: | ||
| + | |||
| + | ==== GY-BMP280/ | ||
| + | <code c> | ||
| + | // include | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | // variable | ||
| + | float bmp_280_temp; | ||
| + | float bmp_280_press; | ||
| + | bool bmp_280_ready; | ||
| + | String unitID = " | ||
| + | |||
| + | // init | ||
| + | Adafruit_BMP280 bmp_280; // BMP280/ | ||
| + | |||
| + | // call block | ||
| + | void bmp_280_function () { | ||
| + | bmp_280_temp = bmp_280.readTemperature(); | ||
| + | bmp_280_press = bmp_280.readPressure() / 100.0F; | ||
| + | Serial.print(" | ||
| + | Serial.print(" | ||
| + | } | ||
| + | |||
| + | |||
| + | void setup() { | ||
| + | Serial.begin(115200); | ||
| + | // unit works? | ||
| + | bmp_280_ready = bmp_280.begin(0x76); | ||
| + | if (!bmp_280_ready) { | ||
| + | Serial.println(" | ||
| + | } else { | ||
| + | Serial.println(" | ||
| + | } | ||
| + | } | ||
| + | |||
| + | 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 ();} | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| ==== CJMCU-680 Temperature/ | ==== CJMCU-680 Temperature/ | ||
| {{ : | {{ : | ||
| Line 277: | Line 324: | ||
| - | ===== I²C topics on lamaPLC ===== | + | ===== I²C topics on lamaPLC ===== |
| {{topic> | {{topic> | ||
| Line 283: | Line 330: | ||
| \\ | \\ | ||
| - | {{tag> | + | {{tag> |
| This page has been accessed for: Today: {{counter|today}}, | This page has been accessed for: Today: {{counter|today}}, | ||