I live in France so delay must be between 1/60s (full) and 1/whatever dimming range you want second (60Hz).
the program works fine except that the light blinks ramdomly. What is strange is that I have the same trouble if I replace the arduino by a correctly programmed PC paralell port.
Is there something I don't understand or the electronic part is probably involved ?
Also you should brace the intrerrupt routine with nointerrupts() interrupts() statements.
This makes no sense:
delayMicroseconds(8.33)
delayMicroseconds takes an integer as argument, not a floating point value. The floating point value i converted to integer, a waste of time (unless the compiler handles it)
but I have exactly the same issue : dimming seems fine but the lamp flashes 3-5 times ni 10 seconds. As long as I can see, it's completely random.
The PC version using the paralell port was doing the same but I was thinking that it was due to other system paralell tasks.