osd-contiki/examples/osd/arduino-valve
Ralf Schlatterbeck 7ea0e3b933 Fix Makefiles, remove/fix flash targets
The target "flash" and related stuff is now in the platform makefiles.
2017-08-22 22:29:03 +02:00
..
arduino-example.c Add valve example 2017-03-24 20:10:37 +01:00
dvr8838wiring.txt Add description of new H-brigde breakout-board 2017-07-29 14:42:13 +02:00
flash.sh Add valve example 2017-03-24 20:10:37 +01:00
Makefile Fix Makefiles, remove/fix flash targets 2017-08-22 22:29:03 +02:00
project-conf.h Add valve example 2017-03-24 20:10:37 +01:00
README.md Add valve example 2017-03-24 20:10:37 +01:00
resource_valve.c Add query parameter to generic resouce macros 2017-08-20 15:01:30 +02:00
run.sh Add valve example 2017-03-24 20:10:37 +01:00
sketch.pde Add query parameter to generic resouce macros 2017-08-20 15:01:30 +02:00
valve-breadboard.png Add valve example 2017-03-24 20:10:37 +01:00
valve.h Add valve example 2017-03-24 20:10:37 +01:00

Arduino valve

This is an example how to open/close a Gardena Water-Valve (the ones that use a +9V block battery for power). Note that we used the L293D Dual H-Bridge circuit which needs +5V for power supply (while the Merkur-Board uses 3.3V) but it can use 3.3V inputs directly from the Merkur-Board without a level shifter. So it's probably a good idea to use some other H-Bridge circuit that can also use 3.3V. An advantage of the L293D might be that it can be used for two valves simultaneously (with the second, currently unused H-Bridge).

We provide the schematics of our breadboard-design in valve-breadboard.png -- as noted above it's a good idea to use a different H-Bridge circuit.

Also note that one of the pins we use in the software for signals to the H-Bridge (D4) is also used for the LED on the Merkurboard. The LED is on when the H-Bridge is off. This was nice for testing the breadboard circuit but should be changed for a real deployment to save power of the battery. It is also probably a good idea to turn off the power-supply of the H-Bridge with an additional MOSFET depending on the power consumption of the H-Bridge you're going to use.