Comments on: Turn Any Appliance into a Smart Device with an Arduino Controlled Power Outlet http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/ Raspberry Pi, Arduino, and DIY Electronics Projects and Tutorials Tue, 23 Jan 2018 14:42:23 +0000 hourly 1 By: Santhamoorthy http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-17870 Mon, 22 Jan 2018 02:48:22 +0000 http://www.circuitbasics.com/?p=313743#comment-17870 Nice

]]>
By: ashburn http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-16551 Sat, 30 Dec 2017 12:43:01 +0000 http://www.circuitbasics.com/?p=313743#comment-16551 Thank you for the guide but 1 major issue above is about powering the Arduino itself. A compact solution would be to use a battery but unless u make it rechargeable, eventually u will need to change it. Another way would be to use an ac-dc adapter connected to 1 of the twin ac sockets above but that has got to be always on instead of being controlled. That can be achieved by using 2 individual sockets and daisy-chaining the Live and Neutral wires accordingly. So you will end up with twin sockets but 1 will always have power (for the Arduino) and the other can be used as a controlled socket for other appliances.

]]>
By: Lyle http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-13163 Sun, 26 Nov 2017 13:29:24 +0000 http://www.circuitbasics.com/?p=313743#comment-13163 can you do this? but with a Raspberry PI instead of an Arduino UNO?

]]>
By: Mirul http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-10494 Thu, 19 Oct 2017 06:30:19 +0000 http://www.circuitbasics.com/?p=313743#comment-10494 Can I put LCD too??

]]>
By: anonjnr http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-10370 Tue, 17 Oct 2017 14:01:20 +0000 http://www.circuitbasics.com/?p=313743#comment-10370 Yo your link led me to a scam site. It probably was one of the ads? https://t.co/KEDJXBSWmq

]]>
By: Neo http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-9825 Wed, 11 Oct 2017 16:09:26 +0000 http://www.circuitbasics.com/?p=313743#comment-9825 Hey, did you find any info about this?

]]>
By: NEo http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-9824 Wed, 11 Oct 2017 16:08:34 +0000 http://www.circuitbasics.com/?p=313743#comment-9824 Hey man, could you find any info?

]]>
By: Eman Adel Elbehiry http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-7608 Sun, 10 Sep 2017 19:30:30 +0000 http://www.circuitbasics.com/?p=313743#comment-7608 How to connect 3 dht11 to arduino in the same time?

]]>
By: Priyo http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-2802 Fri, 28 Apr 2017 14:34:08 +0000 http://www.circuitbasics.com/?p=313743#comment-2802 Hello,
Am doing a project ; Fingerprint Authenticated Device switcher.
Am trying to use the fingerprint scanner to switch on and off the outputs of my arduino. Meaning;
– Only when i insert my fingerprint, the arduino will be switched on giving access to my bluetooth module in my arduino so that i can access the devices connected to the outputs of the arduino.
– And when i re-insert my fingerprint, the arduino will close or switch off all connections linked to it.

My problem is; i can’t figure out how to write the program to do these tasks.

You’ve got any advice or helpfor me?

]]>
By: aDRIAN http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-2620 Wed, 19 Apr 2017 18:47:01 +0000 http://www.circuitbasics.com/?p=313743#comment-2620 this is not working.. i changed dht to DHT to match the library name

#include

dht DHT;

#define DHT11_PIN 7
int pinOut = 8;

void setup(){
Serial.begin(9600);
pinMode(8, OUTPUT);
}

void loop()
{
int chk = DHT.read11(DHT11_PIN);
Serial.print(“Temperature = “);
Serial.println(DHT.temperature);
Serial.print(“Humidity = “);
Serial.println(DHT.humidity);
if (DHT.humidity <= 40){
digitalWrite(pinOut, HIGH);
}
else {
digitalWrite(pinOut, LOW);
}
delay(500);
}

]]>
By: William http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-2274 Tue, 14 Mar 2017 03:08:30 +0000 http://www.circuitbasics.com/?p=313743#comment-2274 How do I connect the power outlet into an 8 channel 5V DC Relay Board? Is it the same process?

]]>
By: Morsy http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-2219 Mon, 06 Mar 2017 01:09:25 +0000 http://www.circuitbasics.com/?p=313743#comment-2219 I am trying to build something similar but instead of turning the appliance on or off I want to vary the current going to it over time. I wanted to use a digital potentiometer connected to a programmed Arduino. What specifications should I look for in the potentiometer? Also is there a better way of varying the current going to an appliance? Do I still need a relay if I’m using a potentiometer? Thanks

]]>
By: Gunjan http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-2112 Thu, 09 Feb 2017 08:35:37 +0000 http://www.circuitbasics.com/?p=313743#comment-2112 Can you please write the program for the following temp. and humidity conditions:

