Set time delay for a comparator Op-amp circuit

Click For Summary
SUMMARY

This discussion focuses on designing a comparator Op-amp circuit that incorporates a time delay for LED activation and deactivation. The circuit utilizes a 330µF capacitor and a 28kΩ resistor to achieve a 10-second delay for LED turn-on and a 4-second delay for turn-off. The voltage at the non-inverting input can be adjusted between 1.5V and 9V, with the inverting voltage set at 6.1V. The solution involves configuring the RC time constant to ensure the desired delays are met, and troubleshooting revealed that a floating supply rail was causing issues.

PREREQUISITES
  • Understanding of Op-amp configurations
  • Knowledge of RC circuit time constants
  • Familiarity with basic electronic components (resistors, capacitors)
  • Ability to analyze circuit behavior and troubleshoot issues
NEXT STEPS
  • Research how to calculate RC time constants for specific delays
  • Learn about comparator circuits and their applications
  • Explore methods for creating multiple time delays in a single circuit
  • Investigate troubleshooting techniques for floating supply rails in circuits
USEFUL FOR

Electronics enthusiasts, circuit designers, and students studying analog electronics who are looking to implement time delays in comparator circuits.

Marshillboy
Messages
21
Reaction score
0

Homework Statement


[See attached diagram]

I'm trying to design a circuit that connects to the input terminals of the noninverting input of this comparator circuit such that:
-The input to my circuit consists of a SPST switch and a 9 volt battery
-When the switch is thrown on, there would be a 10 second delay before the LED turns on
-When the switch is thrown off, there would be a 4 second delay before the LED turns off

Homework Equations



Op-amps, RC circuit time constants

The Attempt at a Solution



So obviously I'm trying to use some configuration of capacitors and resistors to achieve the proper time constant to fit the specifications of the question. However, I've been messing around with this for awhile now to no avail.

The noninverting input can be set to anything between 1.5-9V.

I think it needs to involve a 330uF capacitor.

I'm not sure how I'm going to achieve two different times using the same component values (and thus same time constant?)

I tried connecting a 28k resistor in series with the voltage source (& switch) to the non-inverting input, with the 330uF capacitor connected between the input and ground, and the inverting voltage set to 6.1v but this configuration of components is not giving me the desired response.
 

Attachments

  • comparator.png
    comparator.png
    7.6 KB · Views: 2,443
Last edited:
Physics news on Phys.org
Marshillboy said:

Homework Statement


[See attached diagram]

I'm trying to design a circuit that connects to the input terminals of the noninverting input of this comparator circuit such that:
-The input to my circuit consists of a SPST switch and a 9 volt battery
-When the switch is thrown on, there would be a 10 second delay before the LED turns on
-When the switch is thrown off, there would be a 4 second delay before the LED turns off

Homework Equations



Op-amps, RC circuit time constants

The Attempt at a Solution



So obviously I'm trying to use some configuration of capacitors and resistors to achieve the proper time constant to fit the specifications of the question. However, I've been messing around with this for awhile now to no avail.

The noninverting input can be set to anything between 1.5-9V.

I think it needs to involve a 330uF capacitor.

I'm not sure how I'm going to achieve two different times using the same component values (and thus same time constant?)

I tried connecting a 28k resistor in series with the voltage source (& switch) to the non-inverting input, with the 330uF capacitor connected between the input and ground, and the inverting voltage set to 6.1v but this configuration of components is not giving me the desired response.

A simple RC circuit like the one below should get the job done.

rc1.gif


The voltage Vc across the capacitor would sit across the Vin terminals.

Simply configure the RC combination such that after 5\tau you've obtained the desired delay.

\tau = RC

You need to determine when the output of your comparator is going to be nonzero. (i.e. when the voltage at the positive input terminal exceeds the voltage at the negative input terminal)

You should be able to come up with a similar type of arrangement for the shut off delay, except that when the power is removed, another capacitor will dump previously stored charge across the diode and resistor combination such that the diode is turned off after 4 seconds.
 
I got it. After many solid hours debugging, turns out one of the supply rails was floating. Oops.

Thanks for the help!
 

Similar threads

Replies
15
Views
2K
Replies
34
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K