Instructables

DIY Arduino Mega 2560 or 1280

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...
 
Remove these adsRemove these ads by Signing Up

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

Step 3: Placement

Place the chip on! Please note the index corner on the chip to align it correctly. Make sure that the leads on the chip and the board line up REALLY well. The must be aligned.
carlos66ba10 months ago
Nicely done. But why didn't you simply change the burned part rather than toss everything out?
TSJWang (author)  carlos66ba10 months ago
Hi Carlos,

I actually tried to identify the burned part. After I replaced the resistor, something else was heating up.
I decided that it wasn't worth the hassle to replace every single part in that part of the board.
So I desoldered every part, kept them (for the future), kept the un-populated board as a memoir, and made this!

Good suggestion though. I wish I knew what was burnt!
carlos66ba TSJWang10 months ago
Thanks for the reply! Your set-up looks nice, I dread soldering surface mount components :) (too small to see!)
liqinliqin1 month ago

Hi,
I have developed the <a href="http://www.iot.fm"> iot system</a>and the open hardware
http://www.smartarduino.com where you can buy arduino and PI kit.
I want to cooperation with you,and how i can do next step?

liqinliqin1 month ago

Hi,
I have developed the iot system http://www.iot.fm and the open hardware
http://www.smartarduino.com where you can buy arduino and PI kit.
I want to cooperation with you,and how i can do next step?

Rocker5172 months ago

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?

TSJWang (author)  Rocker5172 months ago

I'm not sure what you mean by the six pins, but there are six pin ISP cables for programming if that is what you are asking about.

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.

You can use the official IDE for the 1280. I think there is an option in the Boards menu for that.

Thanks for your questions!

Could you go into more detail for the wiring to the perf board?

Thanks

TSJWang (author)  Rocker5171 month ago

Sure,

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.

I put it on a perfboard so I could have the convenience of an Arduino again.

I connected the six ISP pins from the bottom of the breakout to the six headers on the breadboard.

I connected the crystal oscillator to XTAL 1 and 2 on the breakout (soldered from the bottom again).

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).

An LED and resistor were added to the "Pin 13" of the ATmega, just like an Arduino (Digital pin 13 would be pin 26 on the schematic).

I added a button from the RESET pin on the breakout to GND

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.

So now, doing all that I have the same properties of an Arduino (minus USB programming and a voltage regulator)

- ISP

- LED on pin 13

- reset button

- power LED

If you want, you could add an FTDI circuit to the perfboard, and 5v and 3v3 voltage regulators to the board.

Rocker5172 months ago

Can the mega get power while not connected to the computer? Like with a 9v or 12v battery?

TSJWang (author)  Rocker5172 months ago

Yep, all you need to do is connect ground to ground and whatever voltage to Vin.

I wouldn't use any voltages higher than 12v however.

TSJWang (author)  TSJWang2 months ago

By the way, I was meaning this for the Arduino Mega. You need to use 3.3-5v on the chip itself.

Rocker5172 months ago

Could I use this board instead?

http://www.schmartboard.com/index.asp?page=product...

And if so, what would I do with all the extra holes on the side?

TSJWang (author)  Rocker5172 months ago

Yep,

It's QFP, 0.5 mm pitch, 100 pin. That sounds right.

I guess for the extra holes you can just leave them alone; you don't need headers on them.

Rocker5172 months ago

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?

rpotts28 months ago
OMG! Thank you! I didnt think it could be done!
TSJWang (author)  rpotts28 months ago
:D
Raphango10 months ago
Great idea! You can always salvage something! ;D
TSJWang (author) 10 months ago
So, Now I am going to attempt to make another Arduino with the ATMega 8 chip on that burnt out Arduino Mega 2560.
Wish me luck in soldering QFN chips!