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 
Streaming now
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
Three PWM controlled Oscillators
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Steveg



Joined: Apr 23, 2015
Posts: 184
Location: Perth, Australia

PostPosted: Sat May 16, 2015 10:11 pm    Post subject:  Three PWM controlled Oscillators
Subject description: Obviously madness
Reply with quote  Mark this post and the followings unread

I was having a read of synaesthesia's current controlled oscillators and I was thinking of other ways to achieve the result so I came up with the PWM controlled oscillator. You may ask what is the advantage of controlling the oscillator this way if you just need another oscillator to control it? Well one PWM oscillator can control a whole bank of different pitch oscillators. See PWM-1.

U1B is needed so that the output remains a square wave otherwise you get duty cycle control not frequency control as in PWM-2. The structure D1/D1/R1/U1B is an alternative OR gate that has a lower chip count if you are only building one or two oscillators. U1B could be any non-inverting gate which is needed to correctly provide a current sink.

You can also partially control the oscillator using something like PWM-3. The RV1A/R1/RV1B structure is intended to control the degree of modulation but I think it is wrong. I think I need to split R1 into two and connect the center to half the supply voltage. Using a second dual pot RV2A/B keeps the relative contributions of the two current sources proportional so they track nicely across the frequency range.

In all three cases the PWM frequency needs to be higher than the output frequency to get accurate control. If the two frequencies are close the you will get aliasing effects. With PWM-3 if the PWM source is a 50% duty square wave with a lower frequency than the output you will get frequency modulation of the output.


PWM-3.PNG
 Description:
 Filesize:  15.3 KB
 Viewed:  438 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

PWM-3.PNG



PWM-2.PNG
 Description:
 Filesize:  13.38 KB
 Viewed:  446 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

PWM-2.PNG



PWM-1.PNG
 Description:
 Filesize:  12.7 KB
 Viewed:  412 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

PWM-1.PNG


Back to top
View user's profile Send private message
Steveg



Joined: Apr 23, 2015
Posts: 184
Location: Perth, Australia

PostPosted: Sat May 16, 2015 10:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

Aargh! The preview shows the attachments in reverse order to how thew will actually be displayed! Confused
Back to top
View user's profile Send private message
joshs



Joined: Dec 05, 2014
Posts: 32
Location: Home

PostPosted: Sun May 17, 2015 9:17 am    Post subject: Reply with quote  Mark this post and the followings unread

So varying the duty cycle controls the frequency of the oscillators? Got any sound samples of this? Might be useful for use with atmega chips since they have PWM but not analog outs.
Back to top
View user's profile Send private message
elektrouwe



Joined: May 27, 2012
Posts: 147
Location: Germany

PostPosted: Sun May 17, 2015 2:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

Steve, that are nice variants of the pulse controlled oscillators/analog freq. dividers or whatever they are called. You could simplify the design by replacing the AND+XOR+INV by a simple analog switch (eg. 4066) or by a tri-state output gate ( eg. 74HC125 ). For a circuit with 1 master oscillator even a 74HC573 or an octal tri-state buffer could be used to control as much as 8 oscillators by 1 pwm source.
note: I've breadboarded this last year; I remember that I had to alter some R,C values to make it work in the bass audio range which I shamefully did not correct in the schematic...


40106ChordGen.jpg
 Description:
 Filesize:  84.5 KB
 Viewed:  562 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

40106ChordGen.jpg


Back to top
View user's profile Send private message
Steveg



Joined: Apr 23, 2015
Posts: 184
Location: Perth, Australia

PostPosted: Mon May 18, 2015 1:00 am    Post subject: Reply with quote  Mark this post and the followings unread

Ooh! thanks for that electrouwe! I hadn't thought in terms of Analog switches or tri-state. Very Happy

I'll have to see if I can simplify the FM modulator to use 4066s.

@joshs - sorry I haven't actually built any of these yet.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [5 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