Need help to extend capabilities of a simple proximity circu

A

axrock

Guest
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
 
On Apr 26, 9:53 pm, axrock <chris.sef...@gmail.com> wrote:
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.

Retriggerable monostable.

Cheers
 
"axrock" <chris.sefton@gmail.com> wrote in message
news:2c1e95f4-5659-4188-a918-1c31fbda9a6e@i36g2000prf.googlegroups.com...
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

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
 
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
 
On Apr 27, 9:29 am, BobG <bobgard...@aol.com> wrote:
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
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:
http://www.uoguelph.ca/~antoon/gadgets/555/555.html
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
 
axrock wrote:
Anybody know how I can add an image to this thread.
Chris

First, you should recognize that this is NOT "Google Groups".
http://groups.google.com/group/alt.comp.freeware/msg/4a83eaad102e7efe?q=*-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.
http://groups.google.com/group/sci.electronics.design/msg/b02aa1f810a223cf?q=*-*-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

I would like to show you the current working circuit,
for the sake of this thread.

You're on the right track--but graphics are quickly lost to posterity.
The persistance of ASCII schematics on Usenet is excellent.
http://groups.google.com/group/sci.electronics/browse_frm/thread/86bb4239891d93d5/4523c80acf6aa356?q=R1+R2+Q2&fwc=1
Note the date.

It is possible to do amazing stuff with just ASCII.
http://groups.google.com/group/sci.electronics.design/msg/0151f4be583db5ea?q=author:Fred-Bloggs+such-as-Courier&fwc=1

http://translate.google.com/translate?u=http://www.tech-chat.de/aacircuit.html+&langpair=de%7Cen

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.
http://www.google.com/search?q=cache:Td-fqP2OoMAJ:en.wikipedia.org/wiki/Image_hosting_service+*-*-*-*-*-personal-webspace

Among those, The Pirate Bay's offering is the least offensive IMO.
http://www.google.com/search?q=cache:gWsPhU8m4gMJ:bayimg.com/faq+you.can.upload.images.for.free+from.The.Pirate.Bay+and.show.them.for.your.friends.and.foes+NO.COPYRIGHT+FAQ+removal.code

I did google the schmidt trigger,

If Monsen had spelled it properly, you would have gotten even more
hits.
http://www.google.com/search?q=Schmitt-trigger
....and since it's named after a guy, it's always capitalized.
 
I did google the schmidt trigger,

If Monsen had spelled it properly, you would have gotten even more
hits.
http://www.google.com/search?q=Schmitt-trigger
...and since it's named after a guy, it's always capitalized.

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

Regards,
Bob Monsen
 
axrock wrote:
I did google the schmidt trigger,

JeffM wrote:
If Monsen had spelled it properly,
you would have gotten even more hits.
http://www.google.com/search?q=Schmitt-trigger
...and since it's named after a guy, it's always capitalized.

Bob Monsen wrote:
no fair, I didn't mention the guy... ;)
After this recent effort
news:ihROj.4567$vF.2877@newssvr21.news.prodigy.net
http://groups.google.com/group/sci.electronics.basics/msg/4287de357c5d442c?q=The.power.supply+The.sound.detector+The.timing.element&fwc=1
you get special dispensation from me on all counts. :cool:

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

Welcome to EDABoard.com

Sponsor

Back
Top