so trying to use a 12 v flow sensor with my arduino but i think i trayed it so i'm asking a few questions before fraying the next one
so i have this 12 - 36 volt flowsensor with is giving 560 pules pr. liter i hooked it up with a 12 volt power + / - and the puls pin to pin 2 like in this example http://forum.arduino.cc/index.php/topic,8548.0.html but some thing went wrong and i goth no signal then i hooked the - 12 to grund and the arduino made strange nocies and i can't get it working now forth the arduino cut handle input between 6 - 20 volt ...
so i ordered a new arduino uno r3.
is the way to handle this flow sensor to use a voltage devider to down to 5 and then use the same sketch as i liked above ??
if will this be a good why to go with r1 7 ohms and r2 5 ohms??
i hokked up the + 12 / -12 v to a power supply and the puls pin to the voltage devider and then to the arduino but im getting chaning read outs form the sensor with out activating the sensor any idear why ??
simondid:
hey so i trayed to make a voltage devider to get the voltage down from the flow sensor ... but for some reason i'm getting some wired read outs from it
this is the sensor im using Type 8030 - INLINE flowmåler til kontinuerlig måling
i hokked up the + 12 / -12 v to a power supply and the puls pin to the voltage devider and then to the arduino but im getting chaning read outs form the sensor with out activating the sensor any idear why ??
Like most sensors the output is open-collector - if you connect to the NPN output
you just need a 1k resistor to +5V and that's it, no level shifting needed.
A voltage divider cannot work from an output that only sinks current (open-collector)
of course...
And remember you always double-check a circuit before powering it up - a lot of
money is saved by doing this in the long run.