Author |
Message |
bubzy

Joined: Oct 27, 2010 Posts: 594 Location: United Kingdom
Audio files: 64
|
Posted: Mon Aug 20, 2012 11:27 pm Post subject:
Control Voltages |
 |
|
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
how are you guys implementing CV in your projects? _________________ _Richard_  |
|
Back to top
|
|
 |
xi-boy
Joined: Dec 16, 2008 Posts: 18 Location: germany
|
|
Back to top
|
|
 |
elmegil

Joined: Mar 20, 2012 Posts: 2179 Location: Chicago
Audio files: 16
|
Posted: Tue Oct 09, 2012 2:09 pm Post subject:
|
 |
|
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
|
|
 |
bubzy

Joined: Oct 27, 2010 Posts: 594 Location: United Kingdom
Audio files: 64
|
Posted: Tue Oct 09, 2012 11:48 pm Post subject:
|
 |
|
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
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  _________________ _Richard_  |
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24422 Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320
|
Posted: Wed Oct 10, 2012 11:19 am Post subject:
|
 |
|
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.
 |
|
Back to top
|
|
 |
|