"virgin Atmega328PU" to "chip in ArduinoUNO REV3" with only Arduino?

Unfortunatelly I have some trouble understanding the following help:

I come here to you so much more experienced folks and hope you can help me!

I would like to turn a "virgin nothing on ATMega328PU" µC into one that is loaded so to replace the one in the Arduino Uno Rev3. But I am stuck with the tutorial.

My main doubts/troubles in understanding are:
A) Do I need to get 2 Arduino boards to be able to do that? (I think not)
B) Do I need an external clock crystal? (B1)if so...Why? ) (B2)any disadvantage (i.e. different result) if I dont have that?)
C) The site linked says:

Note that these techniques only work with the Arduino Duemilanove w/ an ATmega328, not the Arduino Uno (or older Arduino boards w/ an ATmega168).

But (confusion?) continues with explaining about the Uno board? => is the uno(rev3) or is it not possible to be done with it?

I am hopeful you can give me some insights and quick help.. As for the experienced people it is often "so laughably easy", but for me as a newbie.... really tough. => hence your help is appreciated very much. Thank you

BACKGROUND
Just a quick intro. My setting:

  1. I load a sketch to the Arduino UNO REV3 and hence its original Atmega328PU quite frequently (say ~100 a day, because I often work "learning by doing" and "trial and error". Please do not judge me. Its just plain 1 avrdude quite often.
  2. I think (1) will be over time kill my Atmega (~10'000 write cycles only)
  3. It is time to get myself a backup Atmega328PU.
  4. I have only this:
  • The Arduino UNO REV3
  • PC-USB-connection to the arduino
  • a breadboard
  • a 12V power suply I can plugin at the Arduino.
  1. I do not have:
  • a second Arduino
  • a ISP-specially made device
  • a external clock crystal
  • very experienced background in electronics

You can buy a spare chip with the "standard" Arduino boot loader on it.

Msquare:
You can buy a spare chip with the "standard" Arduino boot loader on it.

:wink: I bet I could. Are you selling those?
Well I still hope there is also a way to respond to the doubts and question I have still. This way I would learn quite some more. But I will keep your suggestion in mind, thanks

alexander_senseo:
A) Do I need to get 2 Arduino boards to be able to do that? (I think not)

No, just one, to which the ArduinoISP sketch will be flashed.

The blank/virgin (or even non-blank) Atmega328P will be in the breadboard.

B) Do I need an external clock crystal? (B1)if so...Why? ) (B2)any disadvantage (i.e. different result) if I dont have that?)

I believe you need them. The way I understand, before flashing the bootloader, you need to set the fuses (the IDE does this for you), and the fuses specifically ask for an external crystal or oscillator. Even if you pass this first step, from that moment on, you'll need the crystal to flash the bootloader because the uC has been programmed to need it.

Besides the crystal, you'll also need 2 x 22pF ceramic capacitors. All the three together should not cost more than 50 cents. Even in Brazil - where I live - this is very, very cheap.

C) The site linked says:

Note that these techniques only work with the Arduino Duemilanove w/ an ATmega328, not the Arduino Uno (or older Arduino boards w/ an ATmega168).

But (confusion?) continues with explaining about the Uno board? => is the uno(rev3) or is it not possible to be done with it?

Forget about that. Just flash the Arduino UNO bootloader to your Atmega328P.

Let me tell a story:
I got 5 blank Atmega328 (non-P, actually), and I followed the tutorial and flashed the Duemilanove bootloader to them. Last night I was working on a project-specific board I made, using it as an Arduino, but I had the UNO selected in the IDE. However there was no way I could upload any sketch to it with an FTDI basic attached to the serial port in my custom board. I checked my project entirely, both in DipTrace and in the physical board. Everything seemed ok.

then I remembered to change the board in the IDE to the Duemilanove, and voilá! My custom board started receiving uploads. I took my cheap chinese USBasp-close, flashed the UNO bootloader to my custom board (it also has an ICSP header) and it started working as an UNO in the IDE.

The greatest advantage of flashing your blank 328 as an UNO is that you don't need to remember what board you are using at the moment.

I strongly advise you to get a xtal and a couple of 22pF ceramic caps.

About buying bootloaded Atmega328P: I am about to buy a few from www.baligena.com (found them on Amazon)

alexander_senseo:
Are you selling those?

Nope. But that is what I bought, at my local RS webstore. Already replaced one. Careless with a 24V wire that briefly touched the chip...

So go out and get some parts.

Board to work on
Solderless Breadboard 400 Tie Points - dipmicro electronics or
Solderless Breadboard 730 Tie Points - dipmicro electronics (more room to experiment with later)
crystal
16MHz Crystal HC49US - dipmicro electronics
two 22 pF caps
22pF/50V Radial Ceramic Disc Capacitor - dipmicro electronics
two 100nF caps
100nF/50V Radial Ceramic Disc Capacitor - dipmicro electronics
10K resistor
10k Ohm 1/4W Resistor ±1% 103 - dipmicro electronics
some connecting wires
Jumper Wire 12pcs for Solderless Breadboard - dipmicro electronics or
Jumper Male/Male Wire 65pc for Solderless Breadboard - dipmicro electronics (much better deal)

So for like $8 you can have a nice little collection to work with for programming parts or experimenting with.
Add a couple 330 ohm resistors, some LEDs, some push buttons, be on the way!
Buy a couple of sets and some header pins and start your own standalone project.

additional blank part
http://www.dipmicro.com/store/ATMEGA328P-PU

Or, buy a bootloaded part

alexander_senseo:
kup Atmega328PU.
4) I have only this:

  • The Arduino UNO REV3
  • PC-USB-connection to the arduino
  • a breadboard
  • a 12V power suply I can plugin at the Arduino.
  1. I do not have:
  • a second Arduino
  • a ISP-specially made device
  • a external clock crystal
  • very experienced background in electronics

If now you have one ARDUINO UNO, you can burn a VAtmeag328 (virgin ATMEGA328) with UNO bootloader without cristal, using the sketch on this link http://www.gammon.com.au/forum/?id=11637
Upload the sketch to your UNO, follow the conections on http://arduino.cc/en/Tutorial/ArduinoToBreadboard.
After connect pins 13, 12, 11, and 10 to reset, connect pin 9 of UNO to pin 9 of ATMEGA (XTAL1 pin).
Open the SERIAL CONSOLE e follow the instructions.

Hey Just want to give kudos to the previous comment. There is a lot of confusing information around regarding how to BL onto a virgin chip but the gammon instructions are extremely well written and not at all didactic..... Thanks :slight_smile:

I have been spending time working on just what you are doing. Some advice.

  1. google mightycore and follow instructions.
  2. Get an AVI programmer, it will make your life better.
  3. Decide what you are trying to do. You can run with an external crystal or the internal 8mghz one. If you are trying to save power and do not mind slower running times this is a fantastic solution.

Please do not forget your decoupling capacitors.

The links above are a good source of info and tools that you should have.

I can breadboard a working Arduino in about 5 minutes. No crystal, and about 5 wires that NEED to be hooked up.