Arduino Tiny Dimmer

Tiny Dimmer:

Zero-crossing detector & Voltage controlled phase regulation dimmer:

circuit

sketch