Jump to content
Electronics-Lab.com Community

555 timer Relay driver with TTL input


licketylips

Recommended Posts

Hello,

I want to drive a 12v relay off a 555 timer after being triggered by a 12v PIR sensor. The sensor has a 3.3V TTL output which goes HI when the sensor is triggered. Once the sensor turns off the TTL output returns to 0V.

-I  want the Relay to turn on for up to 1 minute (can be adjustable) after being triggered. 

I think I need a monostable circuit & I know the trigger needs a low input, but I'm unable to figure out how to put this together.
Is anyone able to fill in the gaps or provide a known working circuit?

20200523_093742.jpg

Link to comment
Share on other sites


The problem with the 555 timer is that it is not edge triggered and it is retriggerable. You would like a one-shot that is rising edge triggered. Retriggerible means as long as  a moose stands in front of the PIR the 555 would output a pulse; having inverted the output with a transistor. Thus the relay would stay energized. That is okay  if you want to  make a movie of a moose but not good for one  photo.

The 74121  is a nonretriggerable and is edge triggerable, that would be a better fit.

I will look at your circuit to see if it be used.  I am thinking perhaps one could invert the PIR output with a transistor and discharge a capacitor to momentarily  pull trigger pin 2 low.

What is the resistance of your relay if you already have one?  One needs to know how much current it would draw.

 

 

Link to comment
Share on other sites

the circuit below works in the LTspice simulator and as a prototype:

circuit1.JPG.d9b3931d240619a853d9b36edaac5d0a.JPG

Traces from the simulator:

simoutput.JPG.1fb7d6989add31f5b13c927c95c7770b.JPG

The green trace is the input from the sensor, the yellow trace is at pin 2, and the red trace is the output at pin 3. Note the positive going pulse when the input drops back to zero. That is why the Zener diode is required to limit it. Here it is  a 15v Zener diode.

The output from prototype the circuit: Here I am using 9 volts as I only have 12 volt Zeners.

small3704.JPG.1f76727c562fb2bb995390db11a28271.JPG

Here the blue trace is the trigger signal at pin 2 and the yellow trace is the output at pin 3 across a 150 ohm resistor for a relay load. The diode across the relay coil can be any general purpose diode like a 1N007 for example.  The output is much wider then I would expect for R4 at 1Megohms and C3 at 1 microfarad. Expected 1 sec.  not 1.4   There  are numerous online calculators for calculating these values.  

The values for the resistors are not critical except what you pick for R4:

  • R1: 1000 to 1500 ohms
  • R2; 20k   to  30K   "
  • R3: 30K  to  50K   "

all work in the simulator.

 

 

Link to comment
Share on other sites

  • 2 years later...
On 5/24/2020 at 9:58 AM, HarryA said:

the circuit below works in the LTspice simulator and as a prototype:

circuit1.JPG.d9b3931d240619a853d9b36edaac5d0a.JPG

Traces from the simulator:

simoutput.JPG.1fb7d6989add31f5b13c927c95c7770b.JPG

The green trace is the input from the sensor, the yellow trace is at pin 2, and the red trace is the output at pin 3. Note the positive going pulse when the input drops back to zero. That is why the Zener diode is required to limit it. Here it is  a 15v Zener diode.

The output from prototype the circuit: Here I am using 9 volts as I only have 12 volt Zeners.

small3704.JPG.1f76727c562fb2bb995390db11a28271.JPG

Here the blue trace is the trigger signal at pin 2 and the yellow trace is the output at pin 3 across a 150 ohm resistor for a relay load. The diode across the relay coil can be any general purpose diode like a 1N007 for example.  The output is much wider then I would expect for R4 at 1Megohms and C3 at 1 microfarad. Expected 1 sec.  not 1.4   There  are numerous online calculators for calculating these values.  

The values for the resistors are not critical except what you pick for R4:

  • R1: 1000 to 1500 ohms
  • R2; 20k   to  30K   "
  • R3: 30K  to  50K   "

all work in the simulator.

https://www.electronics-lab.com/community/index.php?/topic/47824-555-timer-relay-driver-with-ttl-input/backrooms game

 

To pull pin 2 low, a transistor and capacitor setup seems to be the only viable option. 370 ohms is the resistance of my relay. thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...