simple one-shot pulse detector circuit needed

Nov 20, 2012 42 Replies

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.


etector out of two of transistors and a few resistors, but I can't find the circuit anywhere. Searches keep throwing up stuff about astable multivibra tors 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 *n ot* turn the LED off again, so it's operating like a bistable latch (if tha t's the right term).

I assume there is another power line to run it from (+5 V). I don't know the transistor circuit, but how about a S/R flip flop?

George H.

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

An SCR would do it, once triggered it only turns off if it loses power on the anode.

You can get the effect of an SCR with two transistors, at least for this purpose. I can't remember, but doing a search for something like that should do it.

Michael

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).

Now make it blink miser-style, as in LM3909 ;-)

[snip, details in...]

Message-ID:

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

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.

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.

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.

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.

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

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. ;-)

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.

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.

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.

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

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.

Can't get this to run for some reason, John. This is a LT spice netlist? Just get the following error message: "multiple instances of SYMATTR" Since someone else on this thread seems to have got it going (albeit with a slight mod to a cap value) I assume I'm doing something wrong (not an unknown experience).

d
v

Yes, I'm aware a SCR would be ideal, but I only have great fat thumping big ones lying around which would be a waste for such a small signal application.

Malvino's book Electronic Principles shows the kind of thing I'm talking about, I've just discovered, at page 501. Vanishingly terse explanation with no reference to it in the index or contents for some reason. Uses a BJT PNP/NPN pair with bases and collectors shorted together between them and one resistor in the Vcc line. I reckon this should do the trick with any luck.

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

Hmm, I just cut and pasted the whole thing into notepad... or pick some other text editor. Then save it with a .asc ending, into my ltspice/bin and run it.

George H.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required