Giter Club home page Giter Club logo

wifi-router-watchdog's Introduction

This is a wifi-router watchdog based on an esp8266 wifi relay board. It will connect to ntp server and power cycle the wifi router when internet connection failed. This requires more communication than a simple ping. After restart it will wait 20+ hours before next trigger to avoid power cycle too frequencely.

I used a board similar to the "HiLetgo ESP8266 WiFi Relay Module DC7-30V ESP-12F Network 5V Relay Module 220V 10A", which can be found on Amazon. I soldered pin headers of uart to program the board. Any esp8266/esp32 board can be used with the relay control pin redefined. The are some esp8266 relay boards come with usb programming interface, which will be easier to use.

The relay outputs should be connect to AC supply using the "normal close" and "common" terminals. That is, the router power is always connected until the esp8266 interrupts it when the watchdog timeout. The failure of esp8266 will not harm the normal router operation.

An extra "24-Hour Mechanical Outlet Timer" can be added the reset the esp8266 as a fail-safe. Cycle power to esp8266 several times a day to restart the esp8266. (I cycle the power to esp8266 4 times a day.) Cycle power to esp8266 won't affect the power to the router, as we use "normal close" connection. It happened that both the esp8266 and router failed after AC power glitch on my site.

AC power => Mechanical Outlet Timer => DC power adaptor => esp8266 power

AC power => (optional UPS =>) esp8266 relay (NC) => cable modem and wifi router etc.

The LED blinks at different duty cycles as a simple monitor of the states of the esp8266 watchdog.

wifi-router-watchdog's People

Contributors

hippo5329 avatar

Watchers

 avatar

Forkers

kmx236

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.