Uncategorized

jdvcc relay wiring notes

How can I increase the output current to make it sufficient for relay module?

Ask QuestionAsked todayActive todayViewed 41 times0

I am using the following circuit as an industrial warning and control system.

According to input signals, LEDs and other outputs are HIGH or LOW. So, 24V in input is not always connected actually. System works quite well. Now I should add also relay outputs.

The outputs on J4 should control the relays. I am using this relay module.

Relay Module

My problem is that the relay module doesn’t receive enough input current so it doesn’t work.

I am thinking about reducing input resistor (24V input) and using a ULN2803A to drive the relay. However I think it will still not sufficient input current for relays. How can I solve this problem or what else can you recommend?

(I know the circuit is too newbie, therefore I would be glad to receive recommendations and advice instead of humiliation and non-useful critism.)microcontrollerarduinorelayshareedit  follow  flagedited 1 hour agoJRE39.6k88 gold badges7070 silver badges114114 bronze badgesasked 4 hours agobcicek3355 bronze badges

  • 3A schematic for the relay module is required. Humiliation is a received thing and not a given thing. It’s how you deal with people pointing out errors that’s important. – Andy aka 4 hours ago
  • 1The relay module should work with direct GPIO output connections. But you have not shown if you have connected power supply and ground to relay module. Nor the code to know if IO pins are driven properly as outputs. The AVR also has no bypass capacitors and reset pin is left floating, so it may just fail to operate. – Justme 3 hours ago 
  • 1The relay module already has the parts to increase the output current to make it sufficient for the relay module. – user253751 1 hour ago
  • 1(1) On a side note, what voltage levels are coming in on J1? You have Q1, Q2 and Q3 configured as emitter-followers so the emitter voltage will be 0.7 V below the base voltage when high. Why do you think you need to buffer the signals? (2) Avoid running wires through components such as done on U1. – Transistor 1 hour ago 
  • @bcicek, Welcome and nice to meet you. (1) Your relay is called JD-Vcc relay, and it is a bit tricky to use, (2) You might find my following TLDR answer helpful: electronics.stackexchange.com/questions/505318/…, (3) The relay input can be 3V or 5V, with less than 10mA each input. No 2N2222 or ULN2803 is needed. (4) Please feel free to ask me more newbie questions. – tlfong01 43 mins ago    
  • @bcicek, My short and long JD-Vcc relay answers are for generic 3V3 Arduino and Raspberry Pi. If you are using 5V Arduino, you might need to do some modifications to my generic wiring: i.imgur.com/r2VObaF.jpg. Of course your JD-Vcc relay module might not be the same variant as the example used in my answer. You need to use a multi-meter to check if the components and traces on the PCB are the same. Good luck and cheers. – tlfong01 6 mins ago    

add a comment

1 Answer

ActiveOldestVotes2

The relay module requires a 5V powersupply to operate. Simply switching the inputs will not operate the relays with out that 5V power source.

  1. You do not need R12 for your TSR1-2450 switching regulator. It can handle loads up to 1 ampere and input voltage up to 36V.
  2. You don’t need D4. It is redundant. D3 is all you need as a reverse polarity protection.
  3. C3 and C4 are optional as the 2450 includes them. You only need C3 if the input voltage is above 32V.
  • Install jumpers in place of R12 and D4.
  • Remove R11 entirely.
  • C3 and C4 can stay, just make sure they are rated for the proper voltage. (More than 24V for C3, more then 5V for C4.)

Outside of that, your schematic is incomplete.

  • You show no ground connections to the external world, though they must be present for the circuit to work.
  • You don’t show the 5V connection to the relay module, although you seem to be trying to power the relay module from the 5V regulator.
  • You don’t have bypass capacitors on the processor’s power pins. It may behave irratically. (Random lockups, doing odd things, etc.)
  • The reset pin is left floating. That can cause random resets of the processor,or it could stay stuck in reset and not do any thing at all.

You don’t need to add a ULN2803 to drive the relays. All you need to do is to properly connect and use what you already have.


Your transistor input buffers are odd. Most folks would wire them as inverters. Pull up to 5V on the collector, emitter to ground, a resistor from the base to the signal input. Connect the collector to the processor’s IO pin. It inverts the logic level, but that doesn’t really matter.shareedit  follow  flag answered 1 hour agoJRE39.6k88 gold badges7070 silver badges114114 bronze badgesadd a comment

.END

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.