3-in-1 breakout-levy Arduinoille, joka mittaa lämpötilaa, ilmankosteutta ja ilmanpainetta.
SKU: OT712-D65 Tuotenumero: NB115 EAN: 8944452371856 Sijainti: D06.05
Vaihtoehto
Digitaalinen barometri paineanturi moduuli BMP280
€ 1,40
Katso tämä vaihtoehto
Näin kytket 3-in-1 anturi Lämpötila Ilmankosteus ja Ilmanpaine | 5V | I2C | Bosch BME280:n Arduino UNOon tai ESP32:een, mukana esimerkkisketsi, jonka voit ladata heti.
Tämä projekti lukee lämpötilaa, suhteellista kosteutta ja ilmanpainetta BME280-anturin avulla I2C:n yli. Ympäristölukemat tulostetaan Serial Monitoriin kahden sekunnin välein. Kytke anturi suoraan Arduino Uno:n 5V-, GND- ja I2C-pinneihin.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : BME280 Temperature, Humidity & Pressure Sensor
* Board : Arduino UNO (arduino:avr:uno)
* Parts : Bosch BME280 5V 3-in-1 sensor Temperature Humidity and Air Pressure
* Libraries : Adafruit BME280 Library 2.3.0, Adafruit Unified Sensor 1.1.15
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
Adafruit_BME280 bme;
void setup() {
Serial.begin(115200);
while (!Serial) {
delay(10);
}
Serial.println(F("--- BME280 Sensor Test ---"));
// Try I2C address 0x76 first, fallback to 0x77 if needed
if (!bme.begin(0x76) && !bme.begin(0x77)) {
Serial.println(F("Could not find a valid BME280 sensor! Check wiring."));
while (1) {
delay(100);
}
}
Serial.println(F("BME280 sensor initialized successfully."));
}
void loop() {
float temperature = bme.readTemperature();
float humidity = bme.readHumidity();
float pressure = bme.readPressure() / 100.0F; // Convert Pa to hPa
Serial.print(F("Temperature: "));
Serial.print(temperature, 2);
Serial.println(F(" °C"));
Serial.print(F("Humidity: "));
Serial.print(humidity, 2);
Serial.println(F(" %"));
Serial.print(F("Pressure: "));
Serial.print(pressure, 2);
Serial.println(F(" hPa"));
Serial.println(F("---------------------------"));
delay(2000);
}
Tarvittavat kirjastot: Adafruit BME280 Library 2.3.0, Adafruit Unified Sensor 1.1.15
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Reads ambient temperature, relative humidity, and barometric pressure from the Bosch BME280 sensor via I2C. The readings are output to the Serial Monitor every two seconds. Powered directly from the ESP32 3.3V pin to ensure safe I2C voltage levels.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : BME280 Weather Sensor on ESP32
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : Bosch BME280 5V 3-in-1 sensor Temperature Humidity and Air Pressure
* Libraries : Adafruit BME280 Library 2.3.0, Adafruit Unified Sensor 1.1.15
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
Adafruit_BME280 bme;
void setup() {
Serial.begin(115200);
while (!Serial) delay(10);
Serial.println("BME280 Sensor Test");
// Default I2C address is 0x76 or 0x77
if (!bme.begin(0x76) && !bme.begin(0x77)) {
Serial.println("Could not find a valid BME280 sensor, check wiring!");
while (1) delay(10);
}
Serial.println("BME280 sensor initialized successfully.");
}
void loop() {
float temperature = bme.readTemperature();
float humidity = bme.readHumidity();
float pressure = bme.readPressure() / 100.0F; // hPa
Serial.print("Temperature: ");
Serial.print(temperature, 1);
Serial.print(" °C | Humidity: ");
Serial.print(humidity, 1);
Serial.print(" % | Pressure: ");
Serial.print(pressure, 1);
Serial.println(" hPa");
delay(2000);
}
Tarvittavat kirjastot: Adafruit BME280 Library 2.3.0, Adafruit Unified Sensor 1.1.15
Wiring diagram and example code generated by Codey.online — https://www.codey.online
HUOMIO 5V versio. Sopii Arduino UNO:lle, Arduino NANO:lle, Arduino MEGA:lle ja muille Arduino-levyille tai mikro-ohjaimille, jotka toimivat 5V:lla.
GY-BME280 on breakout-levy, jossa on Bosch Sensortec ME280 -lämpötila-, ilmankosteus- ja ilmanpaineanturi.
- I2C-vetovastukset
- Sisältää 4-napaisen 2.54mm pin headerin
BME280 Ominaisuudet
- Anturin merkki: Bosch
- Anturin koko 2.5mm x 2.5mm x 0.93mm metallikannella LGA
- Digitaalinen liitäntä I2C (jopa 3.4 MHz) ja SPI (3- ja 4-johtiminen, jopa 10 MHz)
- Käyttöjännite: 5V
- Virrankulutus 1.8 uA @ 1Hz kosteus ja lämpötila, 2.8 uA @ 1Hz paine ja lämpötila. 3.6 uA @ 1Hz kosteus, paine ja lämpötila ja 0.1 uA lepotilassa
- Lämpötila-anturin alue -40 / +85 C,
- Ilmankosteusalue; 0 - 100% rel. ilmankosteus
- Ilmanpainealue: 300- 1100 hPa
- I2C

| Nastaväli | 2,54 mm |
|---|---|
| Sopii | Arduino UNO, Arduino NANO, Arduino MEGA ja muut 5V Arduino -levyt tai mikrokont |
| Lämpötila-alue | -40 / +85 C |
| Käyttöjännite | 5V |
| Virrankulutus | 1.8 uA @ 1Hz |
| Maks. ilmankosteus | 0 - 100% suhteellinen ilmankosteus |
| Anturin koko | 2.5mm x 2.5mm x 0.93mm |
| I2C-taajuus | jopa 3.4 MHz |
| SPI-taajuus | jopa 10 MHz |
| SPI-johto | 3- ja 4-johto |
| Ilmanpaine | 300- 1100 hPa |
| Virrankulutus lepotilassa | 0.1 uA |
hyvä ja ajallaan
Minulla on useita, ja olen käyttänyt niitä wemos esp:n ja raspberry pi:n kanssa. Tosi hauskaa tehdä näillä jotain.
Etkö ole tyytyväinen? Sinulla on 30 päivää aikaa vastaanotosta palauttaa tuote.
Kaikki palautuksista
3-in-1 anturi Lämpötila Ilmankosteus ja Ilmanpaine | 5V | I2C | Bosch BME280