[adrotate banner=”7″]

 
We can do that using relays relay is actually a switch which is electrically operated by an electromagnet. 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. As an example for this tutorial, I will use these two channel relay module HL 52s, which case 2 relays with rating of 10 amps at 210 and 50 and 125 volts ac and 10 amps at 30 and 28 volts DC. The high voltage output connector has three pins. The middle one is the common pin and, as we can see from the markings here, this pin is the one for normally open connection and the other one is for normally close connection on the other side of the module. We have these two sets of pins. The first one has four pins ground and VCC pin for powering the module and two input pins in one end into the second set of pins has twist pins with a jumper between the GD, VCC and VCC. Pin 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 for better understanding. Let’S see the circuit schematic of the relay module in this configuration. So we can see that the 5 volts from our microcontroller, connected to the VCC pin for activating the relay through the opto coupler IC, are also connected to the GD VCC pin, which powers the electromagnet of the relay.

So in this is we got no isolation between the relay and microcontroller in order to isolate the microcontroller from the relay, we need to remove the jumper and connect separate power supply for the electromagnet to the GD, VCC and ground. Pin now, with this configuration, the microcontroller doesn’t have any physical connection with the relay, so it just uses the LED light of the opto coupler. I see to activate the relay. There is one more thing to be noticed from this circuit schematic the input pins of the module work inversely. As we can see, the relay will activate when the input pin will be low, because in that way the current will be able to flow from the VCC to the input pin which is low or ground and LED will light up and activate the relay. When the input pin will be high, there will be no current flow, so the LED will not light up and the relay will not be activated. Ok. Now, before we continue with this tutorial, I will warn you here that we will use high voltage, which, if incorrectly or improperly used, could result in serious injuries or debt, so be very cautious of what you are doing, because I take no responsibility for any of your Actions now I will proceed with this tutorial and explain how to use the relay module with the high voltage devices. First let’s take a look at the circuit diagram, as previously described.

I will use a 5 volt adapter as separate power supply for the electromagnet connected to the GD VCC and ground. Pin the Arduino is 5 volts pin will be connected to the VCC pin of the module and pin number 7. The in one input pin for controlling the relay now for the high voltage part. We need a power plug a socket and a cable with two wires. One of the two wires will be cut and connected to the common and normally open, pin of the mode output. Connector, so with this configuration when we will activate the relay, we will get the high voltage circuit closed and working here is how I made the cable. So I bought a plug, a socket and a cable like this. Then I carefully cut the cable and cut one of the wires like this and connected them to the normally open connection piece of the relay module. Also, I connected the ends of the cable to the plug and socket like this and here’s. The final appearance of my cable ready for use, however, before you use your cable, make sure it’s working properly, you can check it using multimeter or test it with a low voltage first. Okay, now what’s left for this tutorial is to make a simple, coat and taste the relay module, how it will work here’s, the simple code. We will just use the pin number seven for controlling the relay, so we will define it as output and make a program that will just activate and deactivate the relay each three seconds.

I will mention once again here that the input of the module works inversely. So a logic low at the input will actually activate the relay and vice versa, here’s. The demonstration of this example I tested three devices on it. First, a hundred watt light bulb, then a desk lamp and a fan heater. All of these devices work on 220 volts. So that’s how we can control any high voltage device using Arduino or actually any other microcontroller and, of course the possibilities are now unless, for example, we can control the devices using the TV, remote, Bluetooth, SMS internet and so on.

 
 

[adrotate banner=”1″]

arduino 12v relay Video

[mam_video id=LLFQ8sBWc80]

 

 

[adrotate banner=”2″]

 

[mam_tag id=4817]

 

 

[adrotate banner=”3″]

 

arduino 12v relay news

 

 

 

 

 

[adrotate banner=”4″]

 

 

arduino 12v relay Social

 

 

[adrotate banner=”5″]

 

 

official.arduino
2019-10-02T19:32:52+0000

👋 Want to bring Tony Stark-like gesture control to your projects? Learn how with the BLE-enabled MKR WiFi 1010 and Nano 33 BLE Sense boards using the ArduinoBLE library.
official.arduino
2019-10-02T19:08:01+0000

Arduin-yo ho ho! A fairground favorite, the pirate ship is a fun way to explore the oscillation of a pendulum. How much fun, you ask? Access our Science Kit Physics Lab preview and see for yourself: http://bit.ly/2oC6L0Q

🔬 Now that you’ve gotten your feet wet, dive into the kit and enjoy all nine experiments. Order yours today: http://bit.ly/2MnQ7fr


viewdemy
Mon Jul 26 16:33:28 +0000 2010

https://t.co/xBXy4Z0tyZ

https://t.co/xBXy4Z0tyZ

My Coil Testing Station

PIR and 12V LED

 

[adrotate banner=”6″]