I need to deliver a constant 5V to some LEDs (while using PWM to move vibration motors).
For that I use a power supply connected to PN2222 transistors as illustrated in the image attached.
When measuring the voltage with a multimeter, I get a stable 5V output when I turn on the digital pins, and 0 when off. But as soon as I connect the LED, I can't get a stable output anymore, the LED lights intermittently at the same time the multimeter can't get any voltage beyond 2 volts.
I'm sure the power supply I'm using is enough. Also sometimes, after slowly blinking for a while, the led will stay on, but the voltage stabilized at less than 2V.
Have I made a mistake with the circuit?
