After completing my Home Control panel I discovered the esp8266 WiFi modules. I figured instead of buying a bunch of devices it would be fun to make some of my own. This project will follow me acquiring the modules, learning how to program them, and then finding uses for them around the house. I will need to learn how to set them up with my home automation software and function with the house. They also need to have a high wife approval factor and I can't just have ugly sensors everywhere int he house so some aesthetic design will need to have as well.
I haven't ever worked with SMD components and I hand soldered 2 Baoshi breadboard adapters. Once I built the board adapters I wanted to start programming.
I had two FTDI adapter's from china and they both provided different results, and neither of them would successfully allow me to program my esp-12e's in arduino ide. I thought maybe my first-go at soldering the smd components had failed. I thought I would spend some extra money and get a better USB adapter.
With my eventual goal, once some more parts arrive, to use the ESP8266 to send me notifications when my washing machine is uneven or finished I wanted to be able to have a sensor get triggered and send me an email. I figured I have a PIR motion sensor in stock so why not use that!
I was able to piece together some codes from different example sketches and get the ESP8266 to send an email notifying me that the motion detector was triggered. It took a few iterations. During attempt 1, once the esp8266 was on it just sent emails non-stop. That was really annoying.
After testing my HC-SR501 PIR Motion Sensor and figuring out the proper GPIO pins I finally got it to work properly. I will post the example sketch later. For now the sensor sends an email alert saying it detected motion. I think this would work well for my communal mailbox out in the street. There's no way to tell if there's mail unless you walk out and check. I would love to hook up a battery and set it in the mailbox but I will have to make the sure mail person doesn't plan on stealing it :)
I've received two NodeMcu Lua WIFI Dev Boards to start playing around. To date I was able to get some Blynk code working with the built in LED's. I followed up by setting up a DHT22 sensor and building a small webserver on the esp8266, it stayed connected and reported temp/humidity on my LAN for 3 days straight before I re-programmed it. I've had fun troubleshooting the code and programming the modules, and I use that term loosely for now as programming for me is in it's infancy, it's more combining different sources of code from google searches and trying to make them work and compile in Arduino IDE haha.
Two nights ago I got the module to send emails using smtp, and last night I finally was able to combine the sending the temp and humidity in an email. That's exciting for me as it involves setting up WiFi, setting up the sensor, getting the temp and humidity and placing it in the body of an email, and sending the email. I haven't automated the process yet, that's my next step, it is manual right now by typing "e" in the serial monitor to send an email. I haven't found how to send emails in intervals or when certain events happen. Those are my next two goals.
Eventually, my first live sensor project will a laundry notification system. Our laundry machines are in the basement and the washing machine will turn off halfway through the cycle if it's uneven. We don't often hear the chime and by the time we check the laundry smells and needs to be re-washed. So I will build a sensor that reports to us when the washing machine stops running.
I have a few options:
1) using vibration or movement with an accelerometer
2) current sensors
3) using a photo resistor and some LED's on the washing machine.
I think the laundry locked LED will be my best bet since it unlock's when it's uneven or finished. I want to use an email notification to tell us it's done.