Chat freely about anything...

User avatar
By OnlineDishwasher
#33856 Hi!

I have a simple project in mind to try out the ESP8266. We have a dishwasher that we can't set to run in a few hours and we always forget to turn it on when we leave the house (it's noisy).

So I was thinking about making a smart switch out of an ESP8266 and a relay. I'm fine on the software side of things but not so much on the electronics.

I'd like the smart switch to turn on and off on a schedule but also on demand via a simple web UI. My wifi is 802.11/a/b/g/n/ac WPA2 and I'd like the connections to the ESP8266's web UI be encrypted over SSL.

A few questions:

- Can the ESP8266 do SSL and WPA2?
- What do I need besides an ESP8266-01 and a relay (I already have a breadboard, some resistors, LEDs and a perf board)?
- Which USB programmer should I get? I read FTD's ones are tricky because of clones but I use OS X.
- How do I build a power supply so the ESP8266 can feed off the mains it's switching so it uses only 1 outlet and doesn't require a wall wart?
- How do I make the high voltage part safe so my house doesn't burn down?
- Is it a good idea to implement this with the JavaScript firmware?
- I expect this to cost me less than 15$, is it accurate?

Thanks!
User avatar
By OnlineDishwasher
#33929
Barnabybear wrote:Hi, have a look at this, if its good post back & we can look at the next stage.
viewtopic.php?f=11&t=6211


Thanks, that seems to cover the software although I'd rather have the device self-contained without requiring an Arduino.

From reading further, it would appear the safer thing to do would be to use an off the shelf 5V 2A wall wart and have a plug inside the project that feeds the 5V PSU. I avoid making my own PSU (and a fire hazard) while still requiring only one connection to the mains. I then solder the 5V output onto a perf board, feed it into a 3.3V step down so I have a 5V for the relays and a 3.3V for the ESP.

I was also thinking about ordering one of these relay boards to I just have to screw the 110V into it. Is there anything else I need to do to make this safe?