The light should be on (i.e. pinOut, HIGH) for
1) RH>=70 AND Temp>=25
2) RH>=70 AND Temp<=25
3) RH=25
While, the light should remain off (i.e. pinOut, LOW) for
1) RH<=70 AND Temp<=25

]]>
By: Bikash Nath http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1952 Tue, 13 Dec 2016 15:38:39 +0000 http://www.circuitbasics.com/?p=313743#comment-1952 That’s a really illustrative go through for novices such as me into arduino and pi stuff for automation. I was hoping I could bother you with a few questions. I have been wanting to build a cheap water filter for heavy metal remediation and it asks for a time interval based control of a 240 V aquarium air pump to allow periodic pumping of a volume of water through the filtration media. What would be the best possible source to obtain the lay out or instructions for such a similar build illustrating the time based control of a 240 V appliance using arduino/pi?

]]>
By: Ben http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1917 Sun, 27 Nov 2016 04:36:45 +0000 http://www.circuitbasics.com/?p=313743#comment-1917 https://www.ebay.com/itm/231770174148

Anything like this works. No matter the voltage. It is controlled by 5v but can run high volts through it.

]]>
By: Morgan http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1916 Sun, 27 Nov 2016 03:54:18 +0000 http://www.circuitbasics.com/?p=313743#comment-1916 Thanks for the info! I’m looking to do basically what you have shown except the device I need to power is a little more heavy duty. I would need a relay that has a 5vdc coiled well because I’m using an arduino, but need to power a 240v ac 20amp device. Anyone have a suggestion on a good relay for this ? Thank you.

]]>
By: tontuino http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1907 Wed, 23 Nov 2016 13:21:24 +0000 http://www.circuitbasics.com/?p=313743#comment-1907 Dear friend
Thank you for your soooo well explained example.. I just followed it step by step and.. it worked!
I did a couple of pictures and uploaded a post to my own blog https://tontuino.wordpress.com/2016/11/22/enchufe-controlado-mediante-arduino/
Next step: Now i would like to make it work from an smartphone.. ๐Ÿ™‚
Thank you

]]>
By: Rodrigo http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1901 Mon, 21 Nov 2016 03:08:49 +0000 http://www.circuitbasics.com/?p=313743#comment-1901 Hi !

First of all I really loved your article, it was very useful and explicative. Is it possible to adapt this project to control the light switches, I mean I want my lights (those ones that the switches are on the wall) to be smart, and replace those switches with a relay and an Arduino in order to turn on the lights at night. I know the answer is yes but I don’t know pretty much about electrical connections. Thank you in advance.

]]>
By: Ben http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1787 Thu, 20 Oct 2016 14:51:25 +0000 http://www.circuitbasics.com/?p=313743#comment-1787 My solution was to just change it to a non GFCI outlet. I never had any problems. I had it plugged into a surg protected outlet anyway.
I assume it was because of spikes of current or something, but not my expertise. But never had problems after switching.

]]>
By: Ronan http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1775 Tue, 18 Oct 2016 20:27:16 +0000 http://www.circuitbasics.com/?p=313743#comment-1775 Same for me, the reset engages every time the signal is sent. Did you get a solution for this?

]]>
By: Ben http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1644 Thu, 15 Sep 2016 11:41:04 +0000 http://www.circuitbasics.com/?p=313743#comment-1644 Yes, I actually did this at home. It was super fun. One control for top, one control for bottom, one for both together.
I just ran a hot wire and split it two two using a wire nut and ran one wire into each relay (two relay module). Then one wire going to top, one wire to bottom.
You do have to break the copper bridge in between the top and bottom on the side of the outlet. I am not sure how much you know about electrical, but I learned at this. So this might not be the best way but it works.

5V Two 2 Channel Relay Module With optocoupler Compatible With Arduino PIC AVR DSP ARM by Atomic Market https://www.amazon.com/dp/B00TMFVVG6/ref=cm_sw_r_cp_api_UGO2xbJX0W7WR

Just an example of where you can buy a 2 channel relay.

]]>
By: Josh H http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1643 Thu, 15 Sep 2016 04:29:07 +0000 http://www.circuitbasics.com/?p=313743#comment-1643 Does this just connect one if the outlets to the Arduino? Is it possible to split the hot wire and run it through a two channel switch to control each outlet separately? Thank you for the tutorial it looks great!

]]>
By: Ikhmal Khalid http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1606 Fri, 02 Sep 2016 15:55:50 +0000 http://www.circuitbasics.com/?p=313743#comment-1606 https://codeload.github.com/markruys/arduino-DHT/zip/master

]]>
By: Pieter Botha http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1603 Thu, 01 Sep 2016 13:10:37 +0000 http://www.circuitbasics.com/?p=313743#comment-1603 Hi.Tanx for all your help. My problem is with the sketch. Where can i find dht.h library?

]]>
By: Ikhmal Khalid http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1592 Sun, 28 Aug 2016 11:49:06 +0000 http://www.circuitbasics.com/?p=313743#comment-1592 thanks for responding again Ben.
i wanna make the lights off if i blow the sensor.
can put this on line 20 in the coding.
“if (DHT.humidity = 57){ // RELAY TURNS OFF ”

is it right? because it doesnt work after i upload it on board.

]]>
By: Ben http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1584 Thu, 25 Aug 2016 11:51:26 +0000 http://www.circuitbasics.com/?p=313743#comment-1584 There is no button to reply to you so I’ll reply here.
Basically if you need that file, it’s just an import file, then you can remove the line. If u need it then you have to keep it.

]]>
By: IkhmalK http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1583 Thu, 25 Aug 2016 05:33:54 +0000 http://www.circuitbasics.com/?p=313743#comment-1583 thankyou for responding. Do you have any idea on how to solve this? your help is really appreciated.

]]>
By: Ben http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1581 Wed, 24 Aug 2016 21:00:00 +0000 http://www.circuitbasics.com/?p=313743#comment-1581 That means that the file “dht.h” on line 17 you are calling doesn’t exist or you don’t have it in the folder.

]]>
By: IkhmalK http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1580 Wed, 24 Aug 2016 15:14:37 +0000 http://www.circuitbasics.com/?p=313743#comment-1580 HI im hving problem with the coding. when i want to verify, it says erorr compiling.

