Wiznet makers

nagamma06

Published September 23, 2022 ©

9 Projects

6 Resellers

0 Contests

Original Link

Making LAN/Ethernet Relay Switch Using Arduino UNO

How to make LAN/Ethernet relay switch using Arduino UNO and ethernet shield

COMPONENTS Hardware components

Arduino - Arduino UNO

x 1


Arduino - Arduino Ethernet Shield 2

x 1


Generic - Jumper wires

x 1


Generic - Relay Module

x 1


PROJECT DESCRIPTION

How to make LAN/Ethernet relay switch using Arduino UNO and ethernet shield. This is a simple tutorial, remote control over the LAN.

To control it, I used HTTP and JSON. This electronic circuit can be used as part of a larger system, IoT Internet of things.

Schematic

This software supports two relays, but it's not a problem to increase their number. IP device is permanently assigned to 192.168.0.101. If you had more devices working on the same network, you'd have to remember about unique IP and MAC addresses.

Testing

To turn on the relay, just enter the link in the browser. http://192.168.0.101/sw_on=1, "1" is the relay number. To turn off the relay http://192.168.0.101/sw_off=1. In response we get a JSON relay state {"sw_0":0 ,"sw_1":0 }

 

Documents
Credits
nagamma06

9 Projects

6 Resellers

0 Contests

Comments Write