Close
0%
0%

Home Automation on the Cheap V2

Using an Wemos D1(esp8266), cheap power supply, a switch, and a temp sensor you can automate anything

Similar projects worth following
This project is a continuation of the home automation with some refinements. This includes a newer program, better webpage and some hardware updates as well.

The arduino program has been split up and a temp sensor has been added. Also, the php code for the rrd page(Round Robin Database) has been added. The new code is what is recommend using but the old code and post will also remain for any interested in seeing the changes. Setting up of the rrd tool will also be included in this project and finally how to set up the webcam.

Project Files.zip

Updated files for state machine

x-zip-compressed - 218.24 kB - 04/14/2018 at 05:50

Download

  • 1 × Wemos D1 R1
  • 1 × HLK-PM01 AC-DC 220V To 5V 120vAC to 5vDC converter
  • 1 × NO switch
  • 1 × 5v Relay Opto Isolated
  • 1 × UPS for housing

View all 7 components

  • Very Simple to set up MQTT

    thjubeck04/18/2019 at 05:01 0 comments

    This project is going to become a more professional project in terms of the protocol used. 

    I have been working on a MQTT controlled version of this project and am currently working on documenting the newest revision on a new page that I will link soon.

     I currently have a version working with MQTT and as well as some big surprises planned stay tuned for more information in the next couple weeks. 

  • State Machine Debouncing

    thjubeck04/14/2018 at 05:56 0 comments

    The state machine article posted a few days ago was really interesting so the debouncing technique has been added to the project as opposed to the timer debouncing that was there before. This also allows for more functionality in the future so reply with comments if you would like to see anything specific added and maybe it will be available in the future. 

    See the links below for the Hack a Day article as well as the creators GitHub page. Be sure to check out his video as it is very interesting and has a lot to learn from it. 

    https://hackaday.com/2018/04/06/state-your-intentions-more-clearly-with-state-machines/#more-302326

    https://gist.github.com/NormalUniverse/5b3a8a8d909b56b58b67bd3ec2808f4b#file-simple-button-debounce-state-machine

  • Initial Log

    thjubeck03/19/2018 at 06:18 0 comments

    This project is a continuation of the first home automation project https://hackaday.io/project/11922-home-automation-on-the-cheap  with  a few updates. 

    First is a web-page built into the esp8266 for displaying the temperature and controlling the light. You can access this page by entering the ip adress of the esp8266 in the browser and it should show the sensor and light control. Also the update page is located at http://youresp8266ip/update. It is also possible to update the esp8266 directly from the arduino IDE by selecting the ip/hostname as the port. 


    IMPORTANT!!!!!!!

    FAILURE TO DO THIS WILL RESULT IN THE OTA UPDATE NOT WORKING!!!

    AFTER UPDATING THE ESP8266 OVER SERIAL ALWAYS MANUALLY CLICK THE RESET BUTTON ON THE ESP8266 
    THIS IS BECAUSE OF A KNOWN BUG IN THE WATCHDOG FIND OUT MORE HERE https://github.com/esp8266/Arduino/tree/master/doc/faq
    IMPORTANT!!!!!!!


    Second is the structure of the program. It is now broken up into tabs and individual programs / configuration files to make it a little easier to understand what is happening

    Lastly, the web-page is now completely controlled through php without the need for scripts running on the web-server constantly. The handling of the updates is now  much more streamline as the esp8266 triggers the php script directly on the update cycle set in the program. 

    All the files needed are included in the files list and there is a README file to get started. There is an update planned where the temp sensor is optional so watch for that in future updates. Also the webcam stream will be added in future updates as well. 

View all 3 project logs

View all 7 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates