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 
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
Current Controlled Oscillator
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [14 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
synaesthesia



Joined: May 27, 2014
Posts: 291
Location: Germany
Audio files: 85

PostPosted: Sat May 02, 2015 8:35 am    Post subject: Current Controlled Oscillator
Subject description: another Schmitt-Trigger oscillator
Reply with quote  Mark this post and the followings unread

Yesterday elektrouwe, Christoph from roboternetz.de, and me had a great time during a spontaneous Lunetta meeting organized by Uwe. Thanks Uwe! We didn't build anything, but we had a lot to discuss. Christoph showed me a circuit that would divide down a pulse train and that sparked an idea. The original circuit used a 4066 analog switch, a pot, and a diode in series. Instead of that I though about using a resistor network and a transistor in series and omit the diode. It actually worked right away.

I call this thing a pulse controlled oscillator because it needs a high frequency pulse or square wave to work. These pulses are sent to the transistor which opens for short times and allows a current from the resistor network to load a capacitor. Once the capacitor voltage reaches the trigger level of the 40106 Schmitt-Trigger inverter, the output changes to low and the capacitor is immediately discharged. Then this process repeats, resulting in a series of short negative pulses at the output of the inverter. The frequency is determined by the current that is switched onto the capacitor. By using a resistor network of three resistors plus a pull-up resistor, I can generate eight different tones by connecting the resistor to logic levels from other CMOS chips. Five oscillators could be built this way from the inverters of a single 40106 chip, sharing a high frequency oscillator made from the sixth inverter.

Below is a circuit that shows how the oscillator could be used. A low frequency oscillator from one inverter feeds a 4040 counter to get a series of low frequency clocks. These can be patched to the inputs of two pulse controlled oscillators. Actually, you could build two more and still would need only one 40106 chip. If you try that I recommend that you use two 680nF capacitors for the additional oscillators.

By connecting the resistor network to different outputs of the 4040 counter, you get different sequences of eight tones. In addition to the resistor network, I added three diodes connected to the base of each transistor. Two or four diodes would be possible as well. These work as a wire-AND gate together with the 100K base resistor. By connecting the diodes to the 4040 counter outputs you will get different rhythm patterns for the melody by disabling the oscillator every time any of the diodes is connected to ground level. You may leave any of the inputs open, there is no need to connect each of them.

In this circuit the output frequencies from the oscillators are finally added via 47K resistors. Instead of using resistors to mix the outputs, they could also be combined by a logic gate and then fed the result to a counter or flip-flop to get a square wave again. That sounds much nicer, but I wanted to keep the circuit simple.

In the recording I start with a nice pattern and after a while begin patching the inputs randomly to other outputs. At about 3:00 min I increase the speed of the 4040 clock for a while. The sound of the circuit is pretty raw. If this is too raw for you, try adding a delay of 0.2 to 0.4 seconds to it and it will become really interesting.


Pulse Controlled Oscillator.PNG
 Description:
 Filesize:  17.39 KB
 Viewed:  707 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

Pulse Controlled Oscillator.PNG



Pulse Beat.PNG
 Description:
 Filesize:  31.26 KB
 Viewed:  784 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

Pulse Beat.PNG



Pulse Beat.mp3
 Description:

Download (listen)
 Filename:  Pulse Beat.mp3
 Filesize:  4.52 MB
 Downloaded:  1132 Time(s)

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



Joined: Jan 25, 2015
Posts: 15
Location: boston

PostPosted: Sat May 02, 2015 11:24 am    Post subject: Reply with quote  Mark this post and the followings unread

cool circuit.

could a saw wave be taped from the capacitor?
Back to top
View user's profile Send private message
synaesthesia



Joined: May 27, 2014
Posts: 291
Location: Germany
Audio files: 85

PostPosted: Sat May 02, 2015 11:56 am    Post subject: Reply with quote  Mark this post and the followings unread

Nah, this circuit wasn't ready for posting yet. There are a few things I need to add. First, the high frequency switching does have an effect: it does divide the pulse rate down a bit. However, the oscillator works fine without it as well. To make things simpler I removed it. The capacitor needs to be increased a bit then. Also, a small resistor in series with the diode in the feedback path makes the pulses a bit wider. That makes it actually a current-controlled oscillator. I changed the topic text for that reason. And finally, two diodes for the wired-AND are enough. I haven't used all three of them so far. That makes a couple of changes and thus here are two more pictures and a new recording.

I am still not perfectly happy with the circuit yet. Even with two identical capacitor values (well, face-values), there are a lot of dissonances. The capacitor and resistor values will never be so well tuned that the frequencies become harmonic. Maybe there is a way to sync the oscillators somehow so that the dissonances go away? Any ideas are welcome.


Current Controlled Oscillator.PNG
 Description:
 Filesize:  10.05 KB
 Viewed:  636 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

Current Controlled Oscillator.PNG



Pulse Beat 2.PNG
 Description:
 Filesize:  49.22 KB
 Viewed:  707 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

Pulse Beat 2.PNG



Pulse Beat 2.mp3
 Description:

Download (listen)
 Filename:  Pulse Beat 2.mp3
 Filesize:  1.07 MB
 Downloaded:  1028 Time(s)

Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24549
Location: The Netherlands, Enschede
Audio files: 301
G2 patch files: 320

PostPosted: Sat May 02, 2015 12:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

Oh .. I had thought that would be what the high frequency OSC was for . for syncing ... lol .. maybe it should not be so HF then.

Edit : and have narrow positive pulses.

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
elektrouwe



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

PostPosted: Sun May 03, 2015 2:25 am    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
Oh .. I had thought that would be what the high frequency OSC was for... and have narrow positive pulses.


yes, the original intention was to build an "analog frequency divider" by using a "frequency controlled oscillator". This is a standard "saw VCO core" which is fed by (narrow) pulses instead of DC or other modulated CV.
Lower pic shows 2 cascaded VCO cores operating as chained frequency dividers: the 1st. divides by 7, the 2nd divides by 4, so the output frequency is a 1/28 of the master oscillators frequency .
The upper schematic shows a simplified "diode only version" which is the one Christoph used in his neural network. As you can see, the step size of the sawtooth stairs are not constant ( because there is no more constant current source) and high division ratios are harder to set with a potentiometer.
Both circuits are ment as building blocks (freq.divider) and not as standalone Lunetta instrument. That's why synaesthesia tries to mod it and get something more musical out from it. We will for sure hear some crazy sounds soon Smile

[/img]


AnalogDivChainDiod.jpg
 Description:
 Filesize:  52.98 KB
 Viewed:  651 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

AnalogDivChainDiod.jpg



AnalogDivChain.jpg
 Description:
 Filesize:  52.83 KB
 Viewed:  649 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

AnalogDivChain.jpg


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



Joined: May 27, 2014
Posts: 291
Location: Germany
Audio files: 85

PostPosted: Sun May 03, 2015 3:09 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks elektrouwe for adding the background info. I admit that there isn't much left of that spirit any more. My circuit seems to turn into a completely different direction. I haven't given up on the idea of the melody sequencer yet and the new approach is: if I cannot make the second oscillator harmonic, I make it percussive. The recording shows where I am right now. I guess this is going to become a kind of drum sequencer. Now I need to add a few more oscillators. Stay tuned.


Test1.mp3
 Description:

Download (listen)
 Filename:  Test1.mp3
 Filesize:  578.46 KB
 Downloaded:  993 Time(s)


Test2.mp3
 Description:

Download (listen)
 Filename:  Test2.mp3
 Filesize:  550.71 KB
 Downloaded:  1019 Time(s)

Back to top
View user's profile Send private message
rico C



Joined: Feb 27, 2014
Posts: 26
Location: Redondo Beach

PostPosted: Sun May 03, 2015 1:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

love it, thanks as always for sharing
Back to top
View user's profile Send private message
Steveg



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

PostPosted: Sun May 03, 2015 4:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hello electrouwe, Can you tell us more about how the frequency division works please?
I'm guessing it is set by the R8/R3 and R2R7 ratios (in the diode version). Is this correct?
Thanks.
Back to top
View user's profile Send private message
elektrouwe



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

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

Steveg wrote:
... more about how the frequency division works please?
I'm guessing it is set by the R8/R3 and R2R7 ratios (in the diode version)...

R3 and R7 are current limiters to make sure the Schmitt-triggers output pulses are not too narrow and reach VDD so they can be used for further stages. Because R3 defines the reset pulse width for the 2nd divider stage, it has a strong influence on this division ratio. R7 is not so important for the division ratio of the 1st stage, as long as reset pulse width << 1/output frequency.
Division ratio M is a function of many parameters:
M ~ ( R * C * V_trig ) / ( T_in * V_charge )
with T_in : input pulse width, V_trig: trigger threshold (sawtooth amplitude), V_charge: effective voltage over R that charges C.
In a real circuit I would rather change input pulse width and keep R8 high and R3 low to adjust M , or use a potentiometer to adjust input voltage.
Back to top
View user's profile Send private message
Steveg



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

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

elektrouwe wrote:
Division ratio M is a function of many parameters.

That looks like it needs real research. Thanks anyway elektrouwe!
Back to top
View user's profile Send private message
Steveg



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

PostPosted: Tue May 05, 2015 3:24 am    Post subject: Reply with quote  Mark this post and the followings unread

I think I understand how elektrouwe's diode circuit works now.

If we examine R1 and R14 we can see that A3 has an on:off duty cycle of about 1:10.

This causes R8 to have an effective value (R8eff) of 198K averaged over the entire cycle.

The division factor is roughly proportional to the ratio of time constants ( R8eff*C2 ) / (R1* C1 ) = (10n * 198K) / (3n3 * 100K) = 6 and indeed you can see six steps in the Saw1 waveform.

But wait! I hear you cry, elecktrouwe said the circuit divides by 7. Well yes, I you look carefully at the top of the waveform you will see a little spike where the seventh step triggers A1 and causes the wave to collapse back to 0. And if you count the flat tops of the steps which is the correct measure of the number of A3 cycles you can see there are 7. So elekrouwe is correct.

Similarly you can use the R3:R8eff ratio to calculate the duty cycle of A1 and thus the effective value of R2 and then you can calculate the R2eff*C2 / R8eff*C1 ratio and thus the N divisor. I will leave the calculations to the reader as I am out of mental arithmatic for today.
Back to top
View user's profile Send private message
synaesthesia



Joined: May 27, 2014
Posts: 291
Location: Germany
Audio files: 85

PostPosted: Tue May 05, 2015 10:44 am    Post subject: Reply with quote  Mark this post and the followings unread

glot wrote:
could a saw wave be taped from the capacitor?
Sorry glot, didn't mean to ignore your question. I needed a bit of time to clean up my messy workplace and move the circuit close enough to the scope Embarassed
Here is a picture captured from the input (yellow) and output (blue) of the inverter. There is indeed a saw-ish wave there, but it probably cannot be captured here without buffering. The output is a pulse wave. In the picture the pulses happen to be quite wide, but most of the time they are much narrower. To get a nicer waveform I found it easier to add a capacitor of a few hundred nF at the output. This is exactly what I did for the next version of the circuit.

Here is another recording sample to whet your appetite. Nicer waveforms, but so far only two oscillators of five used. The circuit will need only two CMOS chips.


CCO without cap.png
 Description:
 Filesize:  4.16 KB
 Viewed:  18713 Time(s)

CCO without cap.png



Test3.mp3
 Description:

Download (listen)
 Filename:  Test3.mp3
 Filesize:  508.26 KB
 Downloaded:  869 Time(s)

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



Joined: May 27, 2014
Posts: 291
Location: Germany
Audio files: 85

PostPosted: Tue May 05, 2015 1:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

One more sample with the claves and bass oscillators. I will use the last oscillator for my synth drum circuit. That makes a total of five oscillators: melody, bass, claves, beat and synth. I wonder how they will sound together.


Test4.mp3
 Description:

Download (listen)
 Filename:  Test4.mp3
 Filesize:  471.52 KB
 Downloaded:  870 Time(s)

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



Joined: May 27, 2014
Posts: 291
Location: Germany
Audio files: 85

PostPosted: Sat Aug 15, 2015 6:37 am    Post subject: Reply with quote  Mark this post and the followings unread

Back to the oscillator. Here is a simple circuit that I patched today. It is using two CCOs driven by the current from a resistor ladder. Three slow oscillators drive the inputs of the transistor ladder. Because I have used LDRs with a pretty low dark resistance instead of pots in the three oscillators, I had to use rather large capacitors for C1,C2,C3. If you replace the LDRs by 100K pots, you can use much smaller caps, e.g. 10uF, 22uF, 47uF. RV1 is used to balance the CCOs. In the recording I started with RV1 fixed and then waved my hand over the three LDRs for a while. From 0:37 to 0:45 I changed the balance at RV1. After a bit more hand waving I turned RV1 back at about 0:58.


AngryHornett.PNG
 Description:
 Filesize:  33.19 KB
 Viewed:  401 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

AngryHornett.PNG



AngryHornett.mp3
 Description:

Download (listen)
 Filename:  AngryHornett.mp3
 Filesize:  1.13 MB
 Downloaded:  919 Time(s)

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 [14 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