Standalone Atmel Atmega 8

Hi! I'm new here (and i hope this is the right category. :P)

What I want to do: I want to build a standalone-arduino-atmega8-board. Of course I'd like to use the Arduino software, or anything similar to C++/C to program the Arduino. So I'm able to use Arduino Boards (Mini, Duemilanove), but I'm not able to program a single Atmega.

Is it possible to program (and burn the bootloader) on an Atmega 8 with the Arduino Duemilanove (ATmega328p). I guess i will need an Arduino UNO or an Duemilanove with an ATmega168?

Another question: What do I need to buy?

Of course an Atmel atmega8 (Already bought). An arduino Uno? (Maybe) quartz? (Can I use the internal one?)

Do I need any other hardware beside the arduino board to burn the bootloader?

Is it possible to program (and burn the bootloader) on an Atmega 8 with the Arduino Duemilanove (ATmega328p).

Yes!

Another question: What do I need to buy? An arduino Uno? (Maybe)

No!

quartz? (Can I use the internal one?)

I'd use a quarts crystal, but it is possible to use the internal oscillator.

There are a number of pages about setting up a standalone board: http://www.arduino.cc/en/Main/Standalone http://arduino.cc/en/Tutorial/ArduinoISP http://arduino.cc/en/Tutorial/ArduinoToBreadboard

Onions.

Wow! That looks like what I was looking for.

I made a mistake in the last post. I've got a Duemilanove with an Atmega 168 on it which i can't remove. It seems to be a Freeduino board or sth like that.

AND,I've got the Sparkfun ftdi breakout board!

PLEASE tell me wether I'm right: 1) I'm going to burn the bootloader from my PC over the arduino Duemilanove (ATmega168, not removable, the small one!) to my atmega 8 on the breadboard. 2)Then, the atmega 8 on the breadboard works like a normal arduino and i only need a serial/usb connection. 3)I'll disconnect the Duemilanove and connect the atmega8 with my Sparkfun ftdi breakout board (Tx, Rx, 5V, GND) (Of course no auto reset then, but that's okay) 4)I'm able to use the atmega8 (with quarts) like a normal arduino !!!??? 5)Another Question: Is it possible that I kill my Duemilanove with this?

P.S.: Onions is a very creative username. I like it.

3)I'll disconnect the Duemilanove and connect the atmega8 with my Sparkfun ftdi breakout board (Tx, Rx, 5V, GND) (Of course no auto reset then, but that's okay)

Yes, the Sparkfun FTDI breakout will work. I build a Sanguino clone with it and it works seamlessly with the Arduino software (configured for the ATMega644P, ofcourse). You can use the DTR signal and a capacitor for auto reset.

4)I'm able to use the atmega8 (with quarts) like a normal arduino !!!???

This assuming you have the proper bootloader for an ATMega8. Is there one?

A copy of the the ATmega8 or ATmega168 or ATmega328 bootloader hex file. The latest bootloaders can be found on your harddrive at \Arduino\hardware\arduino\bootloaders\atmega\

from here http://www.arduino.cc/playground/Learning/Burn168

I’ll try it and tell you what happened!

Thanks to all who helped me so far.

Electrically, you don’t need much connected to burn a bootloader or download a sketch.
10K pullup resistor, crystal, 2 22pF caps, couple of 100nF power supply caps.

If going to do a lot of bootloader downloading, then adding in a connector for an AVR ISP programmer becomes convenient. Otherwise can just jumper to the needed pins once.
If going to do a lot sketch downloading, then adding in a connector for an USB/Serial adapter (such as FTDI Basic) and a cap from DTR to the reset line also becomes convenient.
After that, add connectors as needed.
Or just wire up additonal components as needed. Here inthe lower left hand corner I have a ATMega328, crystal, 22pF caps, and 3 100nF caps, 10K pullup is in the socket above the uC.
No headers for downloading sketch or bootloader - the chip was preprogrammed and just plugged in.

I only want to burn the bootloader once! So, I'll do this on the breadboard. And then I'd like to download the program from the computer to the atmega8 only once. (Maybe use the internal oscillator then, so its really a minimal construction)

But my problem is now: I've got only one Duemilanove, so I have to follow this (http://arduino.cc/en/Tutorial/ArduinoToBreadboard) instructions. But there it says:

Note that these techniques only work with the Arduino Duemilanove w/ an ATmega328

1)My Duelimanove has got an atmega168 (SMD version) on it ---- I guess I won't be able to burn the bootloader with this board ??! 2)I've got a Arduino Mini with an atmega328P (SMD version) on it ---- So, in case the Duelimanove with the 168 does not work, could I use the mini?

If 1) and 2) does not work I'd have to buy a Duelimanove like this one, because then it would be the only one whick supports burning bootloaders, right?

If you have a Duemilanove, you can add 4 pins to the X3 connector and then use the FTDI chip to download bootloaders:

http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html

Or spend $12-14 and get an AVR ISP for downloading bootloaders.

You do plan on doing more than 1 project, yes? Then one of these options would be a handy tool to have. http://www.mdfly.com/index.php?main_page=product_info&cPath=5&products_id=415 http://store.nkcelectronics.com/pocket-avr-programmer.html

I have a modified Duemilanove that I have programmed ATMega328s with, and I have the MDFly programmer that I have programmed ATMega1284's with. I also have the PocketProgrammer but have not tried it yet.