Automated watering or drainage

{% trans 'Sorry, your browser does not support canvas -- please either update your browser or submit your requirements by phone or email.' %}

Accelerometer

This app could be used to drive a pump (via a transistor and relay) to either drain or pump water. We're going to use it in the garden to water a grow bag, Pins 0 and GND are connected to two probes (paper clips) next to each other, and a 10k resistor connected between pin 0 and PWR. The app reads the analogue input on pin 0 and displays the result on the screen. If water is detected (analogue reading on pin 0 < 100) pin 1 is switched off, and pin 2 on - and vice versa. Calibrate the app using the reading displayed on sprite screen.

Report this project
Back to top