New York
Offline
Full Member
Karma: 2
Posts: 235
xronosclock.com
|
 |
« on: December 02, 2012, 11:59:18 am » |
I made a 7805 based 5V power supply for my ATmega chip. Connected LED via resistor and hooked it up to 12 VDC power supply. LED lit fine, voltage was around 5V on the out pin and everything seemed ok. I disconnected 12V supply. Then I connected FTDI USB header to program the chip. LED lit up again (which surprised me at first, but then I realized that it provides power from USB so I don't even need to connect 12V supply to the jack), and I burned Bootloader to the chip just fine, but few minutes later I noticed that LED went off. I touched LM7805 and it was super hot, and apparently burned out. Nothing else was damaged. This took me by surprise, I didn't even used my 12VDC external power supply in the setup. What did I do wrong? Do I need put a diode between LM7805 and +5V line? Here's a basic schematic (doesn't include ATMega, and other components)
|
|
|
|
« Last Edit: December 02, 2012, 12:02:50 pm by bratan »
|
Logged
|
Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info 
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #1 on: December 02, 2012, 12:05:06 pm » |
Feeding a voltage into the wrong end of the regulator is not recommended, however I have never come across a case of this burning out the regulator.
Was the 12V supply left connected up but not powerd up. That could cause a short on the input side and produce what you saw. If this is the case then a diode would prevent this from happening.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #2 on: December 02, 2012, 12:28:48 pm » |
What did I do wrong? Do I need put a diode between LM7805 and +5V line? Typically a reverse-connected diode between 7805's input and output.
|
|
|
|
|
Logged
|
|
|
|
|
New York
Offline
Full Member
Karma: 2
Posts: 235
xronosclock.com
|
 |
« Reply #3 on: December 02, 2012, 12:32:31 pm » |
Feeding a voltage into the wrong end of the regulator is not recommended, however I have never come across a case of this burning out the regulator.
Was the 12V supply left connected up but not powerd up. That could cause a short on the input side and produce what you saw. If this is the case then a diode would prevent this from happening.
Nope 12V wasn't connected at all  I must've wired somewhere wrong somewhere... Can't tell now... What did I do wrong? Do I need put a diode between LM7805 and +5V line? Typically a reverse-connected diode between 7805's input and output. Thanks! You mean like this?  Would it drop my output voltage noticeably? Also I was wondering, if I'm using my own power supply, I don't really have to connect FTDI's VCC to the circuit at all right? Just the ground and RX/TX?
|
|
|
|
« Last Edit: December 02, 2012, 12:42:22 pm by bratan »
|
Logged
|
Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info 
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #4 on: December 02, 2012, 12:39:02 pm » |
Thanks! Would it drop my output voltage noticeably?
No, it just forces any 'reverse current' around the regulator thus protecting it.
Also I was wondering, if I'm using my own power supply, I don't really have to connect FTDI's VCC to the circuit at all right? Just the ground and RX/TX?
That is correct and probably your best choice. However I would wire two 1k ohm series resistors between the Rx and TX pins from the FTDI pins to pins Rx and Tx pins on the AVR chip so that if your supply is powered up but the USB cable is not plugged into the PC that some reverse current won't try and back into the unpowered FTDI chip.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #5 on: December 02, 2012, 12:41:27 pm » |
If you follow dhenrie's advice you short everything out through the diode and end up frying that first. He has a certain reputation on this forum.
As well as RX and TX you also have to connect the DTR line to get the auto reset.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 50
Posts: 6546
Arduino rocks
|
 |
« Reply #6 on: December 02, 2012, 01:11:03 pm » |
I'd put the diode on the 12v input side of the 7805 regulator.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #7 on: December 02, 2012, 01:16:28 pm » |
I'd put the diode on the 12v input side of the 7805 regulator.
Yes that is what I meant, in seriese with the supply and the regulators input. I know dhenery recommends the reverse bypass diode but it just shifts any problem into the diode.
|
|
|
|
|
Logged
|
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 81
Posts: 2123
|
 |
« Reply #8 on: December 02, 2012, 01:41:21 pm » |
If you look at the schematics for the UNO and Duemilanove boards, they have circuits so that power jack input and USB can co-exist without fatalities.
You're lucky you didn't fry the USB port on your PC. Last week I actually hooked up my FTDI cable [same onboard I/F as shown here] to a board powered by the power jack, and it shutdown my notebook. Luckily the USB port survived.
I discovered the idiots who designed the pcb had a TINY TINY 6-8 mil trace covered by solder mask that was shorting across 2 pads that you wire together to power the board from the FTDI header.
Who does something like that? Either you the user solders in a heavy jumper or not. Makes zero sense to have a pre-existing invisible 6 mil trace bringing power in. How's about 50 mils, guys!
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 50
Posts: 6546
Arduino rocks
|
 |
« Reply #9 on: December 02, 2012, 01:56:07 pm » |
If you look at the schematics for the UNO and Duemilanove boards, they have circuits so that power jack input and USB can co-exist without fatalities. I don't trust the arduino onboard power setup. I powered my arduino with 12v thru the barrel jack and measured 8v+ on the board 5v pin. I noticed the board LEDs were brighter when powered via the external power jack and decided to check the board voltage with a multimeter.
|
|
|
|
|
Logged
|
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 81
Posts: 2123
|
 |
« Reply #10 on: December 02, 2012, 02:03:13 pm » |
I don't trust the arduino onboard power setup. Hmmm, I assumed those things had been fully tested.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #11 on: December 02, 2012, 02:15:43 pm » |
If you look at the schematics for the UNO and Duemilanove boards, they have circuits so that power jack input and USB can co-exist without fatalities. I don't trust the arduino onboard power setup. I powered my arduino with 12v thru the barrel jack and measured 8v+ on the board 5v pin. I noticed the board LEDs were brighter when powered via the external power jack and decided to check the board voltage with a multimeter. Well if that was a true and accurate measurement then it should have destroyed both the AVR chip and the USB serial converter chip as 8vdc is well above their absolute maximum safety value. Now if one was to measure between the Vin pin and the 5v pin with a voltmeter then 8vdc could be a perfectly valid reading. But if the on board power led was indeed much brighter then normal then of course you have a true over voltage problem and would almost have to be a defective on board +5vdc regulator. That would be an unusual failure but certainly possible. Lefty
|
|
|
|
« Last Edit: December 02, 2012, 02:17:39 pm by retrolefty »
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #12 on: December 02, 2012, 02:16:37 pm » |
USB has resettable fuse But the computer will remember what tripped it on some of them and shut the USB power off if you hook it back up.
Had that happen on one pc had to uninstall the device.
I would use the same setup as the uno like the pic
|
|
|
|
|
Logged
|
|
|
|
|
|