Okay. I'd like a valve to upon over a relay to fill a bucket with water at the push of a button. The valve should close when the bucket is full and the system should then wait for another button push.
Button, ultra sonic sensor (sensing full bucket), relay and valve are all within my grasps and hense control.
What I need is to figure out the code that makes it all happen.
is what I've got.
I've tested button push in a seperate code and it's working.
I've also tested ultra sonic and relay in another seperate code and they're also working.
The combination I still need to figure out.
Any suggestions? I'd like the system to reset when the bucket is full and then wait to be re-activated with another bucket and button push.
cveng:
Sounds great, thanks. But it's not exactly working out for me.
As there was only about 20 minutes between @PaulS posting Reply #1 and your response in Reply #2 I am not surprised. How about spending another 3 or 4 hours (or even days) trying to figure it out.
In 20 minutes you could not possibly have worked through the series of exercises suggested in Reply #1 - never mind doing some additional research when you got stuck.
The first question was what do your serial prints tell you. The answer to that is "I don't have any". The second question was why not. If you want us to debug your code for you, but a whole bunch of Arduinos and ping sensors and switches, and get them wired up. We'll all send you snail-mail addresses, where you can send each of us an Arduino with attached sensors. We'll debug your code for you, and then send the Arduinos back.
If that is too much trouble, or expense, then YOU need to debug your code.
PaulS:
The first question was what do your serial prints tell you. The answer to that is "I don't have any". The second question was why not. If you want us to debug your code for you, but a whole bunch of Arduinos and ping sensors and switches, and get them wired up. We'll all send you snail-mail addresses, where you can send each of us an Arduino with attached sensors. We'll debug your code for you, and then send the Arduinos back.
If that is too much trouble, or expense, then YOU need to debug your code.
You read code and you know I didn't serialprint. Want it, ask for it instead of playing stupid! I'm new at this and if you don't want to help in a kind and constructive manner, the Internet is full of kind people who will. Wanna patronise, find another thread!
I don't see anything "stupid" or "patronizing" in Reply #9
The first was a simple question that you did not reply to. I can see how @PaulS's second question could be confusing if you don't answer the first question.