# square wave duty cycle

Thread Starter

#### suzuki

Joined Aug 10, 2011
119
Hi,

Having some trouble wrapping my mind around this, so I thought i would try to ask here.

I generated a square wave waveform with the following equation:

v = (4/∏) * ( sin(2∏ft) + (1/3)sin(6∏ft) + (1/5)sin(10∏ft))

This gives an approximate square wave with a duty cycle of 50%.

My question is, how can i alter this equation such that i can control the duty cycle of the output?

#### someonesdad

Joined Jul 7, 2009
1,583
You can't, at least not easily. See attached.

Of course, I hope someone proves me wrong, as I've wanted the same thing occasionally.

#### Attachments

• 75.9 KB Views: 21