Pages: 1 [2]   Go Down
Author Topic: HOw to detect the flow of water through a pipe  (Read 4772 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I really do appreciate you taking the time to do this  smiley  My coding skills are weak and this will give me a great opportunity to dissect known-good code in an attempt to better understand.

Cheers
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am not sure how I am messing this up  smiley-red

The code seems to run fine but the only thing that increments is Tu

I confirmed the connection to pin 4 has 5V on it and even pulled it out/stuck it back in several times to replicate pulses...nada

Is there some dependency on the lightning code I am missing?
Logged

Atlanta, GA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

stop before you damage your input pin - forget my code and the meter

start here!

http://www.ladyada.net/learn/arduino/lesson5.html

after you master lesson5

you need to wire the meter up like a switch with a resistor


Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The pin is set as an input, the only source of voltage is from the Arduino itself (5V) and pins are rated for 5V so...no need for alarm (or for a resistor) right?
Logged

Atlanta, GA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Current is the issue

Use a 10k to protect

Also try a zero valve for the denounce to see if that's the issue
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Using a 10k pulldown resistor to ground along with the blue wire and red (connected directly to 5 volts) worked like a champ with the code provided previously by pantonvich  smiley
Logged

Atlanta, GA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

that's great!
Logged

Pages: 1 [2]   Go Up
Jump to: