Changes between Initial Version and Version 1 of WaterMeterPulseSensor


Ignore:
Timestamp:
2014-01-05 16:30:01 (11 years ago)
Author:
hek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WaterMeterPulseSensor

    v1 v1  
     1[[Image(pulse.png, align=right, width=300px)]] 
     2= Water Meter (Pulse Sensor) = 
     3 
     4== Software == 
     5You can download the Arduino sketch [[http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Arduino/libraries/Vera/examples/WaterMeterPulseSensor?js=1|here]].\\ 
     6 
     7This 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. On your meter it is usually specified how many pulses/kwh. Set '''PULSE_FACTOR''' to this value. You can also set '''SEND_FREQUENCY''' (how often you want the sensor to report values). Default is each 20 seconds. 
     8 
     9If 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.\\ 
     10''Example: Your pulse factor is 1000 and water meter-reading is 33000. Then set Variable1 to 33000000.'' 
     11 
     12 
     13 
     14The sensor sketch has two modes: 
     15 
     16'''SLEEP_MODE = true''' 
     17 
     18Use this if you run the sensor on battery. In this mode the sensor will report KWH but cannot report any Watt-value. This is because when sensor sleeps it will lose track of time and therefore it is impossible to calculate a correct Watt-value.\\  
     19\\  
     20'''SLEEP_MODE = false''' 
     21 
     22In 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. 
     23 
     24== Wire things up == 
     25 
     26Follow the instructions in ConnectingRadioModule to connect radio module. 
     27 
     28Connect the digital DO (Digital Out) of the light sensor to digital pin 3 of the Arduino board.   
     29Connect VCC to +5V of the Arduino board. GND to GND. 
     30 
     31== Hardware - Purchase guide == 
     32 
     33To build this sensor you'll need one arduino + radio specified in the base kit found here:\\ 
     34http://code.mios.com/trac/mios_arduino-sensor/wiki/WikiStart#Buyingguide\\ 
     35 
     36With the following additional parts:\\ 
     371x [[http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337426682&customid=&icep_item=330924311652&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg|Light sensor]]\\ 
     38 
     39or 
     40 
     411x [[http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575069610&toolid=10001&campid=5337426682&customid=&icep_item=251278634856&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg|TSL250R Light sensor which is a bit easier to mount on meter]]\\ 
     42 
     43TOTAL SENSOR PRICE: $7.6 (arduino + radio) + $2.8 (light sensor) = '''$10.4''' 
     44 
     45[[Image(blink.jpg, width=500px)]]\\ 
     46Here I'm trying to simulate meter pulses with another LED while testing the code.