First Ardiuno Project Mosfet Inverter

delay(8.333333); for sure won't work as delay uses an unsigned long as it's argument, not a floating point argument. You would have to use delayMicroseconds(8333); instead and even then delayMicroseconds has a built in (I believe I recall) 4 usec step size resolution.

Lefty