Arduino UNO EEPROM reset

Hi there,

Need a help with my design.

Building a FM radio with following and on the test setup, I'm powering each module as below;

  • RDA5807 - 3.3v - Buck converter powered through bench top power supply.
  • RTC DS3231 - 5v - Buck converter powered through bench top power supply.
  • Arduino UNO - 5v - Buck converter powered through bench top power supply.
  • Amplifier TDA7498 - 24v - Direct power from bench top power supply. (24v @ 3Amp)

I've recently come across that when I disconnect and reconnect the main positive line (from SW position) to 3.3v and 5v buck converters, EEPROMs in both UNO and DS3231 gets reset.
further I hear a loud POP from the amp and when reconnecting the power line, I see sparks.

Is it due to inrush current?

Any thoughts to how I could solve this?

What measurements have you made?

If you have long leads to the 24V power supply, you may be experiencing large, destructive voltage spikes when switched.

See this tutorial: Pololu - Understanding Destructive LC Voltage Spikes

Yeah, also look out for ground loops. Please post photos of your actual wiring.

Keep in mind that breadboards are for temporary, low power logic circuits and cannot handle currents of more than a few hundred mA. The tracks tend to burn if higher.

None @aarg

Why do you think EEPROM resests? I don't believe it is possible. A SW bug seems more likely.

Yes bench power supply leads are long.

I have a function to reset Arduino EEPROM, but no code to reset the RTC. RTC date becomes 2000-01-01 and time 00:00.

So the EEPROM reset is expected power up behavior?
Is there some backup power for the RTC?

Please if you could explain about ground loops or direct me to an article.
Hope these picture would help.



Google "ground loops" for several relevant articles.

The long leads in your setup are a serious problem, for several reasons: inductive voltage spikes, cross coupling, RF interference, ground loops, etc.

1 Like

Yes, my common "beef" about people experiencing erratic behaviour! :roll_eyes:

1 Like

No not the default power up reset behavior. Only when a certain button is pressed during power up will go in to EEPROM reset. But still, no code for RTC reset. RTC has it's own battery backup.

Unrelated, but why is the RDA5807 not powered from the 3.3volt pin of the Uno.
That would give a much cleaner supply for that chip.
Leo..

Time to do some serious debugging.
Does the RTC + EEPROM reset every time a power is applied?
Does it happen when other power source is used?
When you power on the PS while connected to the circuit instead of connecting powered PS?
What is voltage of the backup battery?
Does the RTC reset even with some minimal code? (Only read time and send it via Serial.)

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.