VIN vs USB power, damaged project board, trying to understand what happened
bgp
Posts: 34
in Propeller 1
I have a Propeller project board (this one: https://www.parallax.com/product/32810 ) and I managed to fry it. I'm trying to figure out what happened and if something I'm doing is unsafe to figure out what I should be doing instead.
The state it is in now is that plugging in via USB causes the PWR LED to light up and the port to show up on my Mac, but any attempt to load code onto the propeller fails (so I'm assuming the FTDI chip is working but the prop itself or other important component is toast). Applying 5v to VIN does not make the PWR LED light up any more (it used to). There is also a noticeable temperature increase on the prop chip and another that I don't recognize (or at least I didn't notice it before, it definitely seems hotter to me though).
As for how I've had it hooked up, I have various components I'm tinkering with that need 5v power, for which I'm using a separate L7805. I often have had the project board plugged in so it's: 12v -> L7805 -> VIN pin on project board. At the same time, I'm writing code and loading it onto the propeller via USB - by which the board is also powered.
Is it safe to have power supplied from both VIN and USB? I figured there would be some diodes in there to save me from my own foolishness, but if that isn't a safe configuration then at least I would know what happened. What are the other options for being able to have 5v power while iterating through code?
I guess I could tap into the USB power for the other components (looks doable but tricky - very small contacts; overall load is a concern too). Or maybe there is a way to disable USB power and just always use a separate VIN power - is that possible and would it make it safe?
The state it is in now is that plugging in via USB causes the PWR LED to light up and the port to show up on my Mac, but any attempt to load code onto the propeller fails (so I'm assuming the FTDI chip is working but the prop itself or other important component is toast). Applying 5v to VIN does not make the PWR LED light up any more (it used to). There is also a noticeable temperature increase on the prop chip and another that I don't recognize (or at least I didn't notice it before, it definitely seems hotter to me though).
As for how I've had it hooked up, I have various components I'm tinkering with that need 5v power, for which I'm using a separate L7805. I often have had the project board plugged in so it's: 12v -> L7805 -> VIN pin on project board. At the same time, I'm writing code and loading it onto the propeller via USB - by which the board is also powered.
Is it safe to have power supplied from both VIN and USB? I figured there would be some diodes in there to save me from my own foolishness, but if that isn't a safe configuration then at least I would know what happened. What are the other options for being able to have 5v power while iterating through code?
I guess I could tap into the USB power for the other components (looks doable but tricky - very small contacts; overall load is a concern too). Or maybe there is a way to disable USB power and just always use a separate VIN power - is that possible and would it make it safe?
Comments
I assume you do know that the Propeller is a 3.3V only device. If you applied 5V to the Prop, it is most likely fried....
And I always make sure all the pieces have common ground (including whatever is powering VIN and the USB, and any external components).
Also, I had it running in this configuration on and off for days before it finally crapped out on me. It's always possible that I fried it in some other way that I'm not aware of but I can't for the life of me see what that could have been.
One other possibly related phenomenon is that sometimes when I would plug the project board in via USB the USB port on my mac would stop working (not sure if it's due to overdrawing the power - too much current, or power surge - extra voltage coming from VIN). A reboot would solve it so no harm done, but clearly there is something off. This is also one of the reasons I suspect using both USB power and VIN at the same time may not be "safe".
Anyway, a hot prop is never a good sign. I'd guess it's dead...
And yes I'm pretty sure it's toast. I have another board though, I'm more trying to understand what not to do this next time I hook things up.
Specifically it would be great if someone has the info on whether or not applying power to VIN while it is also plugged in via USB is an intended configuration or not.
Page 5 https://www.parallax.com/sites/default/files/downloads/32810-Propeller-Project-Board-USB-Guide-v1.0.pdf
To supply power to the VIN header, you must apply 5–16 VDC to the external power input connector.
The board can receive up to 500 mA for the 3.3 V rail via USB, but if your project requires additional
current, external power input will be required. It is safe to apply power through the external power input
while the board is connected to USB.
Sadly it doesn't explain what went wrong. I happen to have a prop plug, possibly I should switch to using that to load code and just power everything externally, removing USB power from the board altogether (even though per that doc I should not have to).
With the green power led coming on with USB power in and not with just Vin connected diode D1 is open and C1 may be damaged. Diode D2 may be shorted or working. The 3.3V regulator may be working or may be shorted to light the power led. If shorted you will have +5V on the Propeller which would account for it being hot.
The board is probably toast unless you are up to replacing the chips on it. You could check D1 and D2 with a multimeter, and the output of the 3.3V regulator? Posting the results could help determine the cause.
Picture: http://imgur.com/a/TrJY3
Can you point me in the right direction as to where find D1 and D2?
EDIT: D1 appears to be the thing immediately below the big white "+" next to VIN, and that appears to be working correctly: measures 1kOhm in the right direction and full impedance in the other, and that matches the measurement on the fresh board I have.
D2 is a bit tougher. I have a USB to Mini cable that I cut in two and reconnected using a 4 pin .01 spacing female connector to access USB signals. Use the +5V USB pin a pin 2 of the switching regulator to check D2.
The 3.3V can be measured in many places on the board that are well marked.
It is also possible to follow pcb traces and identify components.
Normally I just cut the leads with a blade and flick the chip off, then put a big blob of solder onto the pins and flow them off the board. With thermal pads you can just blob up the leads with lots of solder and while shifting across from side to side with a hot iron the chip will come adrift and you can flick it off the board, especially when you hold it up vertically. Super easy once you have the technique and not afraid to use more solder.