I'm working on a project where I'd like to control the speed of an AC powered box fan using a microcontroller.
I am wondering if this can be accomplished by using a PWM output to control a solid-state relay (the same way PWM can be used to control brightness of an LED, but applied to an AC powered device). This would be controlling 120VAC power with something like a 5-12V PWM signal.
I have not worked with solid-state relays before, so I wanted to check if this was conceptually solid before diving any deeper. Alternative solutions and / or parts recommendations are also much appreciated. Thanks!