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
How to replace Analog Pots with CV control?
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [15 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
thefunk



Joined: May 04, 2009
Posts: 23
Location: Orlando, Fl

PostPosted: Mon Apr 30, 2012 1:23 pm    Post subject: How to replace Analog Pots with CV control? Reply with quote  Mark this post and the followings unread

I'm looking to use a MicroController to control a number of analog drum circuits. But, I am currently struggling to find a suitable / hassle free method to replace volume (voltage divider) pots with a voltage controlled circuit.

The methods I know of and their issues to me are:
Digital Pots: Only linear. Only allow voltages within the power supply rails: 0-5V for the most part.
OTA: Just seems like overkill. According to the 13700 datasheet I would need a whole a chip for 1 pot.
LED / Photo-resistor / Cell: Would need 2 pairs for each pot and would need to find a way to increase 1 resistance while accordingly reducing the other... non-linearly.
FET: same as photo-resistor.
VC Pot chips: NTE still makes one for $10 each.

Are their any other methods I am missing? How is this normally achieved? Digital pots look like the best method out of the lot, but I'm hoping there is an easier way.
thanks.
Back to top
View user's profile Send private message
Clack



Joined: Aug 08, 2005
Posts: 438
Location: Walthamstow - london
Audio files: 5
G2 patch files: 1

PostPosted: Tue May 01, 2012 12:06 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes pretty much

An experimental idea I have been playing with is to switch an analogue gate on and off at more that audio rate put a simple filter on it and then adjust PWM


Also a Note that you only need half a lm13700 if it is grounded or single resistance.

_________________
Clacktronics.co.uk
Back to top
View user's profile Send private message Visit poster's website
slacker



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

PostPosted: Tue May 01, 2012 10:49 am    Post subject: Reply with quote  Mark this post and the followings unread

You can probably get away with using one LDR for each pot. You make the top of the divider a fixed resistor and use the LDR for the bottom or the other way round.
This will work like a volume control, the only thing is the impedance changes with the changes to the LDR's resistance. Depending on what is driving the "pot" this may or may not matter.
You can do the same thing with FETs.
Back to top
View user's profile Send private message
JingleJoe



Joined: Nov 10, 2011
Posts: 878
Location: Lancashire, England
Audio files: 14

PostPosted: Tue May 01, 2012 1:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

What about a D to A converter?
Simply put the output of that into the input of the voltage controlled circuit.

_________________
As a mad scientist I am ruled by the dictum of science: "I could be wrong about this but lets find out"


Green Dungeon Alchemist Laboratories
Back to top
View user's profile Send private message
thefunk



Joined: May 04, 2009
Posts: 23
Location: Orlando, Fl

PostPosted: Tue May 01, 2012 2:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks all.

@Clack
Yes 1/2 an lm13700 will work. I missed that. That means I'll only need 14 of them to be able to control the TH Quad Bass++. That, with pwm, a filter and a s&h circuit should work nicely. This is sounding more enticing.

@Slacker
I'm sure I could get away with 1/2 the resistance and a 6dB drop in these circuits, but I would like to find a method I could use reliably without much thinking. Smile Though, these methods are definitely worth experimenting with in single ended pots. (The decay knob in the Bass++)

@JingleJoe
I'm not sure I follow... creating an analog signal from a digital one should not be a problem. Though, a serial digital decoder might be worth looking for... a digital pot without the resistors... hmmm... they must exist.
Back to top
View user's profile Send private message
elmegil



Joined: Mar 20, 2012
Posts: 2179
Location: Chicago
Audio files: 16

PostPosted: Tue May 01, 2012 6:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

So which microcontroller?

If you take Arduino as an example, the analog outputs produce PWM signals, which can be filtered with appropriate caps & resistors to provide a steady voltage level for a given value. There are some example circuits "out there" though I haven't looked at them recently because I didn't take that approach.

I think we're assuming that the pots are hooked up with one side on a positive voltage source, the other on ground or a negative source, and the control coming out of the wiper. If that's the case, I'd assume that you could hook the voltage through appropriate resistance to ground and then just connect to where the wiper was connected.

If the pot is being used to control gain on an op amp or transistor circuit, then you'll need something else, I'm not sure what Smile.
Back to top
View user's profile Send private message
thefunk



Joined: May 04, 2009
Posts: 23
Location: Orlando, Fl

PostPosted: Tue May 01, 2012 7:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Netduino. So pretty much an Arduino.
Sorry for the confusion, to clarify... the full volume audio wave at one end, ground at the other end (for the most part), and the adjusted volume at the wiper. What I would like is an added control voltage to set the position of the wiper.
I'm starting to see why OTAs are so 'beloved'. Smile The LM13700s look like the best way to go. Though, digital pots might be worth messing around with.

This is the circuit I'm beginning with...
http://www.birthofasynth.com/Thomas_Henry/pdf/Bass_Plus/basspp_schematic.pdf I'd like to be able to control the pots programmatically.
Back to top
View user's profile Send private message
stewpye



Joined: Apr 30, 2009
Posts: 49
Location: Brisbane, Australia

PostPosted: Tue May 01, 2012 8:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

You really need to rethink the circuit design rather than just replace pots with something else.

For things like the decay control you could just use a PWM output to switch a transistor that discharges the decay cap.

Wherever there is a simple volume control just use a VCA (LM13700).

Regards,
Stewart.
Back to top
View user's profile Send private message
JingleJoe



Joined: Nov 10, 2011
Posts: 878
Location: Lancashire, England
Audio files: 14

PostPosted: Wed May 02, 2012 4:09 am    Post subject: Reply with quote  Mark this post and the followings unread

thefunk wrote:

@JingleJoe
I'm not sure I follow... creating an analog signal from a digital one should not be a problem.

I ment something like an R2R ladder, input your digital binary number and get out a voltage level which you can just feed into the CV input of the circuit, be it a filter or VCO or whatever.
Now if you're talking about level control of say, an LFO signal, thats another kettle of fish.

_________________
As a mad scientist I am ruled by the dictum of science: "I could be wrong about this but lets find out"


Green Dungeon Alchemist Laboratories
Back to top
View user's profile Send private message
richardc64



Joined: Jun 01, 2006
Posts: 679
Location: NYC
Audio files: 26

PostPosted: Wed May 02, 2012 4:14 am    Post subject: Reply with quote  Mark this post and the followings unread

stewpye wrote:
You really need to rethink the circuit design rather than just replace pots with something else.

For things like the decay control you could just use a PWM output to switch a transistor that discharges the decay cap.

Wherever there is a simple volume control just use a VCA (LM13700).

Regards,
Stewart.


The only places a real DC-coupled VCA are needed in the Bass++ are for Sweep and Range, if it's included. For Shell Volume and Impact Volume I suggest the technique used in the TR-909. The signal at the transistors' collectors (Keep the capacitors,) has to be limited to 1V or less, then boosted back up by the op amp, which would be IC2b in the Bass++.

Impact Tone has me stumped, though. Maybe use 1/3 cd4053 to select full Hi or full Lo?


909_vcas.gif
 Description:
 Filesize:  6.08 KB
 Viewed:  7056 Time(s)

909_vcas.gif



_________________
Revenge is a dish best served with a fork... to the eye
Back to top
View user's profile Send private message Visit poster's website
stewpye



Joined: Apr 30, 2009
Posts: 49
Location: Brisbane, Australia

PostPosted: Wed May 02, 2012 7:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

For the impact tone you could use two LM13700 VCA's. The input to one of them comes from the high pass section of the tone circuit and the input to the other one comes from the low pass section of the tone control circuit. You may want to make the input impedance of them similar to what the tone pot is. The control input for one of the VCA's would have to be inverted (and level shifted) in regards to the other.

The shell volume could probably be done by just having an attenuator (similar to the sweep control) between the emitter of Q1 and R18.

Regards,
Stewart.
Back to top
View user's profile Send private message
thefunk



Joined: May 04, 2009
Posts: 23
Location: Orlando, Fl

PostPosted: Wed May 02, 2012 11:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ah. So the 909 uses transistors not tied to ground. I hadn't thought much about the Impact tone, but using a switch or mixing the outputs seem like good ideas to me.
I guess I should just start tinkering and try them all. It's more fun that way anyway Smile Thanks for the ideas all!
Back to top
View user's profile Send private message
richardc64



Joined: Jun 01, 2006
Posts: 679
Location: NYC
Audio files: 26

PostPosted: Thu May 03, 2012 12:59 am    Post subject: Reply with quote  Mark this post and the followings unread

I wrote:
Impact Tone has me stumped, though. Maybe use 1/3 cd4053 to select full Hi or full Lo?

doh
The PWM duty cycle could select anything in between, which expands on...
Clack wrote:
An experimental idea I have been playing with is to switch an analogue gate on and off at more that audio rate put a simple filter on it and then adjust PWM

_________________
Revenge is a dish best served with a fork... to the eye
Back to top
View user's profile Send private message Visit poster's website
oldmanfury



Joined: Oct 20, 2006
Posts: 57
Location: CA

PostPosted: Wed May 16, 2012 7:58 pm    Post subject: Re: How to replace Analog Pots with CV control? Reply with quote  Mark this post and the followings unread

thefunk wrote:
Digital Pots: Only linear. Only allow voltages within the power supply rails: 0-5V for the most part. Digital pots look like the best method out of the lot, but I'm hoping there is an easier way.
thanks.

Actually digital pots with an arduino controlling over I2C was fairly easy to implement. Some spotty details here:
http://buzzville.typepad.com/oldmanfury/2010/03/my-first-arduino-project-the-voltage-controlled-grunge-pedal.html

The link to the digital pot tutorial is valuable info.

-gerald
Back to top
View user's profile Send private message Visit poster's website
thefunk



Joined: May 04, 2009
Posts: 23
Location: Orlando, Fl

PostPosted: Sun May 20, 2012 8:58 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks. That's cool! I've got one of those pedals... somewhere, from my 'grunge' days Smile .NET Micro is about as simple at SPI control.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [15 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
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