Two different power rails interfering each other

hello experts,
I am working on a task
It includes ESP32, Max485, P10 displays, Buzzer (relay).

The Esp32 is powered through 5v 2amp adapter and ferrite bead as well as 103,104 caps are used before Vin pin.
The 5v relay module is powered directly by same adapter, but the trace is connected to Esp32 Vin pin.
I am using a power supply of 12v 5amp to Buzzer, which is triggering through 5v relay, controlled by Esp32 gpio32.

My issue is, when my relay is triggering the 12v buzzer, Esp32 started malfunctioning for a moment.
But, it is not happening on every trigger, it randomly occures and all cycle disturbes

I can not understanding, what is happening and why

My thinking is,
It may be voltage spikes
Need to use flyback diode in parallel
Need to use ferrite bead and 103, 104 caps near relay power supply

Please help me
TIA

Please post a wiring diagram (hand drawn is preferred) with all pins, connections and parts clearly labeled. A photo of your setup would help, too.

3 Likes

sorry for late attendence
i will post my drawing
thanx for reply

Possible EMI (Electromagnetic Interference) Issue

This sounds like it could be related to EMI, either conducted or radiated. While I can't confirm this is the problem without more information, I also can't rule it out. Most MOS logic circuits are fast and sensitive to edge transitions. Minimizing lead lengths (which act as antennas) to less than 10 inches (25 cm) is crucial, as longer leads can pick up frequencies up to about 750 MHz, not accounting for reflections and other effects.

Tips to Reduce EMI:

  1. Keep Connections Short: Both transmitters and receivers are affected by antenna length—longer antennas have greater gain and can pick up more interference. Use the KISS principle: Keep It Short & Simple.
  2. Avoid Parallel Lines: Ensure power and logic lines are not running parallel to each other to minimize crosstalk and interference.
  3. Use a Zero-Crossing Solid-State Relay: This can be a simple and effective solution to reduce EMI, especially when dealing with AC loads.

Historical Context: This issue has been known since the early 1960s with TCTL (Transistor-Coupled Transistor Logic), later known as TTL (Transistor-Transistor Logic). It prompted the development of line drivers and other technologies to manage EMI.

For further reading on related topics, check out these resources:

  • Triac Principles and Circuits, Part 1: Learn about triacs, which are often used in switching applications and can be susceptible to EMI.
    Read Part 1
  • Triac Principles and Circuits, Part 2: This article continues exploring triac applications and EMI considerations.
    Read Part 2
  • Arduino Forum Discussion on Flashing LEDs: An example of EMI considerations in a practical Arduino project.
1 Like

Sorry for late posting

Itis very simple drawing
5v to 12v cable is 1 mtr in length
12v to Buzzer is 10" in length

Apart from buzzer, there are many other duties performed by Esp32 e.g.TM1637, 4 buttons, Max485 etc.

Back fire current interfering in these all functions and Esp32 cycle get destroyed in total

Thanx for suggestions

I am not expert, but i had used optocoupler and triac once, to handle 220v lamp switching. It was Moc3041 and BT136, with some resistors. Worked fantastic.

Can i use same for handling 12v ?
Or please suggest me any other optocoupler and traic combination

TIA....

They will work without any problems if you use the correct circuit. However, you should keep in mind that the Arduino is not a power supply. If needed, you can replace the relay with a MOSFET or a transistor for better efficiency and control.

What is in the square labeled "5V RELAY"? Please post a link to the product page, and other relevant details.

A photo of the setup would help.

5v 1 channel relay module
Its without optocoupler
I think, i need to use flyback diode near 12v rail

Previously I used that circuit for 22v LED flashing, No issue
Mofset or transistor can be used
For 12v 5amp item, what Ic will you suggest
or I need to use 5v relay module with optocoupler ?

Depends on what it is. Post a link to its technical info. Generally a solid state relay will work best.