esp32_bme280_w_arduino_ide
This is an old revision of the document!
ESP32 + BME280 w/ Arduino IDE
Sketch > Include Library > Manage Libraries > adafuit bme280
(Sketch > Include Library > Manage Libraries > adafuit unified sensor)
BMP280 vs BME280 → https://www.wiki.lesfabriquesduponant.net/index.php?title=Capteur_BME280#Comment_distinguer_BME280_et_BMP280_.3F
5V vs 3.3V → https://www.wiki.lesfabriquesduponant.net/index.php?title=Capteur_BME280#Connecter_BME_280_.C3.A0_l.27arduino
BME280 5V :
Connexion BME → ESP
BME280 | ESP32 |
---|---|
VCC | 5V |
GND | GND |
SDA | GPIO21 |
SCL | GPIO22 |
File > Examples > Adafruit BME280 library > bme280test
Comment lines
//#include <SPI.h>
et
/*#define BME_SCK 13
#define BME_MISO 12
#define BME_MOSI 11
#define BME_CS 10*/
et ajoute 0x76 (ligne 46)
status = bme.begin(0x76);
/!\ Serial monitor @ 9600 baud
esp32_bme280_w_arduino_ide.1741295084.txt.gz · Last modified: 2025/03/06 21:04 by bruno