Pages: [1]   Go Down
Author Topic: Could someone give me a tutorial on standalone atmega 2560?  (Read 1312 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am trying to build a standalone with an atmega 2560. If someone can give me a tutorial or link to a tutorial with pictures that would be great!
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/en/uploads/Main/arduino-mega2560_R3-schematic.pdf
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I am trying to build a standalone with an atmega 2560.

How to do it depends on what you want.

The simplest implementation requires the chip itself. and that's it.

Bells and whistles can be added but whether they should be depends on your applications.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I am trying to build a standalone with an atmega 2560.

How to do it depends on what you want.

The simplest implementation requires the chip itself. and that's it.

Bells and whistles can be added but whether they should be depends on your applications.

I am trying to build the simplest.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27357
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I would put the chip on a breakout board, I think this one
http://www.schmartboard.com/index.asp?page=products_qfp&id=70

And add 16 MHz xtal, two 22 pf caps, 10K pullup resistor for reset, 4-6 100nF caps on the Vcc, AVCC, Aref,  and reset pin to bring out as DTR signal.
Connect 6 pins for ICSP - +5,GND, Reset, MISO, MOSI, SCK - and program away.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What batteries should I use for power?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27357
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've used 3 AAs in a battery back.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would put the chip on a breakout board, I think this one
http://www.schmartboard.com/index.asp?page=products_qfp&id=70

And add 16 MHz xtal, two 22 pf caps, 10K pullup resistor for reset, 4-6 100nF caps on the Vcc, AVCC, Aref,  and reset pin to bring out as DTR signal.
Connect 6 pins for ICSP - +5,GND, Reset, MISO, MOSI, SCK - and program away.
Are the resistors and caps necessary? Because I was able to make a standalone atmega 328 work with a 16 Mhz ceramic resonator and some wires.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27357
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Parts addition depends on how stable you want your design to be.  I don't care to chase ghosts that a pullup resistor and decoupling caps would have eliminated.

Crystal/caps vs resonator - depends on your end use.  High speed comm's?  Accurate standalone time keeping clock (like 1 second/day drift)? Go with crystal.


* Atmel AVR042 AVR Hardware Design Considerations.pdf (236.19 KB - downloaded 23 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you need the caps/resistors to burn a bootloader to it?
Note: I put it together using a crystal and hooked it up to an arduino uno board and a AVR isp mkII and it was unsuccessful.
« Last Edit: January 18, 2013, 12:08:12 am by Jason56 » Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

caps and resistors are to make your chip more immune to external noise floating in the air, last time I did it with no caps and resistors the fuses got buggered up and it took me two evenings to figure out what had happened

capacitors are absolutely needed for the crystal unless using a resonator

seriously, your balking on like 4$ worth of parts if you bought them at the mall
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27357
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I always use them.  I never have problems.
16 MHz xtal, two 22pF caps,10K reset pullup resistor, 100nF caps on VCC, AVCC. 100nF cap from Reset to DTR if doing serial downloads. Diode across reset resistor if using a reset switch.


* Standalone_ATmega.jpg (55.08 KB, 960x720 - viewed 37 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27357
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

2560 has more Vcc pins, put 100nF cap on each one.


* Atmega2560_minimal.png (104.03 KB, 923x794 - viewed 41 times.)
« Last Edit: January 18, 2013, 02:19:27 am by CrossRoads » Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: