Need help to extend capabilities of a simple proximity circuit

Hi,

I am a total rookie when working with circuits, but I have built a kit set transonic proximity sensor. I'll explain my use at the end.

Essentially what it does is turn on an LED when an object gets near to the sensors. I have extended the kit with another kit to add relay functionality. So when an object nears the sensor it switches the relay. All this is a simple kit set circuit that runs on 12V.

My only problem with it, is the sensors a very touchy, when it senses an odd shaped object (like a human or dog etc) the relay switches madly on, off, on, off until the object is really close (EG: 2 Inches etc).

I am wanting to add a delay to the circuit, so that when the relay switches it stays on for at least 3 or 5 seconds. In other words, when the sensor begins to detect the presence of an object rather than the relay going nuts, it will actually stay on for at least 3 or 5 seconds etc. When it is due to turn off again it will likely receive another erratic pulse from the sensors due to the odd object near by. Hope that makes sense.

What this is designed for: Just in case you are curious. I am attempting to build a device that will allow my dog to turn on an outside tap to allow him to drink straight out of the hose. This way he always has fresh water whenever he needs it. So far I have a washing machine solenoid which switches on a home made pressure mat. This does not work that well though. Hence, using a proximity sensor. My dog just needs to walk up to the water outlet and the water turns on. It works at the moment, but switches on and off very fast as he gets within the distance I want. I need to set a timer of sorts (possibly a 555) to keep the relay on rather than switch it off immediately. This way it should keep the water flow steady for the drink, and will turn off within 3 or 5 seconds of the dog moving away.

Really appreciate any help. Really just need some help to add a small delay timer between the sensor circuit and the relay circuit.

Thanks, Chris

Reply to
axrock
Loading thread data ...

Retriggerable monostable.

Cheers

Reply to
Varactor

The pressure pad idea seems good, how do you have that setup ?

--
Cheers ............. Rheilly
Reply to
Rheilly Phoull

The sensor probably puts out a voltage level which depends on proximity. That voltage level is tested by a 'comparator' circuit to see if it is high enough. If it is, it turns on the output. The voltage at which it decides to turn on the output is a switching point.

The problem is that the output is not steady, but has a certain low-level noise. As the dog is getting closer, the noise causes the thing to trigger on and off until the dog is close enough so the noise + signal is no longer below the switching point.

The way this is typically handled is to use some positive feedback from the output to change where the switching point is.

Say the thing switches at 6V normally. If you put in some positive feedback from the output, once it switches on, the switching point will go down to, say, 5V. If the noise is less than a volt, it will stay on and not chatter.

If the dog is satisfied, and is leaving, the voltage will begin to decrease, but the water won't go off until the output + noise gets down to 5V. At that time, however, with the positive feedback, the switching voltage will be modified to 7V, so it won't chatter. Now, when he returns to get more water, it won't switch until the voltage gets to 7V.

In order to determine how to do this, you need to post the circuit you built, so I can see where to put the extra resistor.

The other problem you might be encountering is that the relay coil takes a certain amount of current to switch the relay on. If your sensor is measuring a voltage, it might be affected when the coil turns on and off. Does the mad switching occur when the relay is not hooked up? If not, then you can try putting a big electrolytic capacitor (like the ones they use in power supplies), like 3300uF, across the sensor power inputs, to protect it from dips when the relay turns on.

You can also run into this problem with a 555, which can end up either not turning on, or staying on and not shutting off, due to the change in the 12V input.

Fun project.

Regards, Bob Monsen

Reply to
Bob Monsen

Good explanation Bob. Let me add a couple of synonyms for the 'little bit of positive feedback on the comparator' to also search for... hysteresis and schmidt trigger

Reply to
BobG

Some friends of mine have used one of these for years for their dogs. Just attach it to the faucet. No electronics, etc.

formatting link

Reply to
Dan Coby

Hi,

Thanks for all the great feedback. Anybody know how I can add an image to this thread. I would like to show you the current working circuit, for the sake of this thread.

I did google the schmidt trigger, and this looks as though it should fix the problem. Found it here if anybody else is interested:

formatting link
Near the end of the page.

The reason I am ditching my pressure pad idea is it was a home made switch that doesn't take kindly to water. Hence, when the dog drinks it is splashed with water.

So far the proximity sensor is a good idea, just need to fix the bouncing problem with the relay. Hopefully the schmidt trigger will overcome this small and annoying problem.

Many thanks,

Chris

Reply to
axrock

First, you should recognize that this is NOT "Google Groups".

formatting link
*-a-service-for-*-*-*+Usenet+*-Wikipedia+hide.the.fact+*-*-policed+concerns-*-*-*-*-about-the-Google-interface+*-*-follow-Usenet-customs-and-*-rules+*-*-*-not-*-mustered-*-*-*-*-*-*-*-*-*-*-*-*-*+*-*-*-*-*-*-*-software+less-*-savvy-*+*-*-*-*-*-*-*-*-*-*-*-*-is-now-legendary+zzz+*-summary+qq+Web

Second, you should discover the *types* of Usenet groups and the differences between those.

formatting link
*-*-post-graphics-*-*-*-*+*-*-*-*-*-*-*-alt.binaries-hierarchy+enforced-by-filtering-*-*-*-*-*+never.see.it+Retention.times+text.groups+qq+*-*-*-binary-*-posts+*-get-rejected-*-*-*-*-*-*+*-*-get-dropped-*-*-*-*-*-*-*-*-*+set-up-a-*-site

You're on the right track--but graphics are quickly lost to posterity. The persistance of ASCII schematics on Usenet is excellent.

formatting link
Note the date.

It is possible to do amazing stuff with just ASCII.

formatting link

formatting link

If you can't be convinced to do it with ASCII, Mark Zenier's FAQ post (link above) mentions the *binaries* group that is associated with this hierarchy. (I think this should be listed UNDER the item below, but many will disagree with me.)

There are other obvious ways to share images.

formatting link
*-*-*-*-*-personal-webspace

Among those, The Pirate Bay's offering is the least offensive IMO.

formatting link

If Monsen had spelled it properly, you would have gotten even more hits.

formatting link
...and since it's named after a guy, it's always capitalized.

Reply to
JeffM

no fair, I didn't mention the guy... ;)

Regards, Bob Monsen

Reply to
Bob Monsen

JeffM wrote:

Bob M>no fair, I didn't mention the guy... ;)

After this recent effort news:ihROj.4567$ snipped-for-privacy@newssvr21.news.prodigy.net

formatting link
you get special dispensation from me on all counts. 8-)

Note to the OP: That is *another* example of the utility of ASCII art.

Reply to
JeffM

Greetings Chris..

Regarding: "I am attempting to build a device that will allow my dog to turn on an outside tap to allow him to drink straight out of the hose. This way he always has fresh water whenever he needs it. "

I fully realize that this may be a learning endeavor/exercise. And you're just wanting to see if you can develop something out of ordinary items around the house. But DO be aware that you're probably re-inventing the wheel here, there's a few veterinarians that got the idea some time ago:

Consider..

Inside or out:

formatting link
formatting link
formatting link
formatting link
formatting link
formatting link

Go to,

formatting link
Search on, automatic pet drinking fountain Click on Google Search

Notice that the commercially manufactured units have custom plastic moldings/housings, hoses and overall designs to make them easy to use and place. Just something to consider..

Cheers, Mr. Mentor

Reply to
dBc

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.