1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Mcu immunity of relay noise

Discussion in 'Microcontrollers' started by mah, Mar 3, 2018.

  1. mah

    mah Member

    Joined:
    Mar 14, 2010
    Messages:
    59
    Likes:
    0
    the circuit is working good with relays on when ac power is off the problem happens when ac power is on
    relay on or off and ac power off (circuit is good)
    relay on and ac power On (circuit is mad)
     
    Last edited: Mar 6, 2018
  2. Les Jones

    Les Jones Well-Known Member

    Joined:
    May 15, 2015
    Messages:
    1,593
    Likes:
    202
    Location:
    Lancashire UK
    So from what you say in post #21 the problem has nothing to do with the AC. ( The first and the third line of post #21 seem to contradict each other.)
    Looking at the etch layout of you board it looks like the relays are powered from the same power rail as the microcontroller and there looks like a lack of decoupling capacitors. The lack of decoupling capacitors could cause the problem or the power supply may sag when one or more of the relays are energised. It would be helpful if you provided a schematic of your board and told us which microcontroller you are using. (I could only guess what pins were the power pins.)

    Les.
     
  3. mah

    mah Member

    Joined:
    Mar 14, 2010
    Messages:
    59
    Likes:
    0
    Sorry ,i corrected the last line.
    The chip is atmega 8. Where should decoupling capacitors be?
     
  4. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10
  5. dknguyen

    dknguyen Well-Known Member

    Joined:
    May 6, 2006
    Messages:
    7,549
    Likes:
    162
    Just across the power pins as close to the mcu as possible. 0.1uF is a good value for most things. All your ICs should have these too. This is standard practice and you should always do this to ensure that ICs work reliably.

    If that issues still occur then you need more bulk capacitance so you can try 100uF (you only need one of these and it doesn't need to be super close to the IC. The smaller caps are for decouple higher frequencies so need to have short traces to the IC but the larger ones are for lower frequencies so can be farther away.)
     
    Last edited: Mar 8, 2018
  6. mah

    mah Member

    Joined:
    Mar 14, 2010
    Messages:
    59
    Likes:
    0
    I desinged the pcb with 1000uf on regulator input and 100 nf on its output, there is also 100nf connected the MCU VCC close to it. the circuit is working fine with dc motor and ac lamp but the problem appeared when i connected small ac motor(grill motor). it disturbed the MCU code and take random actions.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice