![]() ![]() ![]() So in this case we got no isolation between the relay and the microcontroller. So we can see that the 5 volts from our microcontroller connected to the Vcc pin for activating the relay through the Optocoupler IC are also connected to the JDVcc pin which powers the electromagnet of the relay. With a configuration like this the electromagnet of the relay is directly powered from the Arduino Board and if something goes wrong with the relay the microcontroller could get damaged.įor better understanding let’s see the circuit schematics of the relay module in this configuration. The second set of pins has 3 pins with a jumper between the JDVcc and the Vcc pin. The first one has 4 pins, a Ground and a VCC pin for powering the module and 2 input pins In1 and In2. On the other side of the module we have these 2 sets of pins. The high voltage output connector has 3 pins, the middle one is the common pin and as we can see from the markings one of the two other pins is for normally open connection and the other one for normally closed connection. The electromagnet is activated with a low voltage, for example 5 volts from a microcontroller and it pulls a contact to make or break a high voltage circuit.Īs an example for this Arduino Relay Tutorial we will use the HL-52S 2 channel relay module, which has 2 relays with rating of 10A 250 and 125 V AC and 10A 30 and 28 V DC. A Relay is actually a switch which is electrically operated by an electromagnet. We can control High Voltage electronic devices using relays. In this tutorial we will learn how to Control High Voltage Devices using the Arduino Board. You can watch the following video or read the written tutorial below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |