1
\$\begingroup\$

I am using an ESP32 development kit with a 5V eight relay block. Following this answer, I removed jumper JD-VCC and powered the relay block at the JD-VCC pins from an external 5V 2A adaptor. The relay IN pins are directly connected to ESP32 pins. gnd -> gnd and VCC of relay ->3v3 of the ESP32. The relays are heating. Is that normal? Is there any solution to prevent heating?

This is my test code:

Refer: https://electronics.stackexchange.com/questions/505318/how-to-properly-use-a-relay-module-with-jd-vcc-from-arduino-raspberry
*/
 
#define role1Penye 2        //klemens1
#define role2bld 4          //k2
#define role3bld 13         //k3  
#define role4wtc 25         //k4
#define role5hrm 21         //k6
#define role6inverter 22    //k7
#define role7hrm 16         //k9
#define role8hrm 17         //k10

int roles[] = { role1Penye, role2bld, role3bld, role4wtc, role5hrm, role6inverter, role7hrm, role8hrm };
int numRoles = sizeof(roles) / sizeof(roles[0]);

void setup() {
  // put your setup code here, to run once: 
  for (int i = 0; i < numRoles; i++) {
    pinMode(roles[i], OUTPUT);
    digitalWrite(roles[i], HIGH);
  }


  pinMode(14, OUTPUT);  //  bug
}

void loop() {
  // put your main code here, to run repeatedly:

  for (int i = 0; i < numRoles; i++) {
    pinMode(roles[i], OUTPUT);
    digitalWrite(roles[i], LOW);
    delay(30000);
  }

  for (int i = 0; i < numRoles; i++) {
    pinMode(roles[i], OUTPUT);
    digitalWrite(roles[i], HIGH);
    delay(30000);
  }
}

enter image description here

This is my relay module:

enter image description here

\$\endgroup\$
10
  • 2
    \$\begingroup\$ The Relays can't both be heating "too much" and "normally". If it's normal it's not too much and vice versa. \$\endgroup\$
    – MrGerber
    Commented Aug 2 at 12:59
  • 2
    \$\begingroup\$ I consider it bad practice to write source code in non-english. Be that as it may, when asking questions about the code on an international q/a site where working language is English, I'd suggest translating the comments so it's possible to follow the thought process. \$\endgroup\$
    – MrGerber
    Commented Aug 2 at 13:01
  • \$\begingroup\$ @MrGerber thanks I ve updated \$\endgroup\$
    – mehmet
    Commented Aug 2 at 13:03
  • \$\begingroup\$ Relays are active components, they will heat up when driven. As you have not given any information about which relays you are driving we can't know the relay coil nominal power, and as such it's hard to know how hot to expect them to get \$\endgroup\$
    – MrGerber
    Commented Aug 2 at 13:03
  • \$\begingroup\$ "My relay's photo has been added." \$\endgroup\$
    – mehmet
    Commented Aug 2 at 13:07

2 Answers 2

1
\$\begingroup\$

THIS IS IMPORTANT !

    1. What is your load per relay - voltage and current.
    1. Are the relays heating due to the switched current or the coil power?

If you turn them all on with no load then the heat is what you'd normally expect.

IF they get much hotter when they are switching load current then they are probably not suited to the task.

Are they "Songle" brand relays?
One photo shows Songle brand & one doesn't.

Based on my experience Songle relays are cheap junk.
Using them to switch mains voltages OR currents approaching their claimed ratings will quite likely lead to disaster.

\$\endgroup\$
1
  • \$\begingroup\$ I will change relay and test again \$\endgroup\$
    – mehmet
    Commented Aug 6 at 10:56
5
\$\begingroup\$

The relays heat up because when turned on, each coil draws about 72mA at 5V, or 0.36 watts.

Thus 8 relays heat up at 2.88W.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.