I want to create a seat occupancy sensor by using a load cell (3 wire).
What it should do is:
- Poll the load sensor every x (preferrably 5 to 20) seconds
- When there is a change (from above threshold to below threshold or the other way around) turn on wifi and fire a HTTP GET request to a webserver, after that turn wifi off again.
I am using an HX711 (ordered, but not received yet) and an ESP8266.
See the attached breadboard image for my try.
But I am wondering if I am doing it right. Between every x seconds I can turn ESP to sleep, but HX711 won't.
I need a year long battery life or so on 2 AA's.
So here are my questions:
- Is the schematic right?
- Is there a better way to save power?
- Is there a better way to do this completely?
Put me on the right track please!
Thanks!