Pages: [1]   Go Down
Author Topic: Standalone Atmega2560  (Read 824 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I working on a project that will use a ATMEGA2560 standalone. It will be powered a 3.7V 2000mAh lipo battery boosted to 5V.

I'll be using the SparkFun FT232 breakout board for USB connectivity and a AVR Programming Adapter to bootload the chip.

I'll also be using a SPI real time clock, i2c device and the digital pins.

I was wondering whether my attached drawing looks correct? Am i missing any components?

Thanks for your time. I'd really appreciate any help.
Jeff


* atmega2560_2.png (187.23 KB, 1203x949 - viewed 64 times.)
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You should have a pull-up on Reset, just in case (say, 10K). I don't see a resistor in series with your "power" LED.
Logged

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

Thanks Nick for your response,

I've attached an updated diagram.

Would I need any pull-up resistors for the SDA and SCL lines?

Also, does it matter which transmit/ receive pins (I used TXDO/ RXDO) connect to the SparkFun FT232 breakout board? There are a number of these on this chip.

Cheers,
Jeff


* atmega2560_2.png (193.32 KB, 1203x949 - viewed 36 times.)
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If the I2C device doesn't have its own I would put 4.7K pull-up resistors on SDA and SCL.

The bootloader would expect to operate from TX0/RX0. If you aren't using the bootloader through the breakout it wouldn't matter, but if you are, it would.
Logged

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

Thanks for your response.

Can this point please be clarified.

Quote
The bootloader would expect to operate from TX0/RX0. If you aren't using the bootloader through the breakout it wouldn't matter, but if you are, it would.

Thank you
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is the FTDI interface for the purpose of bootloading?
Logged

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

Sorry for the delayed response.

I'm not sure if it's just my computer, but if I view an Arduino page (non forum pages) then try log into the forum, I cannot. It just loads to a white screen. Only when I log in directly before looking at any other (non forum pages) it works properly. I have to restart my computer to solve this.

Anyway,

I think I may be confusing myself with the 2560 solution.

I'll refer to http://arduino.cc/en/Tutorial/ArduinoToBreadboard to burn the bootloader using my Arduino Uno board, and also to upload my programs.

To confirm, by using this method, TXO and RXO from the 2560 can be connected in the same way as shown in the above link with no problem?

Thank you,
Jeff
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I suppose, I haven't followed that exact link.
Logged

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

Hi,

Is this a correct way to approach this:

1) Burn the bootloader: Referring to Nick's posting, http://www.gammon.com.au/forum/?id=11635

2) Upload programs: FT232 USB to Serial Board with RXO (atmega2560) to TX and TXO (atmega2560) to RX.

Thanks
Logged

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

Can anyone please confirm my previous post?
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What you have posted looks correct, subject to your having Rx and Tx the right way around. How about stating whether or not it is working?

If it is not, please post a clear photo of your setup.
Logged

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

Ok thanks,

I'll need to confirm this once I receive all the parts I'll need.
Logged

Pages: [1]   Go Up
Jump to: