simple one-shot pulse detector circuit needed

Hi all,

I seem to recall from distant memory that it's possible to make a pulse det ector out of two of transistors and a few resistors, but I can't find the c ircuit anywhere. Searches keep throwing up stuff about astable multivibrato rs and nand gates and that's not what I'm looking for.

Just need to be able to detect a 1 second pulse of 5v on an otherwise 0v li ne. The pulse comes only after several days of inactivity and should turn a n LED on permanently. No reset required and any subsequent pulses must *not

  • turn the LED off again, so it's operating like a bistable latch (if that' s the right term).

Can anyone assist?

Tia.

Reply to
orion.osiris
Loading thread data ...

On Tue, 20 Nov 2012 05:15:02 -0800 (PST), snipped-for-privacy@virgin.net wrote:

detector out of two of transistors and a few resistors, but I can't find the circuit anywhere. Searches keep throwing up stuff about astable multivibrators and nand gates and that's not what I'm looking for.

The pulse comes only after several days of inactivity and should turn an LED on permanently. No reset required and any subsequent pulses must *not* turn the LED off again, so it's operating like a bistable latch (if that's the right term).

--- Version 4 SHEET 1 880 680 WIRE 16 -192 -496 -192 WIRE 160 -192 16 -192 WIRE 16 -144 16 -192 WIRE 160 -144 160 -192 WIRE 16 48 16 -64 WIRE 160 96 160 -64 WIRE 160 96 80 96 WIRE 160 128 160 96 WIRE 160 224 160 192 WIRE -352 272 -400 272 WIRE -208 272 -272 272 WIRE -128 272 -208 272 WIRE 16 272 16 144 WIRE 16 272 -64 272 WIRE 96 272 16 272 WIRE -496 304 -496 -192 WIRE -400 304 -400 272 WIRE -208 320 -208 272 WIRE -496 432 -496 384 WIRE -400 432 -400 384 WIRE -400 432 -496 432 WIRE -208 432 -208 384 WIRE -208 432 -400 432 WIRE 160 432 160 320 WIRE 160 432 -208 432 WIRE -496 496 -496 432 FLAG -496 496 0 SYMBOL res 144 -160 R0 SYMATTR InstName R1 SYMATTR Value 39 SYMATTR SpiceLine "" SYMBOL npn 96 224 R0 SYMATTR InstName Q1 SYMATTR Value 2N3904 SYMBOL pnp 80 144 R180 SYMATTR InstName Q2 SYMATTR Value 2N3906 SYMBOL diode -128 288 R270 WINDOW 0 32 32 VTop 2 WINDOW 3 0 32 VBottom 2 SYMATTR InstName D1 SYMATTR Value 1N4148 SYMBOL res -256 256 R90 WINDOW 0 0 56 VBottom 2 WINDOW 3 32 56 VTop 2 SYMATTR InstName R2 SYMATTR Value 68k SYMATTR SpiceLine "" SYMBOL cap -224 320 R0 SYMATTR InstName C1 SYMATTR Value 47µ SYMATTR SpiceLine "" SYMBOL LED 144 128 R0 SYMATTR InstName D2 SYMATTR Value NSCW100 SYMATTR Description Diode SYMATTR Type diode SYMBOL voltage -400 288 R0 WINDOW 3 24 96 Invisible 2 WINDOW 123 0 0 Left 2 WINDOW 39 0 0 Left 2 SYMATTR InstName V1 SYMATTR Value PULSE(0 5 1 1u 1u 1 0 1) SYMATTR Value2 "" SYMATTR SpiceLine "" SYMBOL voltage -496 288 R0 WINDOW 123 0 0 Left 2 WINDOW 39 0 0 Left 2 SYMATTR InstName V2 SYMATTR Value 10 SYMATTR Value2 "" SYMATTR SpiceLine "" SYMBOL res 0 -160 R0 SYMATTR InstName R4 SYMATTR Value 1000 SYMATTR SpiceLine "" TEXT -530 520 Left 2 !.tran 3 startup

-- JF

Reply to
John Fields

detector out of two of transistors and a few resistors, but I can't find th e circuit anywhere. Searches keep throwing up stuff about astable multivibr ators and nand gates and that's not what I'm looking for.

line. The pulse comes only after several days of inactivity and should tur n an LED on permanently. No reset required and any subsequent pulses must * not* turn the LED off again, so it's operating like a bistable latch (if th at's the right term).

Nice... but I had to reduce C1 from 47 Farads to 47nF :^)

George H.

Reply to
George Herold

detector out of two of transistors and a few resistors, but I can't find the circuit anywhere. Searches keep throwing up stuff about astable multivibrators and nand gates and that's not what I'm looking for.

line. The pulse comes only after several days of inactivity and should turn an LED on permanently. No reset required and any subsequent pulses must *not* turn the LED off again, so it's operating like a bistable latch (if that's the right term).

[snip]

Along these lines, what would the group recommend for a weatherproof switch to detect that a yard gate is not closed all the way? ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     | 
| Analog Innovations, Inc.                         |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| Phoenix, Arizona  85048    Skype: Contacts Only  |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 
              
I love to cook with wine.     Sometimes I even put it in the food.
Reply to
Jim Thompson

detector out of two of transistors and a few resistors, but I can't find the circuit anywhere. Searches keep throwing up stuff about astable multivibrators and nand gates and that's not what I'm looking for.

line. The pulse comes only after several days of inactivity and should turn an LED on permanently. No reset required and any subsequent pulses must *not* turn the LED off again, so it's operating like a bistable latch (if that's the right term).

The 1 second requirement significantly complicates the solution. If any old pulse will do, use a latching relay...either magnetic latch or feedback from the contacts.

As always, the devil is in the details. How much current can you get out of the 5V pulse? What voltages are available when the pulse is not present? How do you expect to reset the thing? What are the specific details of the 1 second requirement? Timing accuracy and boundary conditions? Assume you wouldn't have mentioned it if it weren't important.

magnet/reed switch from a burglar alarm door/window ajar sensor.

Reply to
mike

detector out of two of transistors and a few resistors, but I can't find the circuit anywhere. Searches keep throwing up stuff about astable multivibrators and nand gates and that's not what I'm looking for.

line. The pulse comes only after several days of inactivity and should turn an LED on permanently. No reset required and any subsequent pulses must *not* turn the LED off again, so it's operating like a bistable latch (if that's the right term).

.. or just a resistor (eg. 4K7) to drive the gate of a 2N5064, in turn drive an LED with series resistor (4 parts). It will detect a positive pulse of any length greater than a couple microseconds by latching on, and thence cease to care about the state of the input, so the LED will stay on until the power is cycled.

Should be battery powered sensors with RF interface available for security.

Reply to
Spehro Pefhany

Outdoors? It wouldn't last. Depending on the type of latch, one of several types of industrial position sensor would be the best bet.

Reply to
Michael A. Terrell

I missed that part of the specification. Probably want three or more magnetic sensors physically placed and logically connected to insure that it can't be spoofed by a magnet without intimate knowledge of the design. Encase the bullet-resistant box in concrete. Probably want to put a signal into the razor wire so you can use it as a proximity sensor. Maybe a satellite phone to call the cops when the phone lines get cut. And a bluetooth connection to the alarm system with an encrypted heartbeat so it can't be jammed. Probably want at least one guard dog with a wireless heart rate sensor just in case they get put to sleep. Of course, destroy all documentation and eliminate everybody you ever discussed it with. Crush the hard drive. Grind it up into dust and scatter it at least 10 miles off shore.

If security isn't the primary requirement, there are lots of devices. The Powerhouse MS13A is a X-10 wireless PIR motion detector. You could hack a relay into that and get motion plus gate detection. They have other alarm sensors, but I don't know the numbers. There are devices designed to alert you when your mailbox door is opened. Driveway occupancy sensors. Wireless doorbells. Garage door openers. RF TV remotes.

And my personal favorite...close the damn gate. ;-)

Reply to
mike

And the gate is steel. Maybe the other way around, a coil whose inductance changes with gate position? ...Jim Thompson

-- | James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at

formatting link
| 1962 | I love to cook with wine. Sometimes I even put it in the food.

Reply to
Jim Thompson

Some of us, often referred to as the "evil rich", EMPLOY paisanos who fail to close the gate.

I know what to do... fire 'em all ;-) ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     | 
| Analog Innovations, Inc.                         |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| Phoenix, Arizona  85048    Skype: Contacts Only  |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 
              
I love to cook with wine.     Sometimes I even put it in the food.
Reply to
Jim Thompson

Replace them with an electric gate closer. I still see lots of those

