Go Down

Topic: Other Atmega on the UNO (Read 13 times) previous topic - next topic

alparent

Jan 13, 2011, 05:38 am Last Edit: Jan 13, 2011, 05:38 am by alparent Reason: 1
OK I don't know if this is the right location for this question?
I've just purchased a UNO and was wondering if I can use other controllers on it?

Yes I did search this site and Google also......but I'm so green it's not even funny!

I think from what I've read that the 168 is a simple switch.
But I was looking at the Atmega8 and 88.
I want to make stand alone projects and 4k or 8k would be good enough.

How to I get a bootloader and the sketches on them?

If it's doable please educate me  :-[ I basically need a step-by-step, this is what you need to do, kind of approach.  I'm green I tell ya!

Just got my board one week ago and I can't put it down.
Lucky for me...my programmer friend also got one. And he is helping me a lot!

Thanks in advance for any help you can give me.  

westfw

You should be able to drop an ATmega168 or ATmega8 (with appropriate bootloader) onto an Uno, with no other modifications (to the Uno.)  You would have to either buy these chips with a bootloader pre-installed, or have some other mechanism for installing the bootloader.

In the "board" menu, you would need to select the board based on the chip and bootloader used, rather than using "Uno."  So an Uno Board with atmega168 and the old bootloader would be called a "Diecimila ... with mega168"

alparent

#2
Jan 13, 2011, 03:09 pm Last Edit: Jan 13, 2011, 03:21 pm by alparent Reason: 1
OK, so if I install the bootloader using the Arduino as an ISP/breadboard method. I should then be able to use any of these chips. Right?
How to I select what bootloader to install?

From what I can read the Atmega88 is not supported?
Is the Atmega48 supported?

One more "kinda" related question.
If i want to use the atmega chip outside the Uno board, but I want it to use it's internal clock. Do I need a special bootloader?

And if I install a bootloader on a chip using the Arduino as an ISP/breadboard method without a crystal. Will is be usable on my Uno running at 16mhz? Not sure if my question is clear?

So many questions?  :-[
Thanks for your time.

It's very reassuring to have a place like this. There is so much to learn........it's wonderful to have access to a forum like this. Full of knowledgeable folks, willing to help.  :)

bill2009

Quote
OK, so if I install the bootloader using the Arduino as an ISP/breadboard method. I should then be able to use any of these chips. Right?
How to I select what bootloader to install?

From what I can read the Atmega88 is not supported?
Is the Atmega48 supported?

One more "kinda" related question.
If i want to use the atmega chip outside the Uno board, but I want it to use it's internal clock. Do I need a special bootloader?

And if I install a bootloader on a chip using the Arduino as an ISP/breadboard method without a crystal. Will is be usable on my Uno running at 16mhz? Not sure if my question is clear?


google "todbot blog" and look for a good post on building standalone arduino clones with atmega8's and where to get bootloaders.

I believe you can use the arduino environment to program for the atmegas you mentioned as well.  If you have a programmer to burn the bootloader you might consider using it to burn your sketch and forget about the loader alltogether.

using the internal oscillator rather than the external crystal is set with fuses on the chip.  Once you've set the fuses correctly you could, conceivably, still use the chip in your uno - you'd need a custom boards.txt entry - see the todbot blog.  This doesn't affect any other chips that you might plug in.

I have spent a lot of time fooling with attiny's, as have others here.  The more I play with other chips, the more i respect the original decision to use the atmega8.  It was a real sweetspot for capability vs size and it's grown nicely with the 168/328.  What i mean by that is: consider sticking with the full-size processor for ease of use unless you need an awful lot of them.

retrolefty

Look at the boards menu on the Arduino IDE, these are the only processor/bootloader/speed options available for an unmodified Arduino IDE. You may burn the bootloader using any of the five devices listed in the burn bootloader menu.

If other AVR processors are desired or bootloaders you will have to venture into the land of command line AVRDUDE program, that can burn most any ATmel processor and use any bootloader hex file you are able to locate or write yourself, and can use a ton of different hardware programers.

Once done, you will have to have the needed modifyed files for the Arduino IDE if you wish to utilize your new chip/bootloader/speed combination with the standard IDE platform, or utilize standalone tools/other IDE platforms.

It can get a little complex, but if you clearly state the end condition of what hardware and what tools you you wish to use, there is usually a path to that goal.

Lefty

Go Up