“Arduino: 1.6.5 (Windows 7), Board: “Arduino/Genuino Uno”

sketch_aug24b.ino:1:17: fatal error: dht.h: No such file or directory
compilation terminated.
Error compiling.

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.”

how do i solve this?

]]>
By: hasantha_c http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1539 Thu, 11 Aug 2016 06:02:47 +0000 http://www.circuitbasics.com/?p=313743#comment-1539 Good job. everything (even these chats) was helpful. great. THANK YOU VERY MUCH..

]]>
By: Circuit Basics http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1479 Mon, 01 Aug 2016 15:04:36 +0000 http://www.circuitbasics.com/?p=313743#comment-1479 Yeah it would… You can use any sensor to trigger the relay, I just used a DHT11 as an example

]]>
By: Circuit Basics http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1478 Mon, 01 Aug 2016 15:02:53 +0000 http://www.circuitbasics.com/?p=313743#comment-1478 Thanks a lot! I try to make sure to include everything necessary to set up a project, but let me know if I miss anything or if something doesn’t work!

]]>
By: David http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1405 Tue, 12 Jul 2016 15:22:28 +0000 http://www.circuitbasics.com/?p=313743#comment-1405 Or websearch this (which today led me to ebay.ca):

5V 2 Channel Relay Module Shield For Arduino ARM PIC AVR DSP MCU Electronic F5

Then follow the instructions above, using one channel for each leg.

]]>
By: David http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1404 Tue, 12 Jul 2016 14:49:24 +0000 http://www.circuitbasics.com/?p=313743#comment-1404 Beware: 240V in most American homes is available as the voltage between (2) 120V “hot” phases (wires); interrupting only one of them means that the other remains “hot”, and potentially lethal, at the load–even when it’s “off.”

Instead, use a DPDT breaker, something like this:
http://electronicsure.ondatasheet.com/FTR-F1.pdf
to interrupt bofth the hot legs.

]]>
By: mohamed hagras http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1342 Wed, 22 Jun 2016 15:05:51 +0000 http://www.circuitbasics.com/?p=313743#comment-1342 thanks for this

]]>
By: Johnny http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1274 Tue, 31 May 2016 03:22:49 +0000 http://www.circuitbasics.com/?p=313743#comment-1274 Turn off arduino, unplug outlet. Plug in pins, then plugin arduino and outlet. Does that work?

I prefer to use a solid state relay. Easier and beefier.

]]>
By: Ben http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1272 Tue, 31 May 2016 03:14:30 +0000 http://www.circuitbasics.com/?p=313743#comment-1272 I love the article but just had a question. Seems to be a weird senerio…
So I believe everything is hooked up correctly, but I have a GFCI outlet and the reset engages every time the signal gets sent. So if I start with the 5v pin out, as soon as it starts to go in, I blow the outlet. Same with the 8 pin.
Any help would be great!

]]>
By: JayFiveAlive http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1210 Tue, 10 May 2016 23:03:00 +0000 http://www.circuitbasics.com/?p=313743#comment-1210 Would an outlet like this work triggering an aquarium water pump running at like 4 or possibly 15 W ?

]]>
By: Costa http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-1105 Mon, 21 Mar 2016 17:53:15 +0000 http://www.circuitbasics.com/?p=313743#comment-1105 hello leveraging your project may indicate how to install other rele temperature

Reley 1 35.5ยบc temperature (on 34-35 of 35.5)
Reley 2 humidity 40% (on 35-39 of 40)
greetings

]]>
By: Collin Smith http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-996 Sun, 14 Feb 2016 21:40:39 +0000 http://www.circuitbasics.com/?p=313743#comment-996 Hey, I just wanted to let you know that I really enjoy and benefit from your projects! I think you have done a great job laying things out in a step by step manner that doesn’t miss anything, which makes it much easier to learn and follow along. Great job NOT leaving out any necessary bits of info!!! Keep up the good work, and I hope to see more your stuff in the future. Thanks!

]]>
By: ็Ž‹ http://www.circuitbasics.com/build-an-arduino-controlled-power-outlet/#comment-935 Sat, 23 Jan 2016 16:29:13 +0000 http://www.circuitbasics.com/?p=313743#comment-935 Just a simple 5V or 12V relay is enough to achieve this TECH…

]]>