enter image description hereI have a 8 relay module that should use not more than 20 mA per relay. Altough when measuring it asks around 70. If I use 6 relays, that would be more than an Arduino Mega can give. (I already lost 1 arduino here.)
How this is possible..?
-
What are you measuring? The input pins will be the low current pins, however the power supply pins will take more (and you can power those without going through the arduino)ratchet freak– ratchet freak2018年09月28日 16:31:00 +00:00Commented Sep 28, 2018 at 16:31
-
Someone told me to give 5v en GND to the relais module not from arduino but from another source. Will try that.Dirk E– Dirk E2018年09月28日 16:43:12 +00:00Commented Sep 28, 2018 at 16:43
-
1I don't see why and Arduino mega can't supply 420mA from the 5V pin. It's also below the USB limit of 500mA.Gerben– Gerben2018年09月28日 18:24:41 +00:00Commented Sep 28, 2018 at 18:24
-
please add a link to where you bought the relay module .... also add the schematic of the connections between the arduino and the relay modulejsotola– jsotola2018年09月29日 05:41:27 +00:00Commented Sep 29, 2018 at 5:41
-
Hello Gerben, it should be indeed possible for the mega but in practice it seems that the relays are asking more than the specs are telling.. Jsotola: will look up the fritzingDirk E– Dirk E2018年10月01日 10:10:59 +00:00Commented Oct 1, 2018 at 10:10
2 Answers 2
Most of Arduino relay modules have a relay and a supporting circuit. The circuit connects the VCC line to relay coil if signal line is HIGH. Some relays have it conversely, they disconnect if signal is HIGH and hold the coil if signal is LOW.
Your relays need VCC which you can supply for 8 relays from 5 V pin of Arduino. This pin is connected over regulator to power supply of the board so it is limited only by power supply and regulator parameters. The power doesn't go over MCU.
The signal pins of individual relays should be connected to digital pins of Arduino. The signal pins don't draw much current since they only signal a state to the circuit of the relay module.
it is solved by giving the relay module power with external transfo. Not by arduino