| Electronics > Beginners |
| Probing usb powered circuit. Should I be scared? |
| << < (6/7) > >> |
| sokoloff:
--- Quote from: tooki on October 19, 2018, 02:39:38 pm --- --- Quote from: sokoloff on October 19, 2018, 12:30:48 pm ---I would recommend specifically a powered USB hub. Over the course of several years, I blew one USB port on a MacBook by drawing too much power from it. (In this case, it wasn’t a short, but was simply drawing far too much power from the port. A powered hub would have protected me there I’m fairly sure.) --- End quote --- Out of curiosity, do you know how much current you drew?? Macs made since 2007 can provide 1A (or more) per USB port, above the 500mA maximum of standard USB. (Of course, this is only supposed to be drawn after power negotiation.) Both overcurrent and dead shorting them should cause the port to go into overcurrent protection and turn off, with a message to that effect on screen. --- End quote --- If I had to guess, a little over 2 Amps. I had a circuit that was able to be powered from USB or from a single LiIon, but didn't have good protections to be able to be plugged in both ways. The LiIon could supply 10 Amps; the circuit could draw 3-4 Amps (depending on the configuration of the LEDs); I would test and update the code with patterns that lit very few LEDs or used very low global brightness settings. A bug in the code let too many LEDs be turned on at high brightness which seems to have blown the USB port. Based on other measurements I did with the bench power supply and meters, I'm pretty sure it blew at 2 Amps +/- 20%. |
| tooki:
--- Quote from: sokoloff on October 19, 2018, 05:27:06 pm --- --- Quote from: tooki on October 19, 2018, 02:39:38 pm --- --- Quote from: sokoloff on October 19, 2018, 12:30:48 pm ---I would recommend specifically a powered USB hub. Over the course of several years, I blew one USB port on a MacBook by drawing too much power from it. (In this case, it wasn’t a short, but was simply drawing far too much power from the port. A powered hub would have protected me there I’m fairly sure.) --- End quote --- Out of curiosity, do you know how much current you drew?? Macs made since 2007 can provide 1A (or more) per USB port, above the 500mA maximum of standard USB. (Of course, this is only supposed to be drawn after power negotiation.) Both overcurrent and dead shorting them should cause the port to go into overcurrent protection and turn off, with a message to that effect on screen. --- End quote --- If I had to guess, a little over 2 Amps. I had a circuit that was able to be powered from USB or from a single LiIon, but didn't have good protections to be able to be plugged in both ways. The LiIon could supply 10 Amps; the circuit could draw 3-4 Amps (depending on the configuration of the LEDs); I would test and update the code with patterns that lit very few LEDs or used very low global brightness settings. A bug in the code let too many LEDs be turned on at high brightness which seems to have blown the USB port. Based on other measurements I did with the bench power supply and meters, I'm pretty sure it blew at 2 Amps +/- 20%. --- End quote --- Hmm. I have serious doubts that 2.4A would cause damage, especially not on later models. Apple's own article on this is contradictory (and incomplete), in that it says Apple devices can request 1100mA (i.e. 600mA extra), and then later shows a screenshot of an iPhone being given 1600mA extra current (2.1A total). For sure, I wouldn't expect 2.4A draw from a 2.1A port to cause damage, it should just trip the overcurrent protection. (Edit: I just checked with my MacBook Air, which is a mid-2012 and thus belongs to the first generation of Macs with USB 3 ports, and it does indeed show my iPhone as being able to draw 500+1600mA. So we know for sure that all Macs with USB 3 are capable of 2.1A, and we also know that all Macs introduced from 2007 are capable of 1.1A.) Is it conceivable that the liIon somehow back-fed current into the USB port? Or maybe the instantaneous current was too high, e.g. with PWM? |
| sokoloff:
Li-Ion was not connected (and is “downstream” of the Arduino regulator in any case. To be honest, it happened just last week and I haven’t fully power cycled the MacBook to see if it will come back. The port still has power, but doesn’t “see” any devices connected there. I’ll update this thread just out of closure when I do a full reboot and test. |
| tooki:
Oh! In that case, also be sure to do an SMC reset, if power cycling alone doesn't fix it. Others have reported that this brought their USB ports back to life. (See also my added edit to my reply above.) |
| tooki:
--- Quote from: Moriambar on October 19, 2018, 03:22:27 pm --- --- Quote from: tooki on October 19, 2018, 02:34:40 pm ---Yes. Tying the grounds together actually reduces the chances of problems. I routinely tie together scope ground and Arduino ground when scoping Arduino circuits. I'm sure many more mistakes are theoretically possible, but yes, the main one is just to remember that the scope ground is earth ground (and thus Arduino ground, USB ground, etc), so don't connect the scope ground to anywhere else in the circuit but ground. --- End quote --- Did measure a 0.076V stable difference between the usb ground and the usb gnd. I connected the scope gnd to it and nothing blew up. Great! --- End quote --- Those are just stray currents, and connecting the grounds is how you equalize them. But FYI, even much higher voltages are possible — it is, for example, absolutely normal for an ungrounded switch-mode power supply to show as much as 1/2 the AC mains voltage between either + or - and ground!! (This is what causes the tingle you can feel on many devices.) But the current is spectacularly low, so connecting one side (typically the negative) to ground is the fix! I guess my point is that measuring a voltage from earth ground to somewhere else isn't necessarily a sign of a malfunction. If you're not sure, of course, you already know where to ask! --- Quote from: Moriambar on October 19, 2018, 03:22:27 pm ---Yes, the only project I have that goes up over 5V is a motor one featuring a 12V DC motor, so I think I'll be safe. And, although I understand about "putting the grounding anywhere when you're floating", I feel like for now it's best for me to grow a habit to use the normal gnd, and maybe be extra careful and change it only when needed and floating --- End quote --- Yes, absolutely!!!! Also, 99.99% of the time, a circuit's ground will be the negative. But the rare positive-ground circuits do exist (mostly in a handful of vehicle electrical systems, and in many power supply circuits, like the cheap 0-30V linear lab power supplies you get on eBay). So if you're unsure, just use your multimeter to determine whether it's a positive or negative ground before connecting the scope. Of course, this only matters if your circuit isn't floating. --- Quote from: Moriambar on October 19, 2018, 03:22:27 pm --- --- Quote from: tooki on October 19, 2018, 02:34:40 pm ---What I do, like many people, is to use an AC adapter (or lab power supply) to provide 7-12V DC to the Arduino's DC input jack. (9V is typical, but lower will let the Arduino's voltage regulator run cooler.) When you do this, the Arduino automatically stops pulling power from USB — but still retains the data connection. --- End quote --- Well I did not know this. Great! I have a PSU albeit old and crusty (but it was free!) and I can use that one! Thanks --- End quote --- Yep, as long as the voltage is in the right range, and the PSU has enough current for your circuit, use it!! |
| Navigation |
| Message Index |
| Next page |
| Previous page |