24 V satellite motors around. All you need are two wires to the motor, a 24V 5A supply & a reversing switch. There are a pair of adjustable limit switches inside that can be set for full open & fully closed. An On/Off switch for added safety, in case someone tries to stop it by putting their hand in the wrong place. I have a pair of 18" jacks that I'm going to use on the swung gates at the end of my driveway. A couple old C-band sat controllers for the power supplies, and an eight button RF remote for the truck. The RF remote & matching relay output receiver are about $10 on Ebay. I should have less than $20 in the pair of controllers. :)

The two eight foot pieces of 6" black iron pipe cost me a lot more than that. The old gate posts are wood, and the gates change position,, depending on the amount of rain.

Reply to
Michael A. Terrell

There are waterproof inductive proximity sensors with all the circuitry in a little tube.

Reply to
Spehro Pefhany

Jim said 'yard gate' and a motor is more suited for a driveway gate.

For the sensor I'd say light beam interruption over a 1-inch gap into which a little tab enters.

To close it automatically the hinge can be easily modified to use gravity, with a magnet to pull it the last centimeter hard enough to engage a latch.

Just put a shim between the upper hinge and the post, and mortise it more deeply into the gate. The magnet might not be needed.

--

Reply in group, but if emailing add one more 
zero, and remove the last word.
Reply to
Tom Del Rosso

Here's the netlist of the Malvino design. Seems to run alright...

"ExpressPCB Netlist" "LTspice IV Version 4.17"

1 0 0 "" "" "" "Part IDs Table" "Q1" "2N3904" "" "Q2" "2N3906" "" "V1" "12" "" "V2" "PULSE(0 5 1 1n 1n 1 1 1)" "" "R_LOAD" "1200" ""

"Net Names Table" "N003" 1 "N004" 3 "0" 6 "N002" 9 "N001" 11

"Net Connections Table"

1 1 1 2 1 2 2 0 2 1 2 4 2 2 1 5 2 4 1 0 3 1 3 7 3 3 2 8 3 4 2 0 4 2 3 10 4 5 2 0 5 3 1 12 5 5 1 0
Reply to
phaedrus

I was considering his austic grandson. He couldn't open that type of gate by himself.

Reply to
Michael A. Terrell

a reed switch like used for alarms...

--
?? 100% natural 

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
Reply to
Jasen Betts

Perhaps it would be more productive to fix or improve the gate closing mechanism, thus eliminating the need for a weather proof switch and associated electronics? There is a wide variety of gate closing mechanisms available, usually based on a linear or rotary spring mechanism. Many can be retrofitted to an existing gate:

Then, there's the cannonball gate closer:

--
Jeff Liebermann     jeffl@cruzio.com 
150 Felker St #D    http://www.LearnByDestroying.com 
Santa Cruz CA 95060 http://802.11junk.com 
Skype: JeffLiebermann     AE6KS    831-336-2558
Reply to
Jeff Liebermann

Actually I want to know that it was opened. Got a Mexican claiming he worked when he didn't :-( ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     | 
| Analog Innovations, Inc.                         |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| Phoenix, Arizona  85048    Skype: Contacts Only  |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 
              
I love to cook with wine.     Sometimes I even put it in the food.
Reply to
Jim Thompson

Oh...

Writing software, designing gate alarms, and in general, solving problems are all easy if you don't worry about error conditions. Real problem solving is more about dealing with oversights, errors, anomalies, stupidity, and abuse, than about making it work. Whenever approaching such things, I ask "What problem are you trying to solve?" The answer often eliminates a wide assortment of obvious and usually impulsive solutions.

If you can see the gate from the house, install a security camera and DVR. I recommend the clear picture of an IP camera over the fuzzy blurr of a composite video camera. Then you can see who or what opened the gate. If the Mexican worker is clever, he'll probably "accidentally" jam the gate open and defeat your scheme. If a camera and DVR are too elaporate, a PIR motion sensor will detect the Mexican directly.

However, if you must have a gate switch, the previously recommened proximity sensors are probably good enough. A burglar alarm type reed switch and magnet will also work if you keep them away from the metal gate.

--
Jeff Liebermann     jeffl@cruzio.com 
150 Felker St #D    http://www.LearnByDestroying.com 
Santa Cruz CA 95060 http://802.11junk.com 
Skype: JeffLiebermann     AE6KS    831-336-2558
Reply to
Jeff Liebermann

You keep adding requirements to the spec. Often, it's useful to monitor the thing you want monitored. Monitoring attendance is no guarantee that you actually get work. Stated another way: If you can't tell if the work was done, you're paying for work you don't need.

Reply to
mike

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.