---
title: "[RE]이더넷 쉴드와 아두이노를 이용해 IoT 스마트 콘센트를 만들다"
url: "https://maker.wiznet.io/jaden/projects/re----iot---/"
markdown_url: "https://maker.wiznet.io/jaden/projects/re----iot---/md"
type: "UCC: User Created Content"
author: "rena"
author_url: "https://oldmaker.wiznet.io/2022/04/25/%ec%9d%b4%eb%8d%94%eb%84%b7-%ec%89%b4%eb%93%9c%ec%99%80-%ec%95%84%eb%91%90%ec%9d%b4%eb%85%b8%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%b4-iot-%ec%8a%a4%eb%a7%88%ed%8a%b8-%ec%bd%98%ec%84%bc%ed%8a%b8%eb%a5%bc/"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "rena"
original_url: "https://oldmaker.wiznet.io/2022/04/25/%ec%9d%b4%eb%8d%94%eb%84%b7-%ec%89%b4%eb%93%9c%ec%99%80-%ec%95%84%eb%91%90%ec%9d%b4%eb%85%b8%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%b4-iot-%ec%8a%a4%eb%a7%88%ed%8a%b8-%ec%bd%98%ec%84%bc%ed%8a%b8%eb%a5%bc/"
published: "2023-11-02"
language: "ko"
hardware: ["Arduino Ethernet Shield", "Arduino Mega 2560", "Seeed Studio Grove - Relay"]
likes: 0
views: 370
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# [RE]이더넷 쉴드와 아두이노를 이용해 IoT 스마트 콘센트를 만들다

> IoT smart device

Original author: rena (source: https://oldmaker.wiznet.io/2022/04/25/%ec%9d%b4%eb%8d%94%eb%84%b7-%ec%89%b4%eb%93%9c%ec%99%80-%ec%95%84%eb%91%90%ec%9d%b4%eb%85%b8%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%b4-iot-%ec%8a%a4%eb%a7%88%ed%8a%b8-%ec%bd%98%ec%84%bc%ed%8a%b8%eb%a5%bc/)

## Components

- **Arduino Ethernet Shield** x 1 ([docs](https://docs.arduino.cc/retired/shields/arduino-ethernet-shield-without-poe-module))
- **Arduino Mega 2560** x 1 ([docs](https://www.farnell.com/datasheets/1674878.pdf?_ga=2.12759806.871556650.1519619484-654667508.1508905608&_gac=1.209399078.1518779130.EAIaIQobChMI97my66Sq2QIV77ftCh01kgA_EAMYASAAEgKPyvD_BwE))
- **Seeed Studio Grove - Relay** x 1 ([docs](https://wiki.seeedstudio.com/Grove-Relay/))

## Documents and links

- [EthernetpostRelayWebserver](https://maker.wiznet.io/_lib/download.asp?path=project/6943&downfile=EthernetPostRelayWebServer%2Eino) (code)

## Article

This UXC is about creating a simple externally controllable IOT outlet using an Arduino Mega, an Ethernet shield, and a relay module.

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961283%2Epng)

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961297%2Epng)

Remove the sheath of the multi-tab wire and connect the 220V line to relay off and on (see circuit below)

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961351%2Epng)

Later, the relay module is connected to the mega so that it can be controlled by the Arduino mega.

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961391%2Epng)

The code used the web server code.

The author said he was able to check the messages toggled to cereal during the test,

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961453%2Epng)

It is said that the relay is actually operating and the power is ON-OFF.

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961561%2Egif)

---

본 UXC는 아두이노 메가와 이더넷 쉴드, 릴레이 모듈을 사용하여 간단하게 외부에서 제어 가능한 IOT 콘센트를 제작한 컨텐츠입니다.

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961283%2Epng)

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961297%2Epng)

멀티탭의 전선의 피복을 벗겨내 220V 라인을 릴레이로 끄고 켤 수 있게 연결(아래 회로 참)

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961351%2Epng)

이후에 아두이노 메가에서 제어 가능하게 릴레이 모듈을 메가에 연결.

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961391%2Epng)

코드는 웹서버 코드를 사용하였습니다.

저자가 Test시 시리얼로 토글되는 메시지를 확인할 수 있었다고 하였고,

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961453%2Epng)

실제로 릴레이가 동작하여 전원이 ON-OFF 됨을 확인하였다고 합니다.

![](https://maker.wiznet.io/upload/ckeditor5/279227998%5F1698961561%2Egif)

---

Source: https://maker.wiznet.io/jaden/projects/re----iot---/
