So this is my first instructables.... Let's try this!

*original can be found here: http://tsjwang.blogspot.com/2013/08/diy-arduino-mega-2560.html*

Here's the story: I was working on this frustrating Arduino project, and I decided to take a break. I went away to watch a little Star Trek and drink some water.
When I came back, my Arduino Mega was hot: really hot.

The Arduino was not responding to the IDE. The only way I could program it was by using the USBtiny ISP.
That pretty much ruins the purpose of an arduino board, so I brought out the solder pot, desoldered the whole board, salvaging as many parts as I could.
Since the ATmega 2560 was not damaged, I decided to put it back to use:
The following is the process of how to...

Step 1: Make Your Own Arduino Mega

You think it's hard to solder SMD? Think again. This was my first time soldering SMD chips with 0.5mm pitch (in other words, REALLY SMALL).

Parts needed:
- ATMega1280 or 2560 Microcontroller (I recommend the ATMega1280, so you can use Arduino IDE to program)
- TQFP100, 0.5mm pitch to DIP adapter
- Momentary push button
- 6 headers (for ISP)
- lots of wires
- flux
- Perfboard
- 16 MHZ crystal (if you salvaged chip from Arduino Mega)
- OPTIONAL but recommended - double sided tape
- OPTIONAL - 330 - 470 ohm resistors *2
- OPTIONAL - 5 more headers for FTDI Serial communication
- OPTIONAL - nuts and bolts
Nicely done. But why didn't you simply change the burned part rather than toss everything out?
Hi Carlos, <br> <br>I actually tried to identify the burned part. After I replaced the resistor, something else was heating up. <br>I decided that it wasn't worth the hassle to replace every single part in that part of the board. <br>So I desoldered every part, kept them (for the future), kept the un-populated board as a memoir, and made this! <br> <br>Good suggestion though. I wish I knew what was burnt!
Thanks for the reply! Your set-up looks nice, I dread soldering surface mount components :) (too small to see!)
any idea why the mega got hot to start with?.....I have the same problem with my uno.....will not download...gets hot when plugged into the usb....and after a while the light go really dim.... ..however the last program I loaded still runs when plugged into battery power...so I assume the chip is still functioning fine....so I figure ill diy a uno someday...
When there's heat that means there's a lot of energy being wasted.<br>That probably means there's a short in the board: either inside a component or on the traces.<br>I think what's happening with your Arduino is some component(s) between the USB and ATMega are broken. When you run it off battery, you bypass those components and nothing heats up.<br><br>Be careful with the heat! You might want a new Arduino to prevent breaking your computer's USB port or anything else.
THANKS MR WANG....already have new uno....and have recently purchases the dr robot bluno mega...would however like to salvage what I can from the fried uno....if the chip is still good its highly possible to easily rebuild.....
<p>Can you share the circuit schematic please ? </p>
<p>I didn't have a schematic: it was very arbitrary.</p><p>If you look at the datasheet for the 2560, you can decide what features you want to have.</p><p>Here is the original schematic of the Arduino Mega: https://www.arduino.cc/en/uploads/Main/arduino-mega2560_R3-sch.pdf</p>
<p>I was curious if you were to order the chip from the manufacturer instead of desoldering it from an Arduino Mega...How would you add a Bootloader for serial communication, if that is even possible?</p>
<p>Hi,</p><p>Towards the end of the instructable I talk about how I solder ISP programming pins. If you have an ISP programmer you can burn the bootloader that way.</p>
<p>So XTAL 1 and XTAL 2 go straight to the pins on the crystal ? no other resistors / capacitors required ?</p><p>Great instructable !</p>
<p>For this I didn't bother with the capacitors.</p><p><a href="http://embeddedelectronicsforatmegaseries.blogspot.com/2011/10/tutorial-4-connecting-external-crystal.html" rel="nofollow">http://embeddedelectronicsforatmegaseries.blogspot...</a></p><p>according to this blog, there are calculations you can do for the crystal to see what capacitor to use.</p>
<p>Was just making sure, because I saw 22pf caps on the mega and some other arduino pcb files</p><p>Thanks for the link !</p>
<p>Had a half dead Mega from china ( familiar story :) ) So , rather than bin it , this article inspired me to build a brand new one. No USB to Serial . but added FTDI break out pins. This is partly based on the Mega R3 Schematic. Works nicely!</p><p>Works</p>
<p>Sir can you share the PCB design please</p>
<p>If you can get and install KiCad , I will give you the whole package... will that help you?</p>
<p>Yes Sir it will , Thanks for the great help</p>
Awesome!<br>Did you hand print that double sided PCB?
<p>Hi!</p><p>Yes I did , designed in KiCad and transferred using Toner Transfer method.</p><p>Used a tinning solution to tin the board at the end. All vias are 0.6mm and hand done , all 81 of them :)</p><p>I did reverse the analog and digital ports to ease the routing.</p>
<p>Can I use AVRISP mkii as programmer in arduino IDE to burn bootloader...</p>
I think so, you just need to change what programmer you are using in the IDE.
<p>Can you tell me, which one pins and wires do you connect in step 7? I can't see anything on photos, and don't have to burn the atmega ;D</p>
That's a difficult one.<br>If you look at the pinout in step 6 that might help.<br>Basically you want to wire up the following things<br> - XTAL oscillator clock crystal<br> - ISP Programming port<br> - Reset button to reset<br> - LED on pin 13<br> - TX RX and other UART pins to the UART header<br> - idiot lamp<br>
<p>When you came to the part with flux, at first it looked like you had totally melted the chip XD</p>
<p>Hi,<br>I have developed the &lt;a href=&quot;http://www.iot.fm&quot;&gt; iot system&lt;/a&gt;and the open hardware <br>http://www.smartarduino.com where you can buy arduino and PI kit.<br>I want to cooperation with you,and how i can do next step?</p>
<p>Hi,<br>I have developed the iot system http://www.iot.fm and the open hardware <br>http://www.smartarduino.com where you can buy arduino and PI kit.<br>I want to cooperation with you,and how i can do next step?</p>
<p>A few more questions. What are the six pins that you said you couldn't use. And could you explain the wiring. And also why couldn't you use the Arduino IDE for the 2560 chip. And if I use the 1280, do I need to use AVR Studio, or can I use the official IDE instead?</p>
<p>I'm not sure what you mean by the six pins, but there are <a href="http://fabienroyer.files.wordpress.com/2010/12/6-pin-isp-cable.png" rel="nofollow">six pin ISP cables</a> for programming if that is what you are asking about.</p><p>I couldn't use the Arduino IDE because I probably burnt out the UART part of the Arduino. This means that I could not program it through the USB port anymore, and I could only program it with the ISP.</p><p>You can use the official IDE for the 1280. I think there is an option in the Boards menu for that.</p><p>Thanks for your questions!</p>
<p>Could you go into more detail for the wiring to the perf board?</p><p>Thanks</p>
<p>Sure,</p><p>Like I said it was only if you prefer it. You can use the breakout of the chip as it is and wire it to a breadboard or something, but that will be time consuming.</p><p>I put it on a perfboard so I could have the convenience of an Arduino again.</p><p>I connected the six ISP pins from the bottom of the breakout to the six headers on the breadboard.</p><p>I connected the crystal oscillator to XTAL 1 and 2 on the breakout (soldered from the bottom again).</p><p>A dummy LED was added from Vcc to GND (with a resistor) so I would know if the circuit was powered on or off (and to notify me of shorts).</p><p>An LED and resistor were added to the &quot;Pin 13&quot; of the ATmega, just like an Arduino (Digital pin 13 would be pin 26 on the schematic).</p><p>I added a button from the RESET pin on the breakout to GND</p><p>And of course, I wired all the all the Vcc on the perfboard and breakout to a common Vcc and all the GND to a common ground.</p><p>So now, doing all that I have the same properties of an Arduino (minus USB programming and a voltage regulator)</p><p> - ISP</p><p> - LED on pin 13</p><p> - reset button</p><p> - power LED</p><p>If you want, you could add an FTDI circuit to the perfboard, and 5v and 3v3 voltage regulators to the board. </p>
<p>Can the mega get power while not connected to the computer? Like with a 9v or 12v battery?</p>
<p>Yep, all you need to do is connect ground to ground and whatever voltage to Vin.</p><p>I wouldn't use any voltages higher than 12v however.</p>
<p>By the way, I was meaning this for the Arduino Mega. You need to use 3.3-5v on the chip itself.</p>
<p>Could I use this board instead? </p><p><a href="http://www.schmartboard.com/index.asp?page=products_qfp&id=70" rel="nofollow">http://www.schmartboard.com/index.asp?page=product...</a></p><p>And if so, what would I do with all the extra holes on the side?</p>
<p>Yep,</p><p>It's QFP, 0.5 mm pitch, 100 pin. That sounds right.</p><p>I guess for the extra holes you can just leave them alone; you don't need headers on them.</p>
<p>A few more questions. What are the six pins that you said you couldn't use. And could you explain the wiring. And also why couldn't you use the Arduino IDE for the 2560 chip. And if I use the 1280, do I need to use AVR Studio, or can I use the official IDE instead?</p>
OMG! Thank you! I didnt think it could be done!
Great idea! You can always salvage something! ;D
So, Now I am going to attempt to make another Arduino with the ATMega 8 chip on that burnt out Arduino Mega 2560. <br>Wish me luck in soldering QFN chips!

About This Instructable




Bio: These instructables are mostly about electronics. I hope you find them helpful!
More by TSJWang:LED Audio Waveform Display (100% Code Free!!1) DIY Apple Clock Kruger's Zippo Remote 
Add instructable to: