Home Artists Posts Import Register

Content

My several modules that make CVs with Arduino PWMs.

LFOs, envelope generators, etc.

https://note.com/solder_state/n/n4c600f2431c3 


These modules use high speed PWM.

The PWM frequency of the Arduino nano is 980 Hz, but the frequency can be increased to about 60 kHz by changing the register settings.

The reason for using high-speed PWM is shown in the figure.

It is because the ripple voltage is small, the response is fast, and the output dynamic range can be increased.


Use simulation to check the effect of high-speed PWM.
Fix the CR low-pass filter at 1k ohm and 1uF, and use the PWM frequency

At 980 Hz, the ripple voltage was 1.25 V and the response was 2 msec.
At 60 kHz, the ripple voltage was 0.02 V and the response was 2 msec.




http://sim.okawa-denshi.jp/PWMtool.php

Files

Comments

mungotronix

I was looking at that LFO module earlier today... so simple! Does anyone know if changing the PWM speed like this would also work with one of the really cheap AVR microcontrollers like ATtiny24/84?

HAGIWO

Yes, ATtiny can also output PWM at tens of kHz, so I think it is possible to make waveforms like LFO and EG.

Michael Hurt(@mingusdude)

Just jumped in here and this is just soooo cool. I really appreciate the work you have done here. It is making the daunting task of starting a rack seem much more doable than I had imagined.