Finally... Arduino!!
The square wave generator is replaced by a diecimila board:
A minimal code to emulate the wave generator
// PWM with adjustable frequency and duty cycle - stripped version tested for Diecimila board
// Credit to westfw and selfonlypath
int on = 12; // Parameters for frequency and duty cycle
int off = 48; // 16.45 kHz 20% duty
void setup()
{
pinMode(3, OUTPUT);
}
void loop()
{
cli();
while (1) {
PORTD |= 0x8; delayMicroseconds(on); // pin 3 HIGH
PORTD &= ~0x8; delayMicroseconds(off); // pin 3 LOW
}
}
That's it,
the objective to replace 4 componants (2$) by 200$ worth of sophisticated equipment is fully reached ;D ;D ;D
Knowledge is priceless...
@ Selfonlypath
The scope is plugged between drain and V+ (HV transfo primary connections)
The MosFet drain is fed with 3.3V only