1
Beginners / Re: Dimming signal 0-12V from microcontroller (logic level to 12V PWM)
« Last post by Ian.M on Today at 10:34:54 pm »While you could rework my reply#12 circuit to move the offset resistor R4 to the OPAMP -in, then adjust it to trim out the PWM low offset, the ESP32-C3 GPIO low voltage will vary with how much power the ESP32 is using. The best option would be to buffer the PWM with a 74LVC1G17, which will give an output that swings to within 0.1V of its supply rails at 100uA load current, then filter and amplify that. You may need to increase your filter input resistor to keep the load on the gate output low enough to get close enough to rail-to-rail swing.