# 8 relay module 12v not working as aspected

**URL:** <https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319>\
**Category:** LEDs and Multiplexing\
**Created:** [April 28, 2022, 10:02pm UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319 "2022-04-28T22:02:56Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mudasty](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mudasty](https://forum.arduino.cc/u/mudasty)\
**Post date:** [April 28, 2022, 10:02pm UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/1 "2022-04-28T22:02:56Z")

</div>

Hello everyone, this is my first post so please guide me if i do it wrong.

When i connect via USB, the leds from 12v relay module are all turned off, and some of them blink (at my command) but i don't listen "click". I think this is low power problem, so i powered the arduino with 12v transformer 2000mA.  
When i connect with the 12v power all leds from relay turn on and i listen a mass "click" (all of them turning on) but then i let program run.. the leds blink dim, but does not turn off completely, and all other leds still on, and. i don't listen click when they dim.

i have connected the VCC from arduino to relay VCC, and GND to GND as normal  
Im not using external power for relay module, im using the power from arduino that is 12v transformer.

```cpp
void setup() {
  Serial.begin(9600);
  /* PIN MODES */
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);

}

void loop() {
  digitalWrite(2, HIGH);
  delay(1000);
  digitalWrite(3, HIGH);
  delay(1000);
  digitalWrite(2, LOW);
  delay(1000);
  digitalWrite(3, LOW);
  delay(1000);
}

```

 ![IMG_20220429_105432_1](https://europe1.discourse-cdn.com/arduino/original/4X/a/c/c/acc4ed55b80fa11077c54f4b6d2955a6e0f5e9d5.jpeg)  
 ![IMG_20220429_102950](https://europe1.discourse-cdn.com/arduino/original/4X/6/2/8/628de18661ae2bf4e4404372f0bfe768be1de0e5.jpeg)  
 ![IMG_20220429_103110](https://europe1.discourse-cdn.com/arduino/original/4X/a/b/2/ab2723455a838483b61d389f3076dab8374308f2.jpeg)  
 ![IMG_20220429_103026](https://europe1.discourse-cdn.com/arduino/original/4X/c/7/b/c7b98991cdd360efeff5a8567109dcf991496187.jpeg)  
 ![IMG_20220429_102933](https://europe1.discourse-cdn.com/arduino/original/4X/c/a/7/ca7aa82d4323f732a9957b052bb69b0208f1e383.jpeg)

Thank you for help.

---

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [April 28, 2022, 10:53pm UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/2 "2022-04-28T22:53:22Z")

</div>

Wow! 😲

I suppose you do not realise that from your description we know just about **nothing** about what pieces of equipment you have or how you have connected them, or what code you might have used?

Perhaps you should read [the instructions](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966)? 🤔

---

<div class="post-metadata">

**Author:** ![mudasty](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mudasty](https://forum.arduino.cc/u/mudasty)\
**Post date:** [April 29, 2022, 10:00am UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/3 "2022-04-29T10:00:28Z")

</div>

i have updated my message thank you for suggests.

---

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [April 29, 2022, 11:29pm UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/4 "2022-04-29T23:29:32Z")

</div>

OK, so I think - can't quite see but gather you have a 5 V relay module.

You need a 5 V power supply to power the relays and the Arduino. 😲

---

<div class="post-metadata">

**Author:** ![obyilmaz](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@obyilmaz](https://forum.arduino.cc/u/obyilmaz)\
**Post date:** [April 30, 2022, 1:54am UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/5 "2022-04-30T01:54:20Z")

</div>

unplug jumper from vin ,then put it in 5v.

---

<div class="post-metadata">

**Author:** ![david\_2018](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/david_2018/32/1013044_2.png) [@david\_2018](https://forum.arduino.cc/u/david_2018)\
**Post date:** [April 30, 2022, 2:48am UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/6 "2022-04-30T02:48:05Z")

</div>

> [@Paul\_B](#):
>
> OK, so I think - can't quite see but gather you have a 5 V relay module.

Last pictures shows relays are 12V.

That looks like the common 8-channel relay board.  
Remove the jumper between VCC and JD-VCC. This jumper MUST be removed, otherwise you will apply 12V to the arduino 5V line!!!!

Connect the 12V supply to GND and JD-VCC of the 3-pin connector, no connection to VCC at that connector.

On the connector with GND, IN1-IN8, and VCC, connect ONLY the INx and VCC pins to the Arduino, with VCC going to 5V. There is no need to connect GND, and it should be left unconnected to provide isolation between the relay power supply and the arduino.

The relay board inputs (INx) are connector to opto-couplers, and are active LOW (a LOW turns the relay on, a HIGH turns it off).

---

<div class="post-metadata">

**Author:** ![hannah\_mackinlay](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@hannah\_mackinlay](https://forum.arduino.cc/u/hannah_mackinlay)\
**Post date:** [April 30, 2022, 6:39am UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/7 "2022-04-30T06:39:35Z")

</div>

It may help @mudasty to see a picture showing what @david_2018 has said above. I found the diagram below [here (post 8)](https://forum.arduino.cc/t/broken-relayboard-or-am-i-missing-something/484323/7). The voltage to jd-vcc at bottom-right would of course be 12V not 5V in the case at hand; as david\_2018 says "Connect the 12V supply to GND and JD-VCC of the 3-pin connector"

![image](https://europe1.discourse-cdn.com/arduino/original/4X/6/3/5/63539e09e732787a84657c6740cbea163a5d7b20.png)

---

<div class="post-metadata">

**Author:** ![mudasty](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mudasty](https://forum.arduino.cc/u/mudasty)\
**Post date:** [May 1, 2022, 11:05am UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/8 "2022-05-01T11:05:41Z")

</div>

Thank you very much everyone, I will try make those changes and I will give feedback.

---

<div class="post-metadata">

**Author:** ![mudasty](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mudasty](https://forum.arduino.cc/u/mudasty)\
**Post date:** [May 3, 2022, 4:29pm UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/9 "2022-05-03T16:29:45Z")

</div>

Worked like a charm. I opted to get a 5V relay and power with 5v pin.  
Thankyou everyone

---

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [May 3, 2022, 10:22pm UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/10 "2022-05-03T22:22:20Z")

</div>

> [@mudasty](#):
>
> I opted to get a 5V relay and power with 5v pin.

And you have a **5 V power supply** to power the Arduino and relays? 🤔

---

<div class="post-metadata">

**Author:** ![mudasty](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mudasty](https://forum.arduino.cc/u/mudasty)\
**Post date:** [May 3, 2022, 10:56pm UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/11 "2022-05-03T22:56:29Z")

</div>

I have powered the Arduino via USB port

---

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [May 4, 2022, 11:17am UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/12 "2022-05-04T11:17:22Z")

</div>

OK for three or four relays operated at once I suppose. 🤔

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 31, 2022, 11:17am UTC](https://forum.arduino.cc/t/8-relay-module-12v-not-working-as-aspected/986319/13 "2022-10-31T11:17:59Z")

</div>

Closed on October 31, 2022, 11:17am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
