Controlling Triac by Arduino

Check out this instructable:

http://www.instructables.com/id/Arduino-controlled-light-dimmer-The-circuit/

Note the safety warnings. There MUST be an optoisolator in the circuit.

Thanks a lot!
I'm trying right now, based on your schematics and code.
I'll post my results.

Kilian