Maker Pro
Maker Pro

Need help to extend capabilities of a simple proximity circuit

A

axrock

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
 
V

Varactor

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
 
R

Rheilly Phoull

axrock said:
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 pressure pad idea seems good, how do you have that setup ?
 
B

Bob Monsen

axrock said:
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
 
it oscillate that is obvious you must install an histerysis into your circuit so it will not oscillate off-on. it means some positive feedback. washing machine solenoid are 115v poor dog. you can buy a simple attachment ot you hose for $4.99 that the dog can use its toungue to open it get water release and it stops no electronics just plain mechanical genius.
 
B

BobG

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
 
A

axrock

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
 
J

JeffM

axrock said:
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....*-*-*-*-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....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....239891d93d5/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....ea?q=author:Fred-Bloggs+such-as-Courier&fwc=1

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

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=cach...e_hosting_service+*-*-*-*-*-personal-webspace

Among those, The Pirate Bay's offering is the least offensive IMO.
http://www.google.com/search?q=cach...riends.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.
 
D

dBc

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:
http://www.americas-pet-store.com/details/prodid/1317.html
http://www.smarthome.com/6101.html
http://www.amazon.com/Lentek-PF01G-Electronic-Drinking-Fountain/dp/B00006JHRF
http://www.nextag.com/dog-drinking-fountain/search-html
http://www.petronic.com/fountain.htm
http://www.arcatapet.com/item.cfm?cat=11050

Go to, www.google.com
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



| 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
|
 
Top