main: Add support for gating power to the sensors
authorPhilip Withnall <philip@tecnocode.co.uk>
Sat, 8 Dec 2012 09:47:04 +0000 (09:47 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Sat, 8 Dec 2012 09:48:57 +0000 (09:48 +0000)
commit9d2bd68943043b2d6c5368b93614b87cefd46308
tree7936529f59d6bc512eebd65308440a171774a2ae
parent1ecc1daaaf7eb97bfb5ee9942aa0f873f78fbfe9
main: Add support for gating power to the sensors

As with the LCD, the sensors draw a considerable amount of current. For
example, the IR distance sensor draws 17mA and the humidity sensor draws
3mA.

By putting a beefy transistor in the common ground of all the sensors, we can
gate power to them for the long periods of time between sensor readings.
config.h
main.c