Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

pulse generator

Status
Not open for further replies.

samjesse

New Member
Hi

I built a pulse generator with some components for the local radio shack, 555 on a breadboard and ...
I tested it and it puts out a 50% duty cycle square wave. With a variable resistor I am able to control the frequency.
I want to build one where I control the duty cycle as well as the frequency.

how do I do this? any diagrams?

Thanks
 
pwm-7555-png.7939
 
Simple, have two potentiometers, one varies the on time and the other varies the off time.

Can you guess which pot. varies the on time and which varies the off time?
 

Attachments

  • Pulse gen 555.GIF
    Pulse gen 555.GIF
    3.8 KB · Views: 623
Last edited:
hummm, number 2 on the 555 is the trigger, so that would be the on time trigger. #4 is the rest so that would be the off time, no, well, I do not know.
 
Sorry, I didn't label the schematic properly. Schematics should always be labelled so I've edited the schematic to add the labels.

When C2 charges via pin 3, Pot1 and D1, above 66% of the supply, pin 3 goes low, therefore Pot1 controls the on time.

When C2 discharges via pin 3, Pot2 and D1, below 33% of the supply, pin 3 goes high, therefore Pot2 controls the off time.

This circuit is for the 7555, you can use the 555 if you like but it won't be as good.
 
Last edited:
Yes, that was a typo.
 
Gold star if you can make the frequency and duty cycle adjustment independent. I've never figured out a way to do that.

EDIT: I should say that I actually have made them independent. However, adjusting one affects the range of the other. I was never able to come up with something that doesn't screw with the ranges.
 
Last edited:
Gold star if you can make the frequency and duty cycle adjustment independent. I've never figured out a way to do that.

EDIT: I should say that I actually have made them independent. However, adjusting one affects the range of the other. I was never able to come up with something that doesn't screw with the ranges.

How can they be made independent when one affects the range of the other? this is paradox.
 
How can they be made independent when one affects the range of the other? this is paradox.

I only said that I haven't been able to do it. You can adjust the frequency independent of duty-C, but then it affects the range. The quantities are independent, the ranges are not.
 
Last edited:
sorry, I misunderstood.
what is the different between the quantities and the ranges?

thx
 
Last edited:
If you can get this part, then all your problems will be solved.

**broken link removed**
 
sorry, I misunderstood.
what is the different between the quantities and the ranges?

thx


Well for example, you can vary the frequency over a range, say from 10hz to 10khz. That's the range. But the particular frequency you're running at
at any particular time is the quantity. As an example, maybe you have a range of 10hz to 10khz, that's the frequencies that is possible from your design. But you've adjusted your circuit, to 5k hz. That's the quantity.
 
Hi

I built a pulse generator with some components for the local radio shack, 555 on a breadboard and ...
I tested it and it puts out a 50% duty cycle square wave. With a variable resistor I am able to control the frequency.
I want to build one where I control the duty cycle as well as the frequency.

how do I do this? any diagrams?

Thanks

I have a circuit that does exactly what you want. I used two 555's so that the frequency and pulse width could be varied independently without affecting each other. The first 555 is a free running oscillator and the second is a one-shot. The oscillator triggers the one shot. You can vary the R-C timing components to get different frequencies and pulse widths.
 

Attachments

  • !555PULS.PDF
    20.5 KB · Views: 346
Last edited:
Gold star if you can make the frequency and duty cycle adjustment independent. I've never figured out a way to do that.

EDIT: I should say that I actually have made them independent. However, adjusting one affects the range of the other. I was never able to come up with something that doesn't screw with the ranges.
I wouldn't use the 555, I'd use a dual comparator IC such as the LM393.
 

Attachments

  • Pulse gen PWM var freq 393.GIF
    Pulse gen PWM var freq 393.GIF
    6.8 KB · Views: 918
Easy: 14 cents buys a second 555 timer....:D

The problem with that is as you adjust the frequency higher, then it becomes possible to adjust the one-shot period to a value longer than the period of the oscillator. Thus, the output frequency is affected by the DutyC adjustment.
 
The problem with that is as you adjust the frequency higher, then it becomes possible to adjust the one-shot period to a value longer than the period of the oscillator. Thus, the output frequency is affected by the DutyC adjustment.
That's true, but the frequency is not changing. The duty cycle is simply going to 100%. The osc frequency is still the same.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top