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 » Arduino
Control Voltages
Post new topic   Reply to topic
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
bubzy



Joined: Oct 27, 2010
Posts: 594
Location: United Kingdom
Audio files: 64

PostPosted: Mon Aug 20, 2012 11:27 pm    Post subject: Control Voltages Reply with quote  Mark this post and the followings unread

Right,
so having locked myself in my room for the past few weeks building an arduino cycle computer, i have started to turn my attention to using it in a synth environment.

so as always i have a question :
if i use the pwm via a simple resistor/capactior filter am i going to lose voltage through the filtering?

my first project will be a v/oct calibration device which should be simple enough Razz

how are you guys implementing CV in your projects?

_________________
_Richard_ Smile
Back to top
View user's profile Send private message
xi-boy



Joined: Dec 16, 2008
Posts: 18
Location: germany

PostPosted: Mon Oct 08, 2012 8:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

i use a inexpensive 12bit dac (MCP4921)
as described here http://mrbook.org/blog/wp-content/uploads/2009/06/gakkensx150mod4.png
http://mrbook.org/blog/2009/06/27/sx-150-synth-mod-schematics/
i didnt get a clean cv voltage out of the pwm
Back to top
View user's profile Send private message
elmegil



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

PostPosted: Tue Oct 09, 2012 2:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

The only CV I'm generating with Arduino is in my port of the TH MTS-100 MIDI->CV module, and I used the 8bit DAC he used in his original design. I've heard the same about PWM CVs though, that they aren't clean enough to do good 1V/Oct.
Back to top
View user's profile Send private message
bubzy



Joined: Oct 27, 2010
Posts: 594
Location: United Kingdom
Audio files: 64

PostPosted: Tue Oct 09, 2012 11:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

i've actually managed to get perfect cv out of the arduino.
it requires a bit of fiddling and there is a trade off.
you have to increase the pwm clock so that you get about 62.5hkz pwm frequency, the trade off of this is that is screws timer0 up, not entirely but it does it to the point that you have to use
delay(64000) to delay 1 second Smile
this is then filtered through a low-pass RC filter and is a nice clean signal.
it is not very good for LFO operations however as the pwm is still only 8 bit so there is quite a lot of stepping on "waveforms", could be worked around with a larger capacitor in the RC filter, but then you have to contend with lag.
as it is though, its prefectly good for 1v/oct, more soon in my seq thread Smile

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


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

PostPosted: Wed Oct 10, 2012 11:19 am    Post subject: Reply with quote  Mark this post and the followings unread

bubzy wrote:
it is not very good for LFO operations however as the pwm is still only 8 bit so there is quite a lot of stepping on "waveforms", could be worked around with a larger capacitor in the RC filter, but then you have to contend with lag.


Or make the signal a bit jittery maybe ... for instance to make a value of 1.5% you can alternately put out 1% and 2% .. when the PWM rate and the jitter is high enough that might just work (not that the numbers I used for the example wsould be very practical, but you get the idea probably).

_________________
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
Display posts from previous:   
Post new topic   Reply to topic
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 » Arduino
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