Hello
I've got some of the "filament leds" - 80V, 10mA per led.
I want to be able to power 8 of them from a 12-24V supply - this implies a boost converter that can deliver ~ 90V at 80mA and have some sort of current control and limiting - peak current control for the switching transistor and average current control for the LED's - should be dim-able and fully isolated - capacitive buttons.
Everything will be inside a glass tube with a plug on one end.
With these requirements i decided to use a PSOC4 chip for the on-board analog and digital blocks ( adc / cap-sense / analog and digital )
See the attached image for the "schematic" that i imagined:
The PWM_1 block is the pwm generator - it's duty is controlled by software and it's free running - the mosfet driver is not drawn on the schematic. Output period is 10uS - 240 ticks ( or 480 if i want to use a 20nS period )
The AND gate, SR flip-flop and Comparator form the cycle by cycle current limiting - the flip-flop is set on the rising edge of PWM and it's reset if the comparator generates a 1 at the output.
If the flip-flop output is not 1 the AND gate will send 0 to the PWM output and terminate the current cycle.
The comparator has a 10mV hysteresis enabled. The Sync block is used because PWM is clocked from 24MHz.
The 12MHz clock will generate some jitter - i can move the PWM clock to 12MHz and the everything should be aligned.
The reference sets the peak current - i can put it on the board with a zener / trimmer combination or derive it from the 3.3V supply and filter it.
The ADC block is used as the led current control - slow loop. A timer based software control loop will read the ADC value and update the PWM duty cycle with a period of tens of ms.
Not on the screen - the capacitive touch cotroller with 2 capacitive buttons ( brightness up / brightness down )
Could this work ? should i get some parts and implement it on a piece of copper clad ? or there is something wrong with my logic ?