Home > Projects > Wifi - WLan Projects > Wi-Fi Power Toggler

Wi-Fi Power Toggler

Summary of Wi-Fi Power Toggler


This project automates Wi-Fi router power cycling to restore internet connectivity when outages occur. Using an Arduino MKR1000, the system detects connection drops, cuts power to the router via a MOSFET, waits, and restores power. It also handles ISP web-logins and logs all events to Google Sheets via PushingBox, eliminating manual intervention for network failures.

Parts used in the Wi-Fi Power Toggler:

  • Arduino MKR1000
  • DFRobot DF Robot Lithium Polymer Battery (1000mAh, 3.7V)
  • Jumper wires (generic)
  • N-Channel Power Mosfet (STP36NF06L)
  • Linear Regulator (7805)
  • Resistor 1k ohm
  • Resistor 100k ohm
  • Resistor 221k ohm
  • PCB terminal block (3-way)
  • Breadboard (generic)

Restores your Wi-Fi connection for you, so you don’t have to, and keeps a track of how often this is done.

Wi-Fi Power Toggler

Things used in this project

Hardware components

Arduino MKR1000
Arduino MKR1000
× 1
DFRobot DF Robot Lithium Polymer Battery (1000mAh, 3.7V)
× 1
Jumper wires (generic)
Jumper wires (generic)
× 1
N-Channel Power Mosfet (STP36NF06L)
× 1
Linear Regulator (7805)
Linear Regulator (7805)
× 1
Resistor 1k ohm
Resistor 1k ohm
× 1
Resistor 100k ohm
Resistor 100k ohm
× 2
Resistor 221k ohm
Resistor 221k ohm
× 1
PCB terminal block (3-way)
× 1
Breadboard (generic)
Breadboard (generic)
× 1

Software apps and online services

pushingbox
Google Sheets
Google Sheets

Story

Quick Solutions to Questions related to Wi-Fi Power Toggler:

  • How does the system detect a Wi-Fi drop-out?
    The Arduino checks internet connectivity by attempting to connect to www.google.com every 10 minutes.
  • Can this project work with any Wi-Fi router voltage?
    Yes, provided the wall-wart output is below 35V DC and under about 3A current.
  • What happens if the router needs a web login to access the internet?
    The code can be customized to automatically submit username and password credentials to the ISP landing page.
  • How are connection events recorded in this project?
    Details are uploaded to a Google Sheet using a PushingBox account configured with a DeviceID.
  • What is the maximum number of times the router is power-cycled during an outage?
    The system attempts to toggle power up to a maximum of 10 times before stopping.
  • Does the device continue running if mains power fails?
    Yes, the MKR1000 runs on the Li-Po battery if mains power is lost, though the Wi-Fi connection will drop.
  • What is the recommended duration to turn the router off during a reset cycle?
    The default setting turns the router off for 20 seconds before attempting to reconnect.
  • Why might a heat sink be needed for the linear regulator?
    A heat sink is recommended if charging the battery simultaneously, as this increases current draw and heat dissipation significantly.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top