Arduino Temp Controlled Heater - Connecting to Main AC 220v

Hi All,

I have built, coded and tested an Arduino with DHT11 Temp & humidity Sensor and Relay
This will switch on the relay when Temp goes below 17 and turn off when Temp is above 22

I am happy with my build and ready to implement.

I only have one question - Powering the Arduino with Mains AC (In "Series" with the Heater if you will)

I don't want to have two power Supply's and I also don't want to Die. Taking a cautious approach

Some advice from more seasoned users would be much appreciated.

Can I use a USB 2 Pin Adapter (Iphone Charger) to Power the Arduino in this setup?

Can I use a USB 2 Pin Adapter (Iphone Charger) to Power the Arduino in this setup?

Yes.

(In "Series" with the Heater if you will)

What?

The Arduino has to be electrically isolated from the power line and the USB power adapter will take care of the isolation on power-supply side.

I assume you are using a relay to switch the 220V heater-power and relays are isolated.

I don't want to have two power Supply's

If you're using a USB power supply (5V) you'll need a relay with a 5V coil. (And, you'll need a relay driver because a relay coil requires more current than the Arduino can supply.)