[[Image(Watermeter.jpg, align=right, width=300px)]] = Water Meter (Pulse Sensor) = Author: kpeson == Software == You can download the Arduino sketch [[https://github.com/mysensors/Arduino/tree/master/libraries/MySensors/examples/WaterMeterPulseSensor|here]].\\ This sensor counts pulses from a house water meter and converts it into liters or gallons/m. There are a few parameters that needs to be tuned before everything works. Set '''PULSE_FACTOR''' to how many turns the meter has to go for each m3 water (or similar thing in gallons). You can also set '''SEND_FREQUENCY''' (how often you want the sensor to report values). Default is each 20 seconds. If you want the vera device to show your current meeter value. First '''turn off your sensor'''. Update '''Variable1''' value under the vera device advanced tab. Set it to your meters current water meter value * your PULSE_FACTOR.\\ ''Example: Your pulse factor is 1000 and water meter-reading is 33000. Then set Variable1 to 33000000.'' This sensor requires you to upload the following device files to Vera as well.\\ http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Vera/watermeter?js=1\\ D_WaterMeter1.xml\\ D_WaterMeter1.json\\ S_WaterMeter1.xml\\ The sensor sketch has two modes: '''SLEEP_MODE = true''' Use this if you run the sensor on battery. In this mode the sensor will report volume but cannot report any flow-value. This is because when sensor sleeps it will lose track of time and therefore it is impossible to calculate a correct flow-value.\\ \\ '''SLEEP_MODE = false''' In this mode the sensor will always be awake. Watt value will also be reported to Vera. You should probably not run your sensor on batteries in this mode. == Wire things up == Follow the instructions in ConnectingRadioModule to connect radio module. Connect the digital DO (Digital Out) of the light sensor to digital pin 3 of the Arduino board. Connect VCC to +5V of the Arduino board. GND to GND. == Hardware - Purchase guide == To build this sensor you'll need one arduino + radio specified in the base kit found here:\\ http://code.mios.com/trac/mios_arduino-sensor/wiki/WikiStart#Buyingguide\\ With the following additional parts: 1x [[http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337426682&customid=&icep_item=330924700585&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg|Water meter pulse sensor]]\\ TOTAL SENSOR PRICE: $7 (arduino + radio) + $3 (light sensor) = '''$10'''