UPDATE: This worked out so well, easily and safely that I've actually created a product and a small company out of it. I've sold several so far without any advertising, I've only posted it on the iRacing forums so far as I work out production issues. I give you - SimEffects
Hello,
Forgive me as I'm brand new to Arduino and while I have a basic knowledge of electronics virtually all of this is new to me.
I'd like to create a device that can vary the flow of 120Vac to a desktop fan - this would then be controlled via input from various driving sims/games such that the faster the car is moving the higher the voltage to simulate a wind effect. My goal is to make this as simple as possible in that you'd plug an existing small fan into the device rather than using a custom fan/enclosure. I can handle the programming side just fine, it's the 120Vac regulator hardware I don't understand.
Are there units that can be purchased that provide this functionality or would I have to piece that together myself? Ideally there would be an off-the-shelf module I could use, that the Arduino would control, that the fan would plug into (then it into the mains). I do understand the dangers of working with 120Vac so I would take all precautions there (this is also why I'd love to find something off the shelf that could do this).
I hope this isn't too basic of a question, if so apologies. Thanks for any guidance you can provide!
UPDATE: This was VERY simple - I purchased the dimmer controller linked just below, 3 wires to the Arduino (sensing off a PWM pin), cut an extension cord, AC to the wall, AC to the fan/lamp/etc. and voila, done. Took me less than 15 minutes to get a prototype working and about 30 more to get it integrated into my simulator (via SimHub).
And shockingly I didn't get zapped once. It's almost like if you take precautions it's no more dangerous than wiring an outlet
~Ross