220V AC detection

Here's a suggested circuit (note the changes for 220VAC at the bottom):

http://ruggedcircuits.com/html/circuit__26.html

--
The Rugged Motor Driver: two H-bridges, more power than an L298, fully protected