Chihuahua|
Projects

WiFi PC Power Relay - IoT Smart Home Integration

Team member 1
April 20, 2023

Transform any computer into a smart device with this low-cost WiFi relay that enables remote power control through voice assistants and mobile apps.

This open-source hardware project uses an ESP8266 microcontroller to create a smart relay that can:

  • Turn PCs on/off remotely
  • Integrate with Alexa and Google Home
  • Control via smartphone
  • Schedule power cycles
  • 🎙️ Voice Control

    • "Alexa, turn on my computer"
    • "Hey Google, restart the PC"
    • Custom voice commands
    • Multi-language support
  • 📱 Remote Access

    • Control from anywhere
    • Mobile app integration
    • Web interface
    • REST API
  • Hardware Features

    • Safe relay isolation
    • LED status indicators
    • Manual override button
    • Power monitoring
  • 💰 Cost-Effective

    • Total cost under $10
    • Uses common components
    • Easy to source parts
    • No proprietary hardware
  • Microcontroller: ESP8266 (NodeMCU/Wemos D1)
  • Relay: 5V relay module
  • Power: USB or 5V adapter
  • Connection: WiFi 2.4GHz
  • Protocol: MQTT, HTTP
  • Integration: Alexa Skills, Google Actions
- ESP8266 Board ($3)
- 5V Relay Module ($2)
- Jumper Wires ($1)
- Project Box ($2)
- USB Cable ($2)
Total: ~$10
  • Firmware: Arduino/C++
  • Cloud: AWS IoT / Google Cloud
  • Protocols: MQTT, REST
  • Voice: Alexa SDK, Google Assistant SDK
  • Mobile: Blynk, Home Assistant
  • Remote PC management
  • Server control
  • Mining rig management
  • Home automation
  • Energy saving
  • Security systems
  1. Flash ESP8266 with provided firmware
  2. Connect relay to GPIO pins
  3. Configure WiFi credentials
  4. Link to Alexa/Google Home
  5. Test voice commands
  • 500+ GitHub stars
  • Used in home labs worldwide
  • Featured in IoT communities
  • Cost savings for users

Full code and schematics available on GitHub: github.com/Avzolem/Wifirelay-PC-Power-Button-ESP8266

This project involves mains electricity connections. Always follow proper safety procedures and local electrical codes.