I’m trying use the PWM to generate a varying voltage from 0 to 5V which I want to display on an analog volt meter.
After seeing that the vcc voltage on the board is lowered to ~4.8 I decided to try and use a transistor instead.
So I’m a 7805 to generate my 5V and I see that also with the circuit powered it’s giving out 5V.
I’m using a BC547 (NPN) transistor with the base hooked up to the PWM pin, the collector to the 5V and emitter to gnd.
I still can’t get the full range of 5V - how do I calculate which resistors to add in? Am I mistaken in the way I’ve built the circuit?
Any help would be appreciated.