Arduino AC Power

I have attached a basic layout of what I’m trying to do with my Arduino. Basically I need to run an AC fan with AC power plug in that is humidity controlled from a dht22. The setup I have now is all DC power and I’m not getting enough power from the fan. So basically I’m needing a diagram and/or help with what all I need to run the AC power and not fry my Arduino or dht22 or LCD display. If the Arduino and accessories need ran off battery power that’s fine but id rather it all run straight from the AC plug in. Anything helps at this point THANKS!!!

I have attached a basic layout of what I’m trying to do with my Arduino. Basically I need to run an AC fan with AC power plug in that is humidity controlled from a dht22. The setup I have now is all DC power and I’m not getting enough power from the fan. So basically I’m needing a diagram and/or help with what all I need to run the AC power and not fry my Arduino or dht22 or LCD display. If the Arduino and accessories need ran off battery power that’s fine but id rather it all run straight from the AC plug in. Anything helps at this point THANKS!!!

I have attached a basic layout of what I’m trying to do with my Arduino. Basically I need to run an AC fan with AC power plug in that is humidity controlled from a dht22. The setup I have now is all DC power and I’m not getting enough power from the fan. So basically I’m needing a diagram and/or help with what all I need to run the AC power and not fry my Arduino or dht22 or LCD display. If the Arduino and accessories need ran off battery power that’s fine but id rather it all run straight from the AC plug in. Anything helps at this point THANKS!!!

AC adapter for the Arduino

repost http://forum.arduino.cc/index.php?topic=476955.msg3258460

don't crosspost

You can safely use the Adafruit Powerswitchtail or similar to control AC appliances with an Arduino.

Also, a Solid State Relay (beware of fakes on eBay) can be used. If the SSR input says 3-30V DC, you can connect the input terminals directly to an Arduino I/O pin and GND.

That picture shows all the components, but none of the wiring. Can you draw a circuit diagram, even if it is hand drawn and post a pic?
And post your code. Use the code tags </>

Oh, don’t cross post http://forum.arduino.cc/index.php?board=5.0
Ask a moderator to consolidate your threads.

And don't cross post http://forum.arduino.cc/index.php?topic=476952.msg3258474#msg3258474

@TuffyTuesday, stop cross-posting. Threads merged.

@TuffyTuesday, stop cross-posting. Threads merged.

Connecting mains power to a solderless breadboard is like making an entry for the Darwin Awards