NC: normally closed – there is contact between the common pin and the normally closed pin.So, when you trigger the relay, it connects to the COM pin and power is provided to the load (a lamp, in our case). NO: normally open – there is no contact between the common pin and the normally open pin.This particular relay module comes with two relays (those blue cubes).Ībout mains voltage, relays have 3 possible connections: The relay module is the one in the figure below. It means that it can be turned on or off, letting the current going through or not. When the Arduino is connected to an Ethernet shield, you can’t use Digital pins from 10 to 13, because they are being used in order to establish a communication between the Arduino and the Ethernet shield.Ī relay is an electrically operated switch. Note: you must connect an Ethernet cable from your router to your Ethernet shield as shown in the following figure. Just mount this module onto your Arduino board, connect it to your network with an RJ45 cable and follow a few simple steps to start controlling your projects through the web. The Arduino Ethernet shield connects your Arduino to the internet in a simple way. The code and the schematics are very similar. Note: if you’re not comfortable dealing with mains voltage, but you still want to try to do the project, you can replace the relay module with an LED, for example. If you like Arduino projects and you want to build more, I recommend getting my Arduino Step-by-step Projects – Build 25 Projects course. Arduino – Webserver with an Arduino + Ethernet Shield.You can access your web server with any device that has a browser and it’s connected to the same network. This post shows how to build an Arduino Ethernet web server that controls a relay that is attached to a lamp.
0 Comments
Leave a Reply. |