I've been trying to follow Ed Cheung's water meter monitor idea and have made some great progress but ran into trouble when I found that I had a bit more noise than he. His circuit works pretty well as shown on his web site though I did have to play with the value of the hysteresis resistor to get a clean transition. Even with that change if the meter parks itself near a transition point I have enough noise to falsely trigger multiple pulses.
So, I thought I'd get fancy and put two more of the LM339's comparators to work. I figured I'd use one as an S-R flip flop with S triggered by the HI side of the sine wave as detected by one of the comparators and the R triggered by the LO side of the sine wave detected by the other. The idea being that at most I'd get single pulse a bit too early as the noise would be unlikely to reach all the way down to trigger a reset.
I did a simulation of the circuit using TI-TINA and got some promising results so I decided to build it. The first problem I ran into was the voltage divider. The input signal is a sine wave going between 1.89v an 1.99v and from 0hz to 20hz. The signal range has been constant and the frequency changes (as expected) with water usage. So, I need a voltage divider that will let me set the two outputs to around 1.90v and 1.98v I'd like to be able to adjust both independently or even better pick a center point and a width. On paper what I have looks great. In practice it just doesnt seem to come out right. Tweeking the large value resistors on either end to let the pots do their fine tuning thing is a real exercise in frustration. There's got to be a better way.
Any and all comments on the voltage divider or the circuit in general would be greatly appreciated. ...oh and did I mention I dont know a thing about circuit design?
So, I thought I'd get fancy and put two more of the LM339's comparators to work. I figured I'd use one as an S-R flip flop with S triggered by the HI side of the sine wave as detected by one of the comparators and the R triggered by the LO side of the sine wave detected by the other. The idea being that at most I'd get single pulse a bit too early as the noise would be unlikely to reach all the way down to trigger a reset.
I did a simulation of the circuit using TI-TINA and got some promising results so I decided to build it. The first problem I ran into was the voltage divider. The input signal is a sine wave going between 1.89v an 1.99v and from 0hz to 20hz. The signal range has been constant and the frequency changes (as expected) with water usage. So, I need a voltage divider that will let me set the two outputs to around 1.90v and 1.98v I'd like to be able to adjust both independently or even better pick a center point and a width. On paper what I have looks great. In practice it just doesnt seem to come out right. Tweeking the large value resistors on either end to let the pots do their fine tuning thing is a real exercise in frustration. There's got to be a better way.
Any and all comments on the voltage divider or the circuit in general would be greatly appreciated. ...oh and did I mention I dont know a thing about circuit design?