I would like to build an led strip dimmer based on the esp8266.
In the circuit I have available voltages of 3.3V (esp8266 power supply), 5V (relay) and 12V (led power supply).
I managed to connect the relay via a PC817 optocoupler and a BC547b transistor - it works.
The leds I wanted to control via PWM. The written code is ok - when I connected the diode directly to the esp I got a dimming effect. I wanted to dim the tape with the IRFZ44N. So I assembled the PC817 -> BC547b -> IRFZ44N circuit. Unfortunately I did not get the dimming effect. At some point the strip lights up with all the power.
Could someone more experienced give me a schematic or at least some guidance?
My first thought was to do it on a BT137 triac, but the led power supply only lights up the strip a while after it starts up - probably stabilising something before it starts up. I was afraid if I would damage the power supply that way.
I have little experience in electronics so would appreciate any suggestions. Of course, I will share the source code and schematics once the project is complete so that the next one will be easier.
In the circuit I have available voltages of 3.3V (esp8266 power supply), 5V (relay) and 12V (led power supply).
I managed to connect the relay via a PC817 optocoupler and a BC547b transistor - it works.
The leds I wanted to control via PWM. The written code is ok - when I connected the diode directly to the esp I got a dimming effect. I wanted to dim the tape with the IRFZ44N. So I assembled the PC817 -> BC547b -> IRFZ44N circuit. Unfortunately I did not get the dimming effect. At some point the strip lights up with all the power.
Could someone more experienced give me a schematic or at least some guidance?
My first thought was to do it on a BT137 triac, but the led power supply only lights up the strip a while after it starts up - probably stabilising something before it starts up. I was afraid if I would damage the power supply that way.
I have little experience in electronics so would appreciate any suggestions. Of course, I will share the source code and schematics once the project is complete so that the next one will be easier.