This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to connect nrf9160 with multiple bme280 sensor?

Hello!

I have followed nrf connect sdk tutorial part3 and have walked through for bme280. But now I want to connect two or more bme280 sensors to my dk. How should I modify the prj.conf file, the overlay file and the main.c file?

Thanks a lot.

Regards

PoNien Su

Parents
  • As you can see in the memory instantiation, the nRF9160 has four I2C peripherals. Considering the address limitation of the BME280, that means you can connect up to 8 BME280 sensors to it. But then you have to make sure that the other peripherals using the same memory instantiation are disabled, which probably is the reason why CMake didn’t complete.

    If you would like to connect more than 8 sensors, you have to switch over to the SPI peripheral or use it in combination with I2C. But even there the number of devices you can communicate with is limited to under 30, depending on the design of the chip select.

    Regards,

    Markus

Reply
  • As you can see in the memory instantiation, the nRF9160 has four I2C peripherals. Considering the address limitation of the BME280, that means you can connect up to 8 BME280 sensors to it. But then you have to make sure that the other peripherals using the same memory instantiation are disabled, which probably is the reason why CMake didn’t complete.

    If you would like to connect more than 8 sensors, you have to switch over to the SPI peripheral or use it in combination with I2C. But even there the number of devices you can communicate with is limited to under 30, depending on the design of the chip select.

    Regards,

    Markus

Children
No Data
Related