{"id":3835,"date":"2026-11-21T12:20:36","date_gmt":"2026-11-21T04:20:36","guid":{"rendered":"http:\/\/www.greatvacuumcooler.com\/blog\/?p=3835"},"modified":"2026-11-21T12:20:36","modified_gmt":"2026-11-21T04:20:36","slug":"how-to-connect-a-relay-module-to-a-power-supply-4082-44f31b","status":"publish","type":"post","link":"http:\/\/www.greatvacuumcooler.com\/blog\/2026\/11\/21\/how-to-connect-a-relay-module-to-a-power-supply-4082-44f31b\/","title":{"rendered":"How to connect a relay module to a power supply?"},"content":{"rendered":"<p>Hey everyone, if you\u2019ve ever dabbled in DIY electronics, home automation, or small industrial setups, you\u2019ve probably stumbled on relay modules\u2014little workhorses that let you flip high-power devices (like a porch light, a small water pump, or even a 12V motor) on and off with a low-voltage signal from a microcontroller (Arduino, Raspberry Pi, whatever). And let\u2019s be real, half the time people mess up these projects not because the relay itself is broken, but because they hook up the power supply wrong. As a relay module supplier who\u2019s fielded way too many \u201cwhy won\u2019t my relay trigger?\u201d emails last year, I figured I\u2019d break this down like I\u2019d walk a newbie through it\u2014no jargon, no confusing graphs, just what actually works. <a href=\"https:\/\/www.chweide.com\/relays\/relay-module\/\">Relay Module<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.chweide.com\/uploads\/47667\/small\/12mm-metal-push-button-switch04757.jpg\"><\/p>\n<p>First, let\u2019s cut to the basics: a relay module isn\u2019t just a \u201cswitch\u201d you plug into anything. It has two separate circuits, and if you mix them up? You might blow the module, fry your power supply, or worst case, short something and trip a breaker. The two circuits are: the Control Circuit (the weak side that takes signals from your Arduino\/pi, usually 3.3V or 5V) and the Load Circuit (the strong side that powers the device you\u2019re controlling, like 120V AC for a lamp, or 12V DC for a fountain pump). Today we\u2019re talking specifically about connecting power supplies, which is mostly for the Control Circuit\u2014though we\u2019ll touch on Load power too, since they\u2019re tied.<\/p>\n<p>Let\u2019s start with the number one rule I repeat to every customer: Check your relay\u2019s specs before you do <em>anything<\/em>. Every relay module is labeled (or comes with a quick sheet) that says two big numbers: 1) Control Voltage (let\u2019s call this Vcc for short) and 2) Control Current (the amps it needs to trigger, usually between 50mA and 100mA for a standard 5V relay). If you skip this, you\u2019re setting yourself up for trouble. For example, I\u2019ve seen a kid try to hook a 12V relay to a 5V Arduino pin\u2014no wonder it wouldn\u2019t click. Or someone use a 12V power supply that only outputs 20mA for a relay that needs 80mA\u2014again, no trigger.<\/p>\n<p>Next, pick the right power supply. This isn\u2019t your phone charger\u2014don\u2019t grab a random wall wart off your shelf. Let\u2019s break it down for the two most common control voltage types you\u2019ll see (90% of relay modules are either 5V or 12V):<\/p>\n<ul>\n<li>If your module is 5V: Use a 5V DC power supply that can deliver at least the control current. Most standard 5V relays need ~70mA, so a 5V 1A supply is perfect\u2014way more than enough, no strain.<\/li>\n<li>If it\u2019s 12V: Grab a 12V DC supply with at least 100mA (again, 1A is safe). Wait\u2014DC, not AC. Relay control circuits run on DC, always. AC power is for the Load side, not the control side. That\u2019s another common mix-up.<\/li>\n<\/ul>\n<p>Now, how to actually wire it. Let\u2019s use a super common 1-channel relay module as an example\u2014most of these have four main pins for power and signal: Vcc (control voltage), GND (ground), IN (signal input, from your microcontroller), and COM\/NO\/NC (Load side, but we\u2019ll stick to power for now).<\/p>\n<ol>\n<li>First, ground everything. This is non-negotiable. The relay\u2019s GND has to share the same ground as both your microcontroller (if you\u2019re using one to trigger the relay) <em>and<\/em> the power supply you\u2019re hooking up. If the relay\u2019s GND is floating, the signal from your Arduino won\u2019t register\u2014even if the voltage is right. I had a customer last month who spent 3 hours troubleshooting because he connected the relay GND to his sensor\u2019s GND, not his Arduino\u2019s. Dude, floating grounds = chaos.<\/li>\n<li>Connect Vcc to the power supply\u2019s positive terminal. Let\u2019s say you have a 5V relay: take the power supply\u2019s +5V wire, connect it directly to the module\u2019s Vcc pin. Don\u2019t split wires or use a breadboard jumper that\u2019s frayed\u2014use solid 22-gauge wire, it\u2019s cheap and works way better for this.<\/li>\n<li>Connect the power supply\u2019s negative terminal (that\u2019s GND, obviously) to the module\u2019s GND pin. Double-check this polarity\u2014if you reverse it (positive to GND, negative to Vcc), you\u2019ll probably blow the tiny diode on the module board. I\u2019ve only had 2 customers blow modules from reversed power last year, so it\u2019s rare, but easy to avoid if you glance at the labels.<\/li>\n<li>Now, the signal pin (IN) is separate, but it\u2019s tied to power. The IN pin usually takes a 3.3V or 5V signal from your microcontroller. Again, use the same GND as the relay and power supply here. If your microcontroller is 3.3V, make sure the relay can handle 3.3V control\u2014some modules are only 5V tolerant, so a 3.3V signal won\u2019t trigger them. That\u2019s another quick check on the spec sheet.<\/li>\n<\/ol>\n<p>Wait, what if you don\u2019t have a microcontroller? Like, you just want the relay to turn on when you plug in a power supply, no digital signal? That\u2019s super easy too. Just leave the IN pin unconnected, or hook it to the same Vcc as the control circuit. Most relays default to OFF when the IN pin is high (same as Vcc) and ON when it\u2019s low (same as GND)\u2014so if you tie IN to Vcc, it stays off; if you tie IN to GND, it stays on. Just don\u2019t leave IN floating, even for this case\u2014it can cause random triggering, which is annoying.<\/p>\n<p>Now, let\u2019s talk about the Load power, because that\u2019s where people get the big mistakes. The Load side is the COM, NO, NC pins we mentioned earlier. This is for the device you\u2019re controlling\u2014like a 120V lamp, a 12V water pump, whatever. <em>Never<\/em> use the same power supply for Load and Control unless the specs are identical and the power supply can handle the total load. For example, if you have a 5V control relay for a 12V AC lamp, don\u2019t run the lamp\u2019s power from the same 5V supply\u2014use a separate 12V AC supply for the Load. If you do mix them, make sure the power supply\u2019s current rating is enough for both the control circuit and the load device. I always recommend separate supplies for safety, especially if you\u2019re working with high voltage (120V\/240V).<\/p>\n<p>Another pro tip from someone who\u2019s seen a lot of burnt stuff: Add a flyback diode if your load is inductive. Inductive loads are things like motors, pumps, solenoids\u2014they create a reverse voltage spike when you turn them off, which can fry your relay\u2019s control circuit. Most of our relay modules already have a built-in flyback diode, but if yours doesn\u2019t, it\u2019s a $0.10 part you can solder on in 2 minutes. It\u2019s way cheaper than replacing a $5 relay and a $10 power supply.<\/p>\n<p>What about troubleshooting if it\u2019s not working? I get this a lot, so here\u2019s your quick checklist:<\/p>\n<ol>\n<li>Check Vcc polarity\u2014did you mix up positive and negative?<\/li>\n<li>Check GND connection\u2014did you share ground with the microcontroller\/power supply?<\/li>\n<li>Is your power supply\u2019s current enough? If it\u2019s a 5V relay needing 70mA, and your supply is only 5V 50mA, it can\u2019t deliver enough power to trigger the coil.<\/li>\n<li>Is the signal at the IN pin correct? If your microcontroller is putting out 3V and the relay needs 5V, it won\u2019t click.<\/li>\n<li>Did you connect the Load side right? COM is the common pin, NO is normally open, so load power goes to COM and NO, not COM and GND. A lot of people connect the load wrong and wonder why nothing turns on.<\/li>\n<\/ol>\n<p>Now, a quick note for DIYers and hobbyists working on bigger setups: If you\u2019re using multiple relays, don\u2019t daisy-chain power supplies unless you know what you\u2019re doing. Each relay\u2019s control circuit should get its own power, or a supply that can handle the total current. For example, two 5V relays each at 70mA need a 5V supply with at least 140mA\u2014so a 5V 1A supply is perfect, no issues.<\/p>\n<p>Wait, should I mention things not to do? Definitely. Don\u2019t use a USB charger for your relay\u2019s power. USB chargers are designed for low-current devices (phones, headphones) and usually max out at 5V 500mA, which is enough for one small relay, but they\u2019re not regulated super well, so voltage spikes can damage the relay. I\u2019ve had a customer burn a relay last year because he used his phone charger instead of a proper DC power supply\u2014save the USB chargers for your phone.<\/p>\n<p>Another no-no: Don\u2019t skip the flyback diode if your load is inductive. I can\u2019t tell you how many times someone\u2019s sent a relay back saying it\u2019s broken, and it turns out they ran a motor without the diode, and the relay\u2019s coil is fried. It\u2019s a simple fix, just don\u2019t forget.<\/p>\n<p>Now, if you\u2019re looking for relay modules to test this out (we\u2019ve got 1-channel, 4-channel, 8-channel, all with clear spec sheets and built-in diodes for inductive loads), feel free to reach out for a quote or more specific wiring tips. We also have tutorials for specific projects\u2014like hooking a 12V relay to a 12V water pump, or a 5V relay to a Raspberry Pi\u2014so just ask, we\u2019re happy to help. We don\u2019t sell knockoff modules, all our relays are tested before shipping, so you don\u2019t have to worry about duds that show up dead on arrival.<\/p>\n<p>A quick recap to make sure you don\u2019t forget:<\/p>\n<ol>\n<li>Always check your relay\u2019s control voltage and current before buying a power supply.<\/li>\n<li>Use a DC power supply that matches your relay\u2019s voltage and can deliver at least the control current.<\/li>\n<li>Share ground between the relay, power supply, and any microcontroller you\u2019re using.<\/li>\n<li>Don\u2019t mix control and Load power unless you know your supply can handle it\u2014separate is safer.<\/li>\n<li>Add a flyback diode for inductive loads if your module doesn\u2019t have one.<\/li>\n<li>Troubleshoot with the checklist first before panicking and buying a new relay.<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/www.chweide.com\/uploads\/47667\/small\/industry-plastic-push-button-switch9f47e.jpg\"><\/p>\n<p>At the end of the day, connecting a relay to power is simpler than it sounds, but the small details (polarity, ground, current) are what trip people up. As a relay supplier, I want to make sure your projects work, not that you waste time fixing avoidable mistakes. If you\u2019re working on a home automation setup, a small industrial machine, or just a cool DIY project and need help picking the right relay or power supply, hit us up to chat about your needs\u2014we\u2019re here to make sure your relay setup goes smoothly.<\/p>\n<p><a href=\"https:\/\/www.chweide.com\/relays\/ultra-thin-relay\/\">Ultra Thin Relay<\/a> References<\/p>\n<ol>\n<li>&quot;Relay Module Basics: Wiring and Troubleshooting&quot; \u2013 Electronics For Hobbyists, 2023<\/li>\n<li>DC Power Supply Selection for Electronic Circuits \u2013 Power Electronics Handbook, 5th Edition, 2022<\/li>\n<li>Inductive Load Protection for Relay Circuits \u2013 Circuit Cellar Magazine, Issue 387, 2021<\/li>\n<\/ol>\n<hr>\n<p><a href=\"https:\/\/www.chweide.com\/\">Zhejiang Weide Electric Co., Ltd.<\/a><br \/>Zhejiang Weide Electric Co., Ltd. is one of the most professional relay module manufacturers and suppliers in China, featured by quality products and low price. If you&#8217;re going to buy the newest relay module, welcome to get free sample from our factory. We also accept customized orders.<br \/>Address: No.555, South Binhe 2nd Road, Yueqing City, Zhejiang Province, China<br \/>E-mail: zjwdir@wdirele.com<br \/>WebSite: <a href=\"https:\/\/www.chweide.com\/\">https:\/\/www.chweide.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey everyone, if you\u2019ve ever dabbled in DIY electronics, home automation, or small industrial setups, you\u2019ve &hellip; <a title=\"How to connect a relay module to a power supply?\" class=\"hm-read-more\" href=\"http:\/\/www.greatvacuumcooler.com\/blog\/2026\/11\/21\/how-to-connect-a-relay-module-to-a-power-supply-4082-44f31b\/\"><span class=\"screen-reader-text\">How to connect a relay module to a power supply?<\/span>Read more<\/a><\/p>\n","protected":false},"author":893,"featured_media":3835,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3798],"class_list":["post-3835","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-industry","tag-relay-module-4176-452970"],"_links":{"self":[{"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/posts\/3835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/users\/893"}],"replies":[{"embeddable":true,"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/comments?post=3835"}],"version-history":[{"count":0,"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/posts\/3835\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/posts\/3835"}],"wp:attachment":[{"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/media?parent=3835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/categories?post=3835"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.greatvacuumcooler.com\/blog\/wp-json\/wp\/v2\/tags?post=3835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}