BME280 Environmental Sensor
WORKIGN WITH STM32
1.
Open STM32 project which is under STM32 directory.
2.
Connect BME280 to STM32 board according to
Interfaces
3.
Default interface is I2C with device address 0x77. If you change to SPI, you need to
change the USEIIR define to 0 of main.c:
- If you want to use I2C and change its address, you can connect ADDR to GND
and discommend statement dev.dev_id = BME280_I2C_ADDR_SEC:
4.
Compile and download the demo code to STM32 board, the examples we provide
is based on STM32F103RBT6, Use UART2 to print sensor data. You can connect
UART to PC by TTL to UART module, then open Serial assistance software on PC,