loading
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*

Alright.
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 - two LEDS
- 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!)
<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>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>
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>When you came to the part with flux, at first it looked like you had totally melted the chip XD</p>
<p>Hahahahah i was thinking the same thing :D</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!
:D
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

63,763views

75favorites

License:

Bio: These instructables are mostly about electronics. I hope you find them helpful!
More by TSJWang:DIY Apple Clock Kruger's Zippo Remote Hand Engraving Zippo Lighter 
Add instructable to: