Author Topic: ARDUINO: POWER PROBLEM - Nano 33 IoT drawing massive current when USB powered  (Read 1245 times)

0 Members and 1 Guest are viewing this topic.

Offline mindcrimeTopic starter

  • Supporter
  • ****
  • Posts: 396
  • Country: us
Gang:

I'm using an Arduino Nano 33 IoT as the "brains" of my reflow oven conversion project and just ran into something surprising. I have it working now, but I don't understand exactly what was happening.

Here's the situation:

I built a trivial little 5V power supply as part of the project. It takes a 12VAC input from a transformer, uses a bridge rectifier to get DC, and then uses an LM7805 to down-regulate it to 5V. OK, that part is fine and working. The Nano is connected to a single transistor used for level shifting for the SSR control, an LCD display, a keypad encoder, and a thermocouple amplifier. Laid out on the bench all of this works perfectly fine, with the Nano connected to my PC with a USB cable for programmming.

Fast forward: I package everything up into the enclosure, connect the 5V power supply to the Nano by bodging up a USB cable that connects to the power supply, wire it all up, turn it on and... crickets. Nothing displayed on the LCD. And I notice a faint burning odor when I open the enclosure.  :--

Measure voltage going to the LCD and it's way low. Suspect that my power supply has fried, I pull things apart, measure the 5V rail of the power supply in isolation... and it works fine. Huh?

Notice that it's the LM7805 that's getting hot, and no LED on the Nano. I figure something is pulling too much current and over-working the 7805. But there's nothing there but an Arduino Nano. All the info I can find online shows that these things use about 100 mA at most. WUT?

OK, to confirm what I think I'm seeing I wire in the multimeter, and check the current draw of the Nano. It's flashing up to 2A. Yes, 2 entire amps. Double "WUT"?

Anyway, some reading online suggests that the behavior of the Nano is different when you power it through a USB port vs when you power it via the Vin pin. So I rewire things to use the Vin pin instead, and now the Nano draws about 37 mA when idle, the LCD works fine, and all is hunky dory. OK, to be fair, I do still need to add a heat sink to my 7805, as powering the LCD does work it just hard enough to where it gets a little warmer than I would prefer. But that's not the big question I have.

What I'm wondering, is what's going on with my Nano drawing 2A when connected via USB, but only 37 mA when connected using Vin? Surely it isn't using 2A all the time when USB connected, right? Can (non USB 3, USB C) USB even deliver 2A? Something about this seems very mysterious to me.

If anybody groks what is happening here and could explain it to me, it would be much appreciated.
 

Offline bugnate

  • Regular Contributor
  • *
  • Posts: 58
  • Country: us
The Nano is not consuming 2A, especially if its working now. It would have fried almost immediately. Almost certainly this is a ground fault or grounding error.
« Last Edit: July 13, 2021, 01:55:00 am by bugnate »
 
The following users thanked this post: mindcrime

Offline mindcrimeTopic starter

  • Supporter
  • ****
  • Posts: 396
  • Country: us
Quote
Almost certainly this is a ground fault or grounding error.

Yeah, that sounds right. I don't know exactly what is going on, but I can say that as part of the overall system of connections used in the overall system, there wound up being a direct path from the ground pin on the Arduino, to the ground side of the power supply. I assumed that would be fine, since in the "packaged up" version that ground is the ground, and everything that says "ground" should be referenced to that. There's no earth ground or anything like that to further complicate things either.


Anyway, maybe if I somehow screwed up the polarity on the USB input or something, I might have created more or less a dead short. Still not entirely sure. Maybe I can work it out if I spend some more time with the Nano 33 schematic.

At least  it works fine now using Vin, so I don't have to go back and dramatically rework everything. But I would eventually like to understand this deal.

EDIT: OK, I figured it out. It was about the wiring on the bodged USB cable. The red wire on the USB cable, which I naively assumed was the +5VDC side, has a direct path to the ground pin on the Arduino (confirmed via continuity tester), which was in turn wired to the power supply ground. So with the connector plugged in, I had basically a dead short across my LM7805.  No wonder it was starting to burn. |O

« Last Edit: July 13, 2021, 02:19:20 am by mindcrime »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf