Arduino Controlled Variable Frequency, Gain, & DC Offset Triangle Wave Generator Circuit
Arduino Controlled Variable Frequency, Gain, & DC Offset Triangle Wave Generator Circuit from electronics
Arduino Controlled Variable Frequency, Gain, & DC Offset Triangle Wave Generator Circuit
Arduino Controlled Variable Frequency, Gain, & DC Offset Triangle Wave Generator Circuit from electronics
This is a 4 transistor circuit that allows you to convert a variable frequency square wave output from a microcontroller (in this case a knock off Arduino nano) to a triangle wave with a variable amplitude. The amplitude is also set by the microcontroller using a crude PWM to analog voltage conversion (called analogwrite() on Arduino) using a simple RC filter. This allows you to increase or decrease the charge discharge ramp current flowing into/out of the capacitor which alters its peak to peak amplitude. Lastly you can tweak the DC offset of the triangle wave by tweaking the duty cycle of the applied variable frequency square wave (not pictured). A higher duty cycle would lower the DC offset and vice versa.
Looks more fun to listen to that one…
Nice
Is it locked at 500 Hz frequency or can that be changed? If not what is its frequency range?
Also what simulator did you use?