06-01-2024 06:58 PM
Good afternoon,
I am trying to programing my IoT environment (Nordic nRF52840) to sleep when the temperature and humidity are in the safe limits, but when it is near to the operation limits, it make the device wake up to send a alert about it.
I was reading the "Bosch Sensortec | BME680 Datasheet" and I saw item "5.3.1.1 SPI 3 wire interrupt enable – spi_3w_int_en" that "New data interrupt can be enabled if the device is in SPI 3 wire mode and pi_3w_int_en=1. The new data interrupt is then indicated on the SDO pad".
Could I use this data interrupt (low/high) to create a low power profile behavior for the solution (MCU and sensor) sleep/wake up?
Regards,
Claudio
06-19-2024 11:10 AM
Hi crmrosa,
Thanks for your inquiry.
Yes, SDO can trigger an interrupt notification host to read data. Regardless of whether CPOL or CPHA is configured as 00 or 11, SPI data is sampled on the rising edge and moved out on the falling edge, and SDO is triggered on the falling edge.
06-19-2024 02:18 PM - edited 06-19-2024 02:25 PM
Good morning,
I am developing my code with VSCode/platformio/C++ in the Adafruit solution for BME680.
I would like to make the Embedded System sleep if you I have a overheat or too much humidity, it should wake up if temperature and/or humity is in the borderline to send a warning message to Operation Center. This sensor solution is part of monitor solution for wagons in a train for a Brazilian railroad company.
Do you have any small C++ example code with this interruption ?
Regards,
Claudio