2 Channel PWM to Analog converter
This is a PWM to analog voltage converter. Given an input PWM the output will be proportional to the duty cycle of the PWM signal.
It can work with any MCU, arduino, esp32, stm32 etc.. As long as the supply at the circuit is 3V-40V (tested up to 35V). For example a 1.8V (or less) pwm signal can be used as an input but you should power the circuit with at least 3V
There is an adjustable RC filter whose cutoff frequency can be adjusted from 33mHz to 33Hz
The circuit offers also the possibility to apply gain at the output. You can control the gain with the DIP switches:
ALL DOWN: G = 1.1
ON 1: G = 1.5
ON 2: G = 2
ON 3: G = 3
ON 4: Gain is adjustable using the potentiometer (gain up to 13)
Dimension (Assembled, LxWxH) : 48.7x34.4x19 mm
You can change the OPA4991 with the OPA4992 or OPA4990, they are pin-to-pin compatible. Below there's a brief comparison between them

ALL the waveforms you see here are produced by an ARDUINO NANO and my PWM to analog converter (with OPA4992)

Top-left: Smoothed square, Top-mid: Sine-Trapezoidal, Top-right: Mirrored sine
Bottom-left: "Squareish"-sine, Bottom-mid: Sine-Triangular, Bottom-right: Sine
There's also the possibility to apply gain:

34Vpp(0 to 34V) sine wave

Channel 1: Sine-Triangular 32Vpp
Channel 2: Mirrored sine 32Vpp
Here I've used two arduino pwm pins
NOTE: You're limited in frequency by your RC filters values, the more you approach the cutoff frequency the more the signal is attenuated
2 Channel PWM to Analog converter
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by BurningElectronics YT
-
I2C controllable buck-boost converter (2Layer version)
WARNING! The 2 layer version pcb has not been tested in liveThe 2 layer version has lower cost.This ...
-
2 Channel PWM to Analog converter
This is a PWM to analog voltage converter. Given an input PWM the output will be proportional to the...
-
I2C controllable buck-boost converter
This is a buck-boost converter based on the TPS55289. This converter is I2C controllable, which mean...
-
8x TCA9555 SHIELD (+128 pins for Arduino)
This pcb it's made for people who need tons of pins. In fact this shield adds 128 pins to your Ardui...
-
-
AEL-2011 Power Supply Module
553 0 2 -
AEL-2011 50W Power Amplifier
512 0 2 -
-
-
Custom Mechanical Keyboard
710 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
340 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
322 0 1 -
-
-







