Patel Darshil
Published © GPL3+

IOT Relay Module Using NodeMCU

An IOT appliance controller using NodeMCU.

BeginnerShowcase (no instructions)1 hour10,846
IOT Relay Module Using NodeMCU

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
1-Channel Signal Relay 1A SPDT I²C Mini Module
ControlEverything.com 1-Channel Signal Relay 1A SPDT I²C Mini Module
×1

Software apps and online services

Arduino IDE
Arduino IDE
circuito.io
circuito.io

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

capture_XvFplPtlxw.JPG

Code

Untitled file

C/C++
// Include Libraries
#include "Arduino.h"


// Pin Definitions
#define RELAYMODULE_PIN_SIGNAL	5



// Setup the essentials for your circuit to work. It runs first every time your circuit is powered with electricity.
void setup() 
{
    // Setup Serial which is useful for debugging
    // Use the Serial Monitor to view printed messages
    Serial.begin(9600);
    while (!Serial) ; // wait for serial port to connect. Needed for native USB
    Serial.println("start");
    
}

// Main logic of your circuit. It defines the interaction between the components you selected. After setup, it runs over and over again, in an eternal loop.
void loop() 
{
    
    
    // You have chosen a controller that doesn't have code yet.
    // You may request a similar combination but with Arduino Uno and try to use the Arduino Uno libraries & code - some may work, but we can't guarantee it. 
    // Make sure your Arduino IDE supports the chosen controller. If not visit http://playground.arduino.cc/Main/BoardsManagerSupport
    
}

Credits

Patel Darshil

Patel Darshil

29 projects • 165 followers
I am an Electronics Hobbyist pursuing my BE in Electronics and communication

Comments