Hi, I have an ATMEGA 328 with a very simple code running. Let's call this Circuit A.
It shares the 5v rail with another circuit called Circuit B, in parallel.
As soon as the current requirements of Circuit B exceeds 200mA (IL), the ATMEGA on Circuit A resets itself, every time.
Questions before I continue my troubleshooting:
- Am I missing anything very basic here?. I would expect to not see this issue at all. If the Power supply can deliver, I would expect each parallel circuit to consume whatever they need without interfering with each other.
- How can I isolate the two circuits without using independent power supplies?
What I have tried so far to troubleshoot:
1) Try different power supplies, all capable of delivering 2A, same issue.
2) Replace Circuit B for a simple electronic load. It works well until I hit 200mA, it then resets the Atmega.
3) Measured the voltage drop at the supply. It is constant at 5v and delivers clean 200mA. Also measured the Atmega, it only draws 13mA (Im).
4) I added a series resistor to CIRCUIT B to limit its current. That allows me to get up to 600mA without experiencing the issue. This is great, BUT now the voltage drops too much on Circuit B when using the limiting resistor so this won't fly.
5) Checked the reset pin. I'm pulling it up with a resistor but I also tried by connecting it directly to 5V to be sure there was not a voltage drop at the reset pin.
Pending:
More testing and troubleshooting, probably capacitors here and there and more measuring, use the scope and see if there is noise or something.
Edit: Added image for clarity. uC is Circuit A and "load" is Circuit B.
The two resistors in series and stuff in light blue are NOT part of the current circuit but stuff I have tried.