Latest iteration of the Neon supply 170 - 240 Volt generator.
The original circuit sported a "NE555" to drive the "Fly-Back" inductor N-Channel MOSFET, then after a hour sitting in its cosy socket (and an elvish brainwave later) it has been made redundant in preference to some"PWM Code..."
The PWM Timer4 is capable of driving (albeit for me via 2N2222 transistor) the gate of the IRF840 MosFet @ a sweet spot frequency of 30khz.
The IRF840 was all I had to hand (Gate switching is 10 volts...however driving it at 6 volts worked perfectly fine as circuit draws low current) ... a better choice would be an IRF540 (Gate switch voltage 2 to 4 volts) and drive it direct from 3.3v mcu logic.
It enables a great way to dim the Neons through software control.
STM32F103 C8T6 PWM code for HighVolt generator | |
int prescaler=25; int f_pwm=30000; // frequency (Hz) double pwmval; void setup() { void loop() { |
No Elves were electrocuted during the making of this update......