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
  host / artist show at your time
today> Modulator ESP Adventures In Sound
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
CV for vactrol rhythmic patterns?
Post new topic   Reply to topic Moderators: mosc
Page 1 of 2 [38 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Mon Apr 17, 2017 11:04 am    Post subject: CV for vactrol rhythmic patterns? Reply with quote  Mark this post and the followings unread

Hi,
Sure everyone is fed up with novices asking about this, but should I use an r/2r ladder before the LED or would a simple set of resistors in series work?
Thanks
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Mon Apr 17, 2017 3:18 pm    Post subject: Re: CV for vactrol rhythmic patterns? Reply with quote  Mark this post and the followings unread

zloth wrote:
Hi,
Sure everyone is fed up with novices asking about this, but should I use an r/2r ladder before the LED or would a simple set of resistors in series work?
Thanks


We love novice people here at E-M. Cool

Perhaps I don't understand the question - usually a DAC (such as an R/2R ladder) is used with a microprocessor to create an analog voltage from digital data. Not sure how this relates to a LED. If you just want to safely turn on / off an LED, all you need is a properly sized current limiting resistor (just one).

Since there's no schematic to look at, I can't tell what "the LED" is for...

_________________
FPGA, dsPIC and Fatman Synth Stuff

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
corruptio optimi pessima
Back to top
View user's profile Send private message Visit poster's website
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Tue Apr 18, 2017 12:00 am    Post subject: Reply with quote  Mark this post and the followings unread

Thank you for your reply Smile
Perhaps if I explain as best I can:
As I understand it, a vactrol is basically an enclosure containing an LED & an LDR, the brightness of the LED controls the LDR which can be used in place of a potentiometer.
I want to be able to vary the brightness of LED in a rhythmic way to control pitch, filter cut off, anything that could be done with a pot. Basically a simple type of CV-driven sequencer.
I have used an r/2r with various timing sources (4093 LFOs, 4060 ripple counter, shift register) for creating a CV to control the pitch of a 4046, and assumed it could be used similarly to vary the brightness of the LED inside a vactrol.
On the dlbelectronics Lunetta page there is a schematic for a WSG filter modified "I got rid of the coarse and fine pots for cutoff and instead added 2 CV inputs via Vactrols for controlling cutoff with other modules... I used some hand made vactrols, 4N25 opto-couplers as well as a couple VTL5C3's. It would be a good idea to add a pot as an adjustable voltage divider before going to the Vactrol's LED. This way you would have more control over the level of CV getting to the LED." This got me thinking (never a good thing) that a CV from a DAC could be used, but wanted to ask more experienced Lunettists before investing in anything.
Hope that clarifies my situation at least a little
Smile
Back to top
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5841
Location: Moon Base
Audio files: 709

PostPosted: Tue Apr 18, 2017 2:37 am    Post subject: Reply with quote  Mark this post and the followings unread

hmm, never thought about using an R2R to control a vactrol, could be interesting. It might work if you choose the
resisors small enough, but don't make them too small or it will draw too much current from whatever you want to
drive it with. There is a better method though which is using an opamp as a current source. There are several ways
of doing it, with or without extra transistors, but you can easily connect an R2R to the input of it. If you search for
"opamp current source" you should be able to find something useful.

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Tue Apr 18, 2017 5:14 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks Smile
I normally use a 3 or 4 bit DAC (50k/100k) with a pot between that and the 4046 to control amplitude and therefore tonal range, so I thought that might work. To be honest, it was the only way I could think of doing it with my limited knowledge/experience.
Whilst on the subject of DACs, has anyone tried using outputs from a 4026/4033/40110 with other clocks into a DAC to create unusual "polyrhythms" or would that not work from a technical point of view?
Back to top
View user's profile Send private message
gasboss775



Joined: Jan 02, 2016
Posts: 217
Location: Scotland

PostPosted: Tue Apr 18, 2017 7:48 am    Post subject: Reply with quote  Mark this post and the followings unread

Another possibility is using a weighted resistor network. The idea is the most significant bit goes through the lowest value resistor, which we shall call R, then the next less significant bit goes to a resistor of 2R, then 4R, 8R, etc and theses are summed together usually at a virtual earth point of an opamp based inverting amplifier.

I tried this passive version on my Everycircuit simulator app & it appeared to work quite well, the switches represent the logic inputs ( I made them 0 & 12 Volts as that's what I usually use with CMOS circuits ) the 12 volt source and 47K resistor on the right provide a bias to overcome the forward voltage of the LED.

You would probably need to experiment with the values of the resistors to suite your specific vactrol as there is quite a large difference between different parts, same goes if you brew your own.

40K can be made with an 18K & a 22K in series, 80K can be made from 33K & 47K in series.

Here it is:


passive weighted resistor vactrol led driver.png
 Description:
 Filesize:  51.49 KB
 Viewed:  456 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

passive weighted resistor vactrol led driver.png


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



Joined: Jan 02, 2016
Posts: 217
Location: Scotland

PostPosted: Tue Apr 18, 2017 7:59 am    Post subject: Reply with quote  Mark this post and the followings unread

zloth wrote:

Whilst on the subject of DACs, has anyone tried using outputs from a 4026/4033/40110 with other clocks into a DAC to create unusual "polyrhythms" or would that not work from a technical point of view?


I've been meaning to try this idea out, can't see any reason why it wouldn't work in practice.

I love the sort of creative thinking that goes on amongst musical electronics enthusiasts, that's something you can't learn from a book.
Back to top
View user's profile Send private message
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Tue Apr 18, 2017 11:41 am    Post subject: Reply with quote  Mark this post and the followings unread

Another possibility is using a weighted resistor network. The idea is the most significant bit goes through the lowest value resistor, which we shall call R, then the next less significant bit goes to a resistor of 2R, then 4R, 8R, etc and theses are summed together usually at a virtual earth point of an opamp based inverting amplifier.

Thanks!
Funnily enough I'd seen about those only a couple of days ago but couldn't remember the technical name.

I tried this passive version on my Everycircuit simulator app & it appeared to work quite well, the switches represent the logic inputs ( I made them 0 & 12 Volts as that's what I usually use with CMOS circuits ) the 12 volt source and 47K resistor on the right provide a bias to overcome the forward voltage of the LED.

I use a 9v clip or 5v from the Arduino.

You would probably need to experiment with the values of the resistors to suite your specific vactrol as there is quite a large difference between different parts, same goes if you brew your own.

40K can be made with an 18K & a 22K in series, 80K can be made from 33K & 47K in series.

How about this for a 3-Bit solution? Resistor network, star connection, 8 pin 7 resistor (R + 2R + 4R), 4 different values @ 0.09€ each, going into the 4 different sections of an LM324 (0.24€).

Last edited by zloth on Tue Apr 18, 2017 11:54 am; edited 1 time in total
Back to top
View user's profile Send private message
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Tue Apr 18, 2017 11:50 am    Post subject: Reply with quote  Mark this post and the followings unread

gasboss775 wrote:


I love the sort of creative thinking that goes on amongst musical electronics enthusiasts, that's something you can't learn from a book.


We're like the MacGyver of musicians Very Happy
Back to top
View user's profile Send private message
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Tue Apr 18, 2017 12:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

zloth wrote:

How about this for a 3-Bit solution? Resistor network, star connection, 8 pin 7 resistor (R + 2R + 4R), 4 different values @ 0.09€ each, going into the 4 different sections of an LM324 (0.24€).


Looking at the diagram I think I got it wrong so networks won't work. Luckily I recently got given a bunch of 10k and 25k trimpots which I hadn't decided what to do with.
Back to top
View user's profile Send private message
gasboss775



Joined: Jan 02, 2016
Posts: 217
Location: Scotland

PostPosted: Tue Apr 18, 2017 2:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

zloth wrote:
zloth wrote:

How about this for a 3-Bit solution? Resistor network, star connection, 8 pin 7 resistor (R + 2R + 4R), 4 different values @ 0.09€ each, going into the 4 different sections of an LM324 (0.24€).


Looking at the diagram I think I got it wrong so networks won't work. Luckily I recently got given a bunch of 10k and 25k trimpots which I hadn't decided what to do with.


What you want is one of the DIL resistor arrays with 8 independent resistors in the one package, however the expense probably isn't justified in this application.
Back to top
View user's profile Send private message
gasboss775



Joined: Jan 02, 2016
Posts: 217
Location: Scotland

PostPosted: Tue Apr 18, 2017 2:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is just to show you what I'm talking about:

8 ISOLATED RESISTORS

As I said a bit pricey.
Back to top
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5841
Location: Moon Base
Audio files: 709

PostPosted: Tue Apr 18, 2017 3:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

zloth wrote:
Whilst on the subject of DACs, has anyone tried using outputs from a 4026/4033/40110 with other clocks into a DAC to create unusual "polyrhythms" or would that not work from a technical point of view?

Never used any of those chips to control one directly but it might actually be nice to make a simple module using one
similar to a binary and digital counter/divider. If you hardwire it it will always be the same sequence which probably isn't
too interesting but combined with some other things it is useful. I do usually connect all kinds of different digital signals
to an R2R to create interesting patterns so it should work fine.

note: I did use a 7 Segment decoder chip years ago for my Cosmic Space Beeper.

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Grumble



Joined: Nov 23, 2015
Posts: 1314
Location: Netherlands
Audio files: 30

PostPosted: Tue Apr 18, 2017 11:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

Maybe a little over the top, but why use a DAC and a Vectrol in a Lunetta, when with the same efforts one could use a Digital Controlled Potentiometer.
I mean you have a processor (Arduino?) to control the R2R-DAC...
The advantage of using a DCP compared to a Vactrol is that they are VERY linear, may have different impedances (1k, 10k, 50k, 100k), different steps (32 - 1024), there are type to be used with a single supply (like 5 volt) or dual supply (up to 33 volt span)
A drawback might be that the footprint is usually SMD...

In my modular I use on one module four 256 step digital potmeters, two for creating some kind of VCA, one for a triggered S/H and one for supplying a triggered random voltage.


There are a numerous types to choose from:
http://www.analog.com/en/products/digital-to-analog-converters/digital-potentiometers.html
http://ww1.microchip.com/downloads/en/DeviceDoc/22017c.pdf
Back to top
View user's profile Send private message Visit poster's website
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Wed Apr 19, 2017 12:50 am    Post subject: Reply with quote  Mark this post and the followings unread

gasboss775 wrote:
This is just to show you what I'm talking about:

8 ISOLATED RESISTORS

As I said a bit pricey.


"Order in multiples of 25" No chance Wink Apart from the LM324 I think I can work with what I have, but thanks for the info.

Last edited by zloth on Wed Apr 19, 2017 12:56 am; edited 1 time in total
Back to top
View user's profile Send private message
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Wed Apr 19, 2017 12:55 am    Post subject: Reply with quote  Mark this post and the followings unread

PHOBoS wrote:
zloth wrote:
Whilst on the subject of DACs, has anyone tried using outputs from a 4026/4033/40110 with other clocks into a DAC to create unusual "polyrhythms" or would that not work from a technical point of view?

Never used any of those chips to control one directly but it might actually be nice to make a simple module using one
similar to a binary and digital counter/divider. If you hardwire it it will always be the same sequence which probably isn't
too interesting but combined with some other things it is useful. I do usually connect all kinds of different digital signals
to an R2R to create interesting patterns so it should work fine.

note: I did use a 7 Segment decoder chip years ago for my Cosmic Space Beeper.


No hardwiring. Ever. Breadboard only. For the same reason I would never use superglue with LEGO: those pieces, and all their potential, are locked away, effectively lost forever Wink
Back to top
View user's profile Send private message
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Wed Apr 19, 2017 1:47 am    Post subject: Reply with quote  Mark this post and the followings unread

Grumble wrote:
Maybe a little over the top, but why use a DAC and a Vectrol in a Lunetta, when with the same efforts one could use a Digital Controlled Potentiometer.
I mean you have a processor (Arduino?) to control the R2R-DAC...
The advantage of using a DCP compared to a Vactrol is that they are VERY linear, may have different impedances (1k, 10k, 50k, 100k), different steps (32 - 1024), there are type to be used with a single supply (like 5 volt) or dual supply (up to 33 volt span)
A drawback might be that the footprint is usually SMD...

In my modular I use on one module four 256 step digital potmeters, two for creating some kind of VCA, one for a triggered S/H and one for supplying a triggered random voltage.


There are a numerous types to choose from:
http://www.analog.com/en/products/digital-to-analog-converters/digital-potentiometers.html
http://ww1.microchip.com/downloads/en/DeviceDoc/22017c.pdf


Thanks, to be honest I don't use the arduino for anything else than a USB power supply. I bought a cheap clone from China out of curiosity & because it came with some genuinely useful stuff - breadboard, jumper leads, momentary switches, selection of resistors etc. Got bored and frustrated with the coding side very quickly.
Back to top
View user's profile Send private message
gasboss775



Joined: Jan 02, 2016
Posts: 217
Location: Scotland

PostPosted: Wed Apr 19, 2017 3:19 am    Post subject: Reply with quote  Mark this post and the followings unread

I've never been very interested in the programming side of my electronics hobby. I do like experimenting with digital hardware though. Occasionally there are situations where it would be a lot more convenient to just program a microcontroller. One day I'll give it a try.
Back to top
View user's profile Send private message
gasboss775



Joined: Jan 02, 2016
Posts: 217
Location: Scotland

PostPosted: Wed Apr 19, 2017 3:23 am    Post subject: Reply with quote  Mark this post and the followings unread

zloth wrote:
gasboss775 wrote:
This is just to show you what I'm talking about:

8 ISOLATED RESISTORS

As I said a bit pricey.


"Order in multiples of 25" No chance Wink Apart from the LM324 I think I can work with what I have, but thanks for the info.


You're welcome Smile

It would be a lot cheaper just to use 1% MF resistors, although in this sort of application you could probably get away with just using 5% CF resistors.
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 1314
Location: Netherlands
Audio files: 30

PostPosted: Wed Apr 19, 2017 4:47 am    Post subject: Reply with quote  Mark this post and the followings unread

gasboss775 wrote:
Occasionally there are situations where it would be a lot more convenient to just program a microcontroller.

Occasionally? Shocked Don't get me started Laughing
Back to top
View user's profile Send private message Visit poster's website
zloth



Joined: Nov 18, 2016
Posts: 12
Location: Augsburg, Bayern

PostPosted: Wed Apr 19, 2017 5:05 am    Post subject: Reply with quote  Mark this post and the followings unread

I could do anything I can with a Lunetta on SynthEdit in a fraction of the time with far less difficullty, but sometimes that isn't the point, just like I could order a takeaway curry but also I enjoy growing my own beans, potatoes and veg and making one from scratch Very Happy
Back to top
View user's profile Send private message
gasboss775



Joined: Jan 02, 2016
Posts: 217
Location: Scotland

PostPosted: Wed Apr 19, 2017 6:04 am    Post subject: Reply with quote  Mark this post and the followings unread

Grumble wrote:
gasboss775 wrote:
Occasionally there are situations where it would be a lot more convenient to just program a microcontroller.

Occasionally? Shocked Don't get me started Laughing


If programming ( or coding as the youngsters say ) was easy or interesting to me I'm sure I would choose that path more readily. As it is I get a real joy from experimenting on breadboards, its so easy to put something together and change it whilst you listen to the outcome. Surely with microcontrollers such easy manipulation would be challenging, given that the code would need to be redownloaded every time you make a change.
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 1314
Location: Netherlands
Audio files: 30

PostPosted: Wed Apr 19, 2017 6:08 am    Post subject: Reply with quote  Mark this post and the followings unread

Joy! Thats what diy is all about! Laughing
Back to top
View user's profile Send private message Visit poster's website
RingMad



Joined: Jan 15, 2011
Posts: 428
Location: Montreal, Canada
Audio files: 4

PostPosted: Wed Apr 19, 2017 2:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

Grumble wrote:
... one could use a Digital Controlled Potentiometer.

In my modular I use on one module four 256 step digital potmeters, two for creating some kind of VCA, one for a triggered S/H and one for supplying a triggered random voltage.

Could you tell us exactly which one you are using for these applications?

I looked briefly at DCP's a while ago, but my understanding is that they use serial interfaces like I2C, SPI, up/down, etc. So one cannot just supply a few bits and get a resistance corresponding to the binary value.

Thanks.

.:James:.
Back to top
View user's profile Send private message Visit poster's website
Grumble



Joined: Nov 23, 2015
Posts: 1314
Location: Netherlands
Audio files: 30

PostPosted: Wed Apr 19, 2017 9:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

I use an Arduino using SPI to control the position of the runner of the DCP.
If you are interested I could write a piece about this module.
(remember: my module is almost 5 volt only!)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: mosc
Page 1 of 2 [38 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2 Next
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