Have the sensor as such working via an interrupt ISR. Now in my next step I want to reduce power and make the circuit low power. What I would like to do is to put the Arduino into a sleep mode (Power down) and be awaken by the tilt sensor interrupt.
However what I am puzzled about it how to minimize the power consumption by the tilt sensor itself. I was thinking about a NAND gate (LOW output when tilt is not triggered, and HIGH when tilt is triggered). However this solution also uses power (range of 0.x mA) .. so when you have some ideas it would really help me.
Thanks. I know the basic stuff and trying to find a way to reduce consumption to a couple of uA (to have a battery operated solution for a couple of years)
Use a 1M pullup or pulldown resistor (5uA only when the switch makes contact, zero otherwise).
Adding a 1nF capacitor to reduce sensitivity to electrical noise would be wise.
Thanks for the link, really contains a good overview. There are some tricks which I did not know yet.
Will work on my sensor and drop some lines when done
With the suggestions I got yesterday from you I have been playing and reading up on some 328 stuff. I realize now that an input PIN has an big internal impedance of 100 Mohm. So the monitoring itself already does not consumes too much power.
So the current of just having the tilt sensor trigger an interrupt is already very low (3.3V / 100 Mohm) ... or?
The current required by the tilt sensor is the power supply voltage divided by the pulldown or pullup resistor value, and then only when the switch is conducting.
For all practical purposes you can ignore the current into or out of the Arduino input, unless the internal pullup resistor is enabled.