MySensors-HW
MySensors-HW copied to clipboard
Could you add some sample code?
very important : the software is well optimized. For instance, to manage sleep power consumption during blind time etc.. or if you disable the motion detection when you don't need it.
well .. i am sure this is no real "issue" but would you be so kind and add some samplecode?
You claimed 6µA here (https://www.openhardware.io/view/75/MyMultisensorCoinCell#tabs-instructions) and I was intrested in how you got so far. Thanks!
Hi.
Hehe! Yep, not an issue.. Software is optimized for blindtime etc.. as you read. I can disable detection in two ways:
- I disable the irq. Still the 1.8uA power consumption of the PIR. But then no trigger, simple (1.8u is not so big).
- or i can completely disable it with pfet. Then 0 power used by PIR.
Complete circuit uses 4-6uA depending of the battery used, and PIR enabled. If disabled by pfet, it's lower. For software, nothing fancy. And for more info about power savings, there is the interesting howto from Gammon forum (power savings)
I'll publish some code soon, sorry for delay (i am cooking multiple other projects at same time..), and i need to send one board sample to a friend for playing and perhaps improving my sw..
I will close this, as soon as I'll upload sw and design files. See you soon.