ATMega 328 on breadboard and blink_led

Hi,

I bought an ATMega 328P with an Arduino bootloader installed and set it up as per these instructions

I skipped the power source as I was running it off batteries (4xAA).
I plan install software to the ATMega from an Arduino UNO and I'd just like to check if I'm on the right track.

I found that when I turned on the power the LED on Arduino pin 13 (ie ATMega pin 19 only flashed in response to a reset signal. I was under the impression that chips burnt with the Arduino bootloader came with blink_led as standard. I tried this with 2 chips and both have the same behaviour. If this isn't the case could this be an issue with how I've wired the chip (please see attached), or with the components?

Thanks in advance

Alex

If the standalone led blinks at power up that's good .
You will have to upload the blink sketch that is in the IDE.

Thanks for that. I'll see if I can burn blink_led. It looks like I misread the instructions.

Alex1234:
Thanks for that. I'll see if I can burn blink_led. It looks like I misread the instructions.

Well, yes, you did!

It's "horses for courses" here! You say you "bought an ATMega 328P with an Arduino bootloader installed". From where did you buy it? From Arduino (I haven't noticed whether they sell just the chips)?

The bootloader and the "blink" sketch are separate things - it is possible to burn the bootloader and the blink sketch in one action, but that requires a special setup and is certainly not what you get when you "burn bootloader" on the IDE. So if you purchased - from wherever - a chip with the bootloader (and it flashes on reset) then that's what you got - a chip with a bootloader.

Now Arduino boards - assembled - including the clones and "counterfeits" in almost all cases - would be tested upon assembly. How do you test the assembled board which already has a bootloader on the chip? By programming a test sketch of course, and the the test sketch - is "blink".

And the standard instructions you cite say nothing different - they refer to taking a chip from a UNO with the "blink" sketch already downloaded, and putting that in a breadboard, or to loading the bootloader - and just the bootloader - onto a blank chip.

I have used these instructions successfully to install a bootloader and upload sketches

...R

I don't think your reset line resistor goes to +5 volts.

Thanks everybody for all your help

Joe - I think you're right, I must have fixed it after I took the photo, because it was working at the time

Robin - the link is really handy. I didn't find the instructions you posted when I was looking but found some less detailed instructions on the Arduino site and I opted instead to use these (BioPhysEngr Blog: Writing sketches to a ATmega328 pre-loaded with the Arduino Uno bootloader using an Arduino Uno and ArduinoISP) mainly because it turns out you don't have to remove the chip from the Uno to write to the ATMega, and I was concerned about damaging something. Everything's gone according to plan and now I have blink_led written to the breadboarded chip.