EEVblog Electronics Community Forum

EEVblog => EEVblog Specific => Topic started by: DarkPrince on October 07, 2012, 03:57:23 pm

Title: EEVblog #366 - USB PSU Troubleshooting
Post by: DarkPrince on October 07, 2012, 03:57:23 pm
EEVblog #366 - USB PSU Troubleshooting (https://www.youtube.com/watch?v=QL0KnXDPbe8#ws)
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: DarkPrince on October 07, 2012, 04:08:57 pm
Hey Dave,

So you were measuring between the two terminals of the inductor. I was wondering if there was enough load on the boost converter, so it wasn't running in discontinuous conduction mode. Figure the duty cycle is going to be very small to generate those output voltages if no load is present. I only ask because you measured across the inductor the second to last time declaring it non-operational, than the output terminals on the last test when declaring it operational. Video magic (behind on the scenes) measuring the output voltage?

Of course if that were true than with a resistor connected rather than the capacitor the first time you would have seen a little boost of voltage, so truly could have been a package flow issue.

Anyway, once again a wonderful video. Keep up the troubleshooting videos, may have embarrassing moments (do'h moments!) but non the less they are educational/entertaining/food-for-thought.
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: Short Circuit on October 07, 2012, 04:12:51 pm
Wrong components on manual assembled prototypes, classic mistake and good for a lot of wasted engineering time :(

My method to reduce this type of mistakes somewhat is to count the number of parts before placing them.
This provides a simple verification that the correct quantity of a certain part ended up on the PCB. Have one left over, or one short, means a mistake has been made.

Does not eliminate the problem entirely, but with this PCB, this approach would have raised a flag with both the 10k resistor (one left) and the 100p cap (one short).
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: king.oslo on October 07, 2012, 05:44:38 pm
Dear Dave,

I would just like to say thanks for the progress of this series. Electronics design tutorials are very useful.

Kind regards,
Marius
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: robrenz on October 07, 2012, 06:09:01 pm
My method to reduce this type of mistakes somewhat is to count the number of parts before placing them.
This provides a simple verification that the correct quantity of a certain part ended up on the PCB. Have one left over, or one short, means a mistake has been made.

I like that one,  extremely simple yet very effective (and I probably would never think of it myself).  Thanks for sharing.
Title: Life makes fools of the wizest man.
Post by: robbak on October 08, 2012, 07:53:26 am
Hey Dave,
Take youself a video of Sagan hitting you on the head and giggling, so you can link to it any time you do something especially stupid.
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: ju1ce on October 10, 2012, 08:23:25 pm
Thank you Dave for letting everyone learn from your mistakes instead of hiding them.
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: SeanB on October 10, 2012, 08:42:41 pm
Dave leaves them in to show all how to do it, warts and all. You need to get experience, and it only comes from making mistakes.
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: Rutger on October 18, 2012, 03:29:14 am
Hi Dave, I was looking at designing my own battery operated USB power supply using a single cell Lipo. The USB was only for charging so not isolation needed (correct me if I am wrong).

MCP73837/8 - Battery Management 1A USB/DC input auto-swich
LM2623MM/NOPB - DC/DC Switching Controllers GEN PURP,GATED OSC DC/DC BOOST CONVRTR (this mongrel at least has legs to solder, but only goes to 14V)

Maybe this will give you some ideas.

Rutger
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: Rerouter on October 18, 2012, 05:41:30 am
you would still need isolation if you planned to use it while it charging, or if you have the output connected to a voltage, pretty much if you do not close the earth loop your fine,
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: Rutger on October 18, 2012, 02:47:59 pm
What if you disable the output while charging via the USB and only activate the output when you are charging via an isolated DC power supply or when you use it in battery mode? A small relay should do the trick, right?
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: Rerouter on October 19, 2012, 06:17:49 am
i am not sure if this is a just for you or a commercial product, if just for you, then, it doesnt even need to be isolated on the product if your external supply is isolated,

my point was, if your output "ground" is not at the same ground as your input you have a problem,

if you are aware of this then your not too likely to go and blow the thing up,
or you design a physical switch for the output that disconnects the ground aswell so your safe as long as the output is off,

it just comes down to what range of senarios you want to cover, something i have been beating myself up about on my own higher power varient,
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: SteveyG on November 19, 2012, 08:32:55 am
Are you ever going to finish this thing?
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: peter.mitchell on November 19, 2012, 08:43:03 am
Relay on the outputs, driven form USB input voltage? Or for more security, relay on the outputs, driven by the battery via a tac switch that gets depressed when you push in the usb plug?
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: Jotaemebe on January 13, 2013, 09:22:06 pm
Hey Dave,

So you were measuring between the two terminals of the inductor. I was wondering if there was enough load on the boost converter, so it wasn't running in discontinuous conduction mode. Figure the duty cycle is going to be very small to generate those output voltages if no load is present. I only ask because you measured across the inductor the second to last time declaring it non-operational, than the output terminals on the last test when declaring it operational. Video magic (behind on the scenes) measuring the output voltage?

Of course if that were true than with a resistor connected rather than the capacitor the first time you would have seen a little boost of voltage, so truly could have been a package flow issue.

Anyway, once again a wonderful video. Keep up the troubleshooting videos, may have embarrassing moments (do'h moments!) but non the less they are educational/entertaining/food-for-thought.

yep, i also think there were no soldering problem with the QFN chip, it is not a good idea to measure between the inductor when there is no load at the output, always try to measure after the diode with the filtering cap


Great video!
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: Pilot3514 on March 22, 2013, 08:24:18 pm
Dave,

I look forward to seeing the design process and the schematics.

I indicated that you were waiting on, or having trouble getting the USB to serial converter.  I was wondering why you did not use a micro controller with USB built in.  I know there are several.  I think that I would lean to the atmega16u2.  The only reason is that the Arduino Uno uses this chip as a USB to serial and the code is open source so I would have an easy starting point.  You don't need to actually convert the USB to serial, just keep the interface so the PC software thinks it is talking to a serial port.  You could use the UART serial port on the chip to talk to another serial device or just use the pins for more I/O.

I guess I will learn the answer to these and many other questions when the design blog comes out.
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: tomtomtomtom on March 24, 2013, 09:50:43 am
Uart isolation is easy usb is not, seeing as these power supplys could be hooked up to anything you dont want your pc getting fried if anything goes wrong ;)
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: Pilot3514 on March 24, 2013, 01:48:45 pm
Uart isolation is easy usb is not, seeing as these power supplys could be hooked up to anything you dont want your pc getting fried if anything goes wrong ;)

Are you expecting something like optoisolaters on the RX and TX lines between the microcontroller and the USB-to-serial chip?  I didn't see that in the previous design (the bench supply) but it could happen.

I was looking at lowering the chip count, board space and maybe the cost, I did not take into account isolation.
Title: Re: EEVblog #366 - USB PSU Troubleshooting
Post by: tomtomtomtom on March 28, 2013, 08:58:00 am
Uart isolation is easy usb is not, seeing as these power supplys could be hooked up to anything you dont want your pc getting fried if anything goes wrong ;)

Are you expecting something like optoisolaters on the RX and TX lines between the microcontroller and the USB-to-serial chip?  I didn't see that in the previous design (the bench supply) but it could happen.

I was looking at lowering the chip count, board space and maybe the cost, I did not take into account isolation.

Yes the USB version offers opto-isolation on Rx and Tx.

Another reason to use the FTDI is that it means dave doesn't need to worry about VID and PID stuff