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

is it possible to send the data by using interrupt

hi...

i am using nrf52832 and sensor ......... is it possible to read the data by interrupting the sensor 

for example .... 

 if i am using temperature sensor if the value goes to below 37 degree then it should send the data to uart ble (via app) is it possible 

Parents
  • Sorry, I don't understand your question!

    An "interrupt" would normally be a signal from a sensor to the microcontroller - so you wouldn't "interrupt the sensor".

    Some temperature sensors can be programmed with (a) threshold(s) - and may be able to  generate an interrupt to the microcontroller...

    You would have to study the particular sensor's documentation for details.

    Otherwise you would just read - or "poll" - the sensor at a suitable, regular, interval and your code would compare each reading against your threshold, and take whatever action is required.

Reply
  • Sorry, I don't understand your question!

    An "interrupt" would normally be a signal from a sensor to the microcontroller - so you wouldn't "interrupt the sensor".

    Some temperature sensors can be programmed with (a) threshold(s) - and may be able to  generate an interrupt to the microcontroller...

    You would have to study the particular sensor's documentation for details.

    Otherwise you would just read - or "poll" - the sensor at a suitable, regular, interval and your code would compare each reading against your threshold, and take whatever action is required.

Children
Related