![]() ![]() Once you have all of the needed equipment, create your setup. Wire stripper, to strip plastic housings off wires.Screwdriver, to loosen and tighten screw terminals.Wire cutter, to cut wires to your preferred length.On top of that, you’ll need to have a few extra tools at hand: Copper cable (12 AWG should do, length depends on how long you’d like it).Here is the full list of items you’ll need before getting started with a relay module with your Arduino: You’ll need these to connect it to your Arduino. Normal SPDT relays don’t have pins that connect to microcontrollers. Lastly, you should get one in module form. SRD relays make a loud, clicky sound when their electromagnets shift between these positions. SRD relays are significantly cheaper than SSR relays at roughly half the price, but the benefit of them is that they’re silent when they turn on and off. An example would be SRD-05VDC-SL-C, which is an SRD type 5V relay module.Īnother thing to check is whether it’s an SRD or SSR relay. If you are shopping online, you should pick one that has “5VDC” in its model name. Unfortunately, most of these that are commonly available don’t work with an Arduino. Your local electronics dealer might have many different kinds of relay modules on the shelves. Alternatively, consider enlisting the help of someone who knows their way around relays. If you are not 100% sure what you are doing, it’s best to abandon the project until you learn more about working on it safely. Please be careful and take safety precautions at all times. This can be dangerous, as you risk shocking yourself. Warning: If you’re using relays, you’re messing with high-voltage electricity. If you do that, it’ll never turn off, as electricity will just pass through the other wire. ![]() You can only have either NC or NO connected to the light bulb – never both at the same time. Common Ground: connects to mains source.NO (normally open): connects to light bulb open while relay is off.NC (normally closed): connects to light bulb closed while relay is off.Each hole connects to a copper wire that carries high-voltage electricity to and from the light bulb. It should have three signs: NC, NO, and Common Ground. On the other side of the relay module, there’s a screw terminal with three holes. These are the pins that you’re supposed to connect to the Arduino with jumper wires.Ĭonnecting the Relay Module to a Light Bulb The relay module should have header pins on it with three signs: Signal, 5V, and GND. When you pass an electric current through the low-voltage pins, you’re powering an electromagnet that pulls a “switch,” turning it either on or off, depending on the configuration you’re using.Īn SPDT relay always has six pins: typically with three male headers for connection to the Arduino and three screw terminal pins to connect to mains electricity. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |