SKU: OT712-D65 Numer artykułu: NB115 EAN: 8944452371856
UWAGA wersja 5V. Odpowiednia dla Arduino UNO, Arduino NANO, Arduino MEGA i innych płytek Arduino lub mikrokontrolerów pracujących na 5V.
GY-BME280 to płytka breakout z czujnikiem Bosch Sensortec ME280 do pomiaru temperatury, wilgotności i ciśnienia atmosferycznego.
- Rezystory podciągające I2C
- W zestawie listwa goldpin 4 pin 2.54mm
Cechy BME280
- Marka czujnika: Bosch
- Rozmiar czujnika 2.5mm x 2.5mm x 0.93mm metalowa pokrywa LGA
- Interfejs cyfrowy I2C (do 3.4 MHz) i SPI (3 i 4 przewody, do 10 MHz)
- Napięcie zasilania: 5V
- Pobór prądu 1.8 uA @ 1Hz wilgotność i temperatura, 2.8 uA @ 1Hz ciśnienie i temperatura. 3.6 uA @ 1Hz wilgotność, ciśnienie i temperatura oraz 0.1 uA w trybie uśpienia
- Zakres czujnika temperatury -40 / +85 C,
- Zakres wilgotności; 0 - 100% rel. wilgotność
- Zakres ciśnienia: 300- 1100 hPa
- I2C
Tak podłączysz Czujnik 3 w 1 Temperatura Wilgotność i Ciśnienie Powietrza | 5V | I2C | Bosch BME280 do Arduino UNO lub ESP32, z przykładowym szkicem, który możesz od razu wgrać.
Ten projekt odczytuje temperaturę, wilgotność względną i ciśnienie barometryczne za pomocą czujnika BME280 przez I2C. Odczyty środowiskowe są wyświetlane w Serial Monitor co dwie sekundy. Wystarczy podłączyć czujnik bezpośrednio do pinów 5V, GND i I2C Arduino Uno.
/*
* ==================================================================
* 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);
}
Wymagane biblioteki: 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);
}
Wymagane biblioteki: 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