In the realm of modern living, our DIY IoT-Based Smart Plug with NFC and Alexa Integration brings a new dimension to home automation. This project is dedicated to crafting a user-centric, budget-friendly smart plug that seamlessly blends into your lifestyle. By harnessing the power of NFC technology and integrating with Amazon Alexa, this smart plug allows users to control and automate their home appliances effortlessly through various channels.


Key Features

  • Remote Control: Our DIY IoT-Based Smart Plug lets you remotely control your appliances using a smartphone app or web browser, offering unparalleled convenience and control from anywhere.
  • Scheduling and Automation: Create personalized schedules for your devices to automate their operation based on specific times or conditions. Whether it's turning on the lights at sunset or having your coffee maker brew your morning cup at the perfect time, the possibilities are endless.
  • NFC Compatibility: Tap into the future with NFC technology. Our smart plug integrates NFC capabilities, enabling users to activate or deactivate appliances by simply tapping their NFC-enabled device. This feature adds an extra layer of ease and accessibility to your smart home experience.
  • Amazon Alexa Integration: Seamlessly connect our smart plug with Amazon Alexa, allowing you to control your appliances using voice commands. Alexa compatibility transforms your home into an intuitive, voice-controlled environment, enhancing both convenience and accessibility.
  • Smart Alerts: Stay informed with smart alert notifications that notify you when appliances operate beyond preset limits or are left on for extended periods. These alerts promote energy-conscious behavior and minimize wastage.
  • User-Friendly Interface: Our intuitive mobile app and web interface make configuring settings, monitoring device status, and controlling appliances a breeze, ensuring a user-friendly experience for all.
  • Open-Source Platform: Embracing collaboration and knowledge-sharing, we offer open-source hardware and software designs alongside comprehensive documentation. This encourages DIY enthusiasts and developers to customize and enhance the smart plug's capabilities.
  • Compatibility: Designed to seamlessly integrate with popular home automation platforms and voice assistants, such as Amazon Alexa, the smart plug offers enhanced versatility and adaptability.



  • Effortless Control: Remotely manage appliances, set schedules, and control your home with ease through various channels, including NFC and voice commands.
  • Innovative Convenience: NFC technology adds an innovative touch to your smart home experience, simplifying interaction with appliances.
  • Voice-Powered Living: Amazon Alexa integration offers hands-free control, transforming your home into an intuitive, voice-activated haven.
  • Customization: Open-source design empowers users to tailor the smart plug's functionality to their preferences.
  • Educational Value: A valuable resource for learning about IoT, home automation, and integrating emerging technologies.


Components Required


Circuit Diagram

Circuit Diagram for Smart Plug with NFC

The circuit includes a relay circuit which contains a diode transistor and an optocoupler ic this relay section is controlled by the GPIO pin of the esp01 module. This circuit is powered by Hi-Link 5v power supply. More details can be found in the schematics section.


Arduino Code

Arduino Code For Smart Plug


3D Model and PCB Design for Smart Plug

3D Model of Smart Plug

I also designed 3D Model to provide a full industrial look to my prototype. (STL File)

Smart Plug PCB Design 3D Model


DIY Smart Plug

DIY Smart Plug

Voila! You have made your smart plug now control your wired appliances from any point of world.

Leave a comment

Please note, comments must be approved before they are published

Your cart