I am trying to figure out how to have a microcontroller control the speed of a low power AC motor. Does the gate of a triac operate off of AC or DC or is that even the right question to ask (I am new to this)? The idea would be to use the PWM pins on a microcontroller to trigger the gate of a triac to vary the speed of the motor. The motor runs off of 120V (wall outlet) and probably quite a bit less than 1 amp. It is just an aquarium powerhead.