Here is my SHT21 and ds18b20 sensors
Blom
@Blom
Best posts made by Blom
-
RE: Determine if pin interupt or awakens from sleep
Thanks! Worked like a charm!
uint8_t interruptReturn; void loop() { if (interruptReturn == 1){do this} if (interruptReturn == MY_WAKE_UP_BY_TIMER){do that} interruptReturn = sleep(INTERRUPT,CHANGE,SLEEP_TIME); }
Next question: Is it possible to retrive remaining sleep time when waking up on interrupt so sensor could resume on time
left when it goes to sleep again?
Latest posts made by Blom
-
multiple hardware radio sensor network
Hi
I'am using nrf24 mqtt network on my rpi. I have now bought a rfm95 lora and want to build a gateway for handeling a rfm95 network together with my nrf24 network. is it possible to get this systems to coexist together?
-
RE: Determine if pin interupt or awakens from sleep
Is it possible to retrive how much time left on the watchdog sleep time when it awakens on interupt?
-
RE: Determine if pin interupt or awakens from sleep
You wrote 8sec. Does the sensor wake up every 8sec and update a sleep count variable?
-
RE: Determine if pin interupt or awakens from sleep
Thanks! Worked like a charm!
uint8_t interruptReturn; void loop() { if (interruptReturn == 1){do this} if (interruptReturn == MY_WAKE_UP_BY_TIMER){do that} interruptReturn = sleep(INTERRUPT,CHANGE,SLEEP_TIME); }
Next question: Is it possible to retrive remaining sleep time when waking up on interrupt so sensor could resume on time
left when it goes to sleep again? -
Determine if pin interupt or awakens from sleep
Hi
I have an magnetic door switch sensor with a DS18b20 conected. The sensor sends updates when the magnetic switch recieved updates(pin interupt) or 30min(awakens from sleep) has passed. It sends updates from both the magnetic switch and from the temperature sensor.
Is it possible to determine which interupt that occured? I want to send temperature updates only when it awakens from sleep and send magnetic switch updates only when pin interupt happens.
if (pin interupt)
{do this}
if (awkens from sleep)
{do that} -
RE: My SHT21 and ds18b20 sensor
@tbowmo Yes it is. I have used the ds18b20 for over a year now. With an update every 20min the battery holds for 6months