Some update on led circuit.
For sometime folks have asked for circuits other than kessil (which I use exclusively), I had tested a few things which worked earlier but never had a full on build. After some new requests this week, I decided to build out a permenant controller for my moon lights. I may combine this with one of the existing build as well, the circuit is a standalone one and will work for a wider range of voltage .
This is the circuit to control direct led power, allows you to dim led strips /bulbs etc. For my case, I want to dim coralife biocube moonlight strip, it has tree leds , runs at 12v and draws 1 amp at peak
Here is the whole setup :
I am using pi for generating pwm straight. Which controls a power mosfet , which in turn controls the led power. I am using a single 12v power source , and an lm2596 to step down to 5v, which feeds pi. The custom circuit houses the power rails, connectors for power in, led power out , male headers for connecting lm2596 and pi pwm out. It should work with pca9685 as is. Just wire a pwm source .
So looking at the spec for the p30n06le
I am using adafruit perma proto board to solder everything , the mosfet gate (which is connected to pwm) is pulled down (connected to grown) using a 100k resistor. I am using p30n06le power mosfet.
I am very happy with the results. I was able to dim down to 1%. I’ll do a thorough thorough test with multimeter and oscilloscope next and share with you.
I think I am close to the solution of rpi pwm problem. I had to dial down the pwm frequency . I have also added a setting for specifying pwm frequency (details to 100) in the api and ui