Designing a PWM Switch with RC Circuit and Schmitt Trigger for 50 Hz Frequency

Click For Summary

Discussion Overview

The discussion revolves around designing a PWM switch that outputs an active high signal if the width of the received PWM signal exceeds 1500 µs, and an active low signal if it is shorter. The frequency of the PWM signal is set at 50 Hz. Participants explore various circuit designs, including RC circuits, op-amp comparators, and 555 timers, while addressing challenges related to timing and signal processing.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes an initial design using an RC circuit with a cutoff frequency of 50 Hz and a threshold voltage of 1.9 volts, but notes that it cannot maintain an active high signal for the entire PWM period.
  • Another suggests using a digital solution with a clock source around 10 MHz for more reliable results, arguing that analog methods may not be accurate across temperature ranges.
  • Several participants propose using a 555 timer configured for 1500 µs to trigger a D flip-flop, with discussions on the need to invert the PWM signal for proper triggering.
  • One participant mentions difficulties with the 555 timer in monostable mode, where the PWM signal must go low before the clock will go low, leading to timing issues.
  • Another participant suggests adding a capacitor and resistor to improve the input configuration of the 555 timer.

Areas of Agreement / Disagreement

Participants express various approaches to the problem, with no consensus on a single solution. Some favor digital methods while others explore analog solutions, indicating a range of opinions on the best approach.

Contextual Notes

Participants note potential limitations in their designs, such as response time issues with added capacitors and the need for accurate timing in PWM signal processing. There are also concerns about the accuracy of analog methods in varying conditions.

Who May Find This Useful

Readers interested in circuit design, PWM signal processing, and those working on similar electronic projects may find this discussion relevant.

icculus723
Messages
6
Reaction score
0
i am trying to design a switch that will output an active high if the width of the received PWM signal is greater then 1500 uS. if it is shorter then this time then it should output an active low. The frequency of this signal is 50 Hz.

I designed a RC circuit with a cutoff frequency of 50 hz, and found a threshold level of 1.9 volts (when a 1500 uS pulse is passed through it) then planned to set that as VREF into an op amp comparator, but it obviously wouldn't maintain an active high signal for the entire period of the signal (unless the PWM signal was high for the whole .02 s. )

thought about adding an additional capacitor after the RC circuit.. but worried that will slow the response time down significantly..
also just ran into schmitt triggers today, though i was having trouble simulating them in pspice

any ideas?
thanks- brian
 
Engineering news on Phys.org
icculus723 said:
i am trying to design a switch that will output an active high if the width of the received PWM signal is greater then 1500 uS. if it is shorter then this time then it should output an active low. The frequency of this signal is 50 Hz.

I designed a RC circuit with a cutoff frequency of 50 hz, and found a threshold level of 1.9 volts (when a 1500 uS pulse is passed through it) then planned to set that as VREF into an op amp comparator, but it obviously wouldn't maintain an active high signal for the entire period of the signal (unless the PWM signal was high for the whole .02 s. )

thought about adding an additional capacitor after the RC circuit.. but worried that will slow the response time down significantly..
also just ran into schmitt triggers today, though i was having trouble simulating them in pspice

any ideas?
thanks- brian

Welcome to the PF.

First, a tip. "Seconds" is usually written as a small "s". Capital "S" is Siemens, the inverse unit for Ohms.

Second, can you use a digital solution? You could use a clock source around 10MHz, and do dividers and logic to make this work very reliably. The analog methods you are mentioning will not be very accurate, and will give varying results over your operating temperature range.
 
Why not tune a 555 timer for 1500 us and trigger the 555 with the rising edge of the pulse. (The pulse will have to be inverted to trigger the 555) Then use the output of the 555 to clock a D flip flop with your pulse going to the D input.
 
thanks for the replies, I may go with the LM555 route since I am familiar with using them... would i set up the D-Flip Flip as rising edge triggered then have the LM555 spit out anything beyond 1500 us on the rising edge of the flip flop? similar to the picture attached but on the rising edge.. I guess I am just not entirely sure on what the 555 is doing.
thanks!
 

Attachments

  • EdgeTrigD.jpg
    EdgeTrigD.jpg
    38.5 KB · Views: 492
icculus723 said:
thanks for the replies, I may go with the LM555 route since I am familiar with using them... would i set up the D-Flip Flip as rising edge triggered then have the LM555 spit out anything beyond 1500 us on the rising edge of the flip flop? similar to the picture attached but on the rising edge.. I guess I am just not entirely sure on what the 555 is doing.
thanks!

or wait i guess i would just set the 555 to be a 50 hz frequency signal with a pulse width of like 1501 us, have that be the clock for the D flipflop and then have it be falling edge triggered. Then send the PWM signal I am getting as the input to the flip flop..
 
skeptic2 said:
Why not tune a 555 timer for 1500 us and trigger the 555 with the rising edge of the pulse. (The pulse will have to be inverted to trigger the 555) Then use the output of the 555 to clock a D flip flop with your pulse going to the D input.
i triggerd the 555 off of the incomming PWM signal and set it up as a 1500 us clock in monostable mode, the problem is, the incomming signal must go low again before the clock will go low. so basically the PWM signal rises before the clock, and falls after the clock reguarless of the PWM signal...
any other ideas?
 
icculus723 said:
i triggerd the 555 off of the incomming PWM signal and set it up as a 1500 us clock in monostable mode, the problem is, the incomming signal must go low again before the clock will go low. so basically the PWM signal rises before the clock, and falls after the clock reguarless of the PWM signal...
any other ideas?

What is the application? This is beginning to sound a lot like schoolwork. You need to do the bulk of the work on your school projects.

And why not do it digitally like I mentioned earlier? It will give you the best results, and is pretty simple to design and build...
 
Could you draw a diagram of how your circuit is wired? I'm guessing you're trying to send an FSK signal on a power line. There's probably no one on this forum that knows more about that than Berkeman.
 
skeptic2 said:
Why not tune a 555 timer for 1500 us and trigger the 555 with the rising edge of the pulse. (The pulse will have to be inverted to trigger the 555) Then use the output of the 555 to clock a D flip flop with your pulse going to the D input.

skeptic2 said:
Could you draw a diagram of how your circuit is wired? I'm guessing you're trying to send an FSK signal on a power line. There's probably no one on this forum that knows more about that than Berkeman.

This is just a quick drawing of it... pretty sure this is how i got it wired though.
strange thing is, i accidentally connected the positive terminal of a 2nd power supply (That was not powered on, a second power supply had everything running) to the trigger input of the 555 (along with the PWM signal ) ... and it held the clock at the 1500us regardless of pulse width...

oh and i inverted the output of the 555 since the flip flop is triggered by the rising edge, so i wanted the rising edge at 1500us, not 0s...
 

Attachments

  • PWM.gif
    PWM.gif
    44.2 KB · Views: 549
  • #10
Your circuit looks good, however I'm not sure I understand your post #6. Are you saying that the period of a short pulse of incoming signal (the time from rising edge to rising edge) is less than 1500 us?
 
  • #11
skeptic2 said:
Your circuit looks good, however I'm not sure I understand your post #6. Are you saying that the period of a short pulse of incoming signal (the time from rising edge to rising edge) is less than 1500 us?

well if the pulse is less then 1500us the clock works fine, and will stay at 1500us. but if the pulse is longer then 1500 us, the clock follows the incoming signal and doesn't go low until the pulse goes low.
 
  • #12
Between the output of the inverter connected to pin 2 of the 555, and pin 2, connect a 0.001 uF cap in series and from pin 2 of the 555 connect a 10 k resistor to Vcc (basic input pull-up configuration) and see if that helps.
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
2
Views
3K
Replies
2
Views
5K
  • · Replies 50 ·
2
Replies
50
Views
10K
Replies
20
Views
6K
  • · Replies 8 ·
Replies
8
Views
19K
  • · Replies 10 ·
Replies
10
Views
16K
Replies
1
Views
6K
  • · Replies 5 ·
Replies
5
Views
3K