项目作者: ellaisys

项目描述 :
IOT WiFi ESP8266 ON-OFF Relay
高级语言: Objective-C
项目地址: git://github.com/ellaisys/iot_wifi_esp8266.git
创建时间: 2019-05-15T17:59:07Z
项目社区:https://github.com/ellaisys/iot_wifi_esp8266

开源协议:MIT License

下载


4CH Relay Automation with ESP8266 over WiFi and RF

This is a simple Home Automation project using the DIY micro-controller (ESP8266) with firmware developed over arduino. This setup can be used to control any relay from any web browser using the wireless network.

Alternately, the RF uses the 433MHz Receiver in case the WiFi is not available.

Gather Materials

  1. ESP8266 NodeMCU (https://www.amazon.in/Lolin-NodeMCU-ESP8266-CP2102-Wireless/dp/B010O1G1ES)
  2. 4-Channel 5V Relay Module (https://www.techtonics.in/5v-10a-4-channel-opto-coupler-relay-board-module)
  3. F2F JUMPER WIRES (20CM) 20PCS (https://www.olelectronics.com/F2F-Jumper-Wires--20-PCs)

All the components are avalable in the local electronics market or over Amazon online store. Please make necessary changes in the code based on the board you use.

Configuration

  1. The application uses Auduino (v1.8.13) for development or rebuilds.
  2. Update wifi_config.h with wifi configuration (SSID and PASSWORD).
  3. Modify the arduino sketch file sketch_esp8266_wifi_relay.ino for the DigitalPinData PIN_DATA array attribute.
    1. DigitalPinData PIN_DATA[] = {
    2. { "[BTN_IOT_0]", 16, CONST_WIFI_IOT_OFF, FALSE },
    3. { "[BTN_IOT_1]", 5, CONST_WIFI_IOT_OFF, TRUE },
    4. { "[BTN_IOT_2]", 4, CONST_WIFI_IOT_OFF, TRUE },
    5. { "[BTN_IOT_3]", 0, CONST_WIFI_IOT_OFF, TRUE },
    6. { "[BTN_IOT_4]", 2, CONST_WIFI_IOT_OFF, TRUE },
    7. { "[BTN_IOT_5]", 14, CONST_WIFI_IOT_OFF, FALSE },
    8. { "[BTN_IOT_6]", 12, CONST_WIFI_IOT_OFF, FALSE },
    9. { "[BTN_IOT_7]", 13, CONST_WIFI_IOT_OFF, FALSE },
    10. { "[BTN_IOT_8]", 15, CONST_WIFI_IOT_OFF, FALSE },
    11. { "[BTN_IOT_9]", 3, CONST_WIFI_IOT_OFF, FALSE }
    12. };

Circuit Diagram

Node MCU ESP-8266 Pinout Diagram

Node MCU ESP-8266 Pinout Diagram