electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
poster
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
Variable Duty Cycle Oscillator
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Wed Jul 08, 2009 7:44 am    Post subject: Variable Duty Cycle Oscillator
Subject description: Made with an Inverter
Reply with quote  Mark this post and the followings unread

Let's try a little thought experiment, a twist on the Inverter oscillator. This is normally an inverter with an RC feedback and it oscillates, right? OK, so now let's leave the cap there but replace the resistor with two parallel resistor-diode branches facing in the opposite direction. Call them R1 and R2. What happens?

The charging cycle will be timed by R1*C and the discharging cycle will be timed by R2*C because of the two steering diodes. I'd guess that the overall timing would be controlled by (R1+R2)/2, and the duty cycle would be set by varying the values of R1 and R2 from each other.

Now let's take it one more step, and replace the two resistors with a potentiometer. The wiper is on the inverter's output, the two terminal connections go to the diodes, and the diodes connect to the cap and the input. We'll call the potentiometer value Rx. Let's denote the pull-up resistor as R1 and the pull-down resistor as R2=(Rx-R1). Then the frequency is controlled by the earlier mentioned expression (R1+R2)/2 which equals (R1+(Rx-R1))/2 and the R1's cancel leaving the frequency controlled by Rx/2.

What this means, if my thinking is close to correct, is that we can make a fixed frequency variable duty cycle oscillator where a potentiometer controls the duty cycle and the frequency is fixed. It's a variable duty cycle oscillator with fixed frequency.

Would that be handy for Lunettas? Is this idea nothing new? Have you seen it before?

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
slacker



Joined: Nov 18, 2007
Posts: 301
Location: England
Audio files: 11
G2 patch files: 1

PostPosted: Wed Jul 08, 2009 1:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

That's a cool idea, not new though I'm afraid, but most things aren't Smile There's a few examples of that and similar things in Don Lancaster's CMOS Cookbook. One of the examples he uses it for is to create a variable brightness lamp, where the duty cycle sets the brightness.

If you put another pot wired as a variable resistor in parallel with the pot and diodes you can control the frequency and the duty cycle, I made a reasonable LFO like this by buffering the inverter's input to get a triangle/ramp wave form and using the output to get a variable duty cycle square.
I can't remember off hand what pot values I used but there wasn't much interaction between the duty cycle and frequency controls. The frequency did change slightly with the duty cycle but not enough to worry about. I'll see if I can dig out my notes
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Wed Jul 08, 2009 4:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks slacker, another reinvented wheel! Well, if I'm following in the great Don Lancaster's footsteps at least for one step, I guess that's a good thing!

Cheers!

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
DGTom



Joined: Dec 08, 2008
Posts: 211
Location: Adelaide
Audio files: 3
G2 patch files: 1

PostPosted: Wed Jul 08, 2009 5:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

slacker wrote:
I'll see if I can dig out my notes


If you can that would be great!

Even the way Inventor describes the cct. I think this may be usefull feeding one side of an XOR or a NAND with a VCO into the other side, maybe a switch to change the cap size on the inverter, just differant to having to varying pitch sources thru the processing gate.
Back to top
View user's profile Send private message
slacker



Joined: Nov 18, 2007
Posts: 301
Location: England
Audio files: 11
G2 patch files: 1

PostPosted: Thu Jul 09, 2009 10:18 am    Post subject: Reply with quote  Mark this post and the followings unread

Here's what I actually built, It's part of my still work in progress, mostly CMOS synth.
If you ditch the opamp and associated components you've got something you could use in a Lunetta, the switchable cap takes it from LFO speeds to audio. Ditch the extra pot and the 1k resistor and you've got what Les originally posted.
It might be cool to hook a second inverter up to the square out then you'd get a complementary output, where the high to low ratio of the signal would be the opposite of the original output. That would give you 3 oscillators from one CD40106.
Apologies to Les if this is derailing his thread Smile


lfosnippet.png
 Description:
 Filesize:  35.14 KB
 Viewed:  9728 Time(s)

lfosnippet.png


Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Thu Jul 09, 2009 1:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Consider the thread derailed!

What made me think of the diode-based oscillator originally is something like what you mentioned earlier, the possibility of using multiple input gates to create oscillators. For example, using a NAND instead of an inverter, the extra input becomes an active high enable. But what would happen if you took say an XNOR gate and put different time constants in the two feedback paths?

Would you get some kind of galumpy galloping crazy oscillator or what? If that worked, how about more inputs? This one would have to be built or simulated, or at least calculated, as I can't think it out...

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use