Loading...
Pages: 1 [2]   Go Down
Author Topic: Use Arduino Mega 2560 as ISP (Bootloading ATMEGA328P-PU)  (Read 2500 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 226
Posts: 14101
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The atmega328 in on a breadboard with 16 mhz crystal and 2x 22pF capacitor on pin 9 and 10.

I don't know for sure. You should probably connect pin 20 (AVCC) to +5V. You should have a 0.1 uF capacitor between VCC and GND, and AVCC and Gnd. You should probably have a 10K resistor between RESET (pin 1) and +5V.
Logged


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

The atmega328 in on a breadboard with 16 mhz crystal and 2x 22pF capacitor on pin 9 and 10.

I don't know for sure. You should probably connect pin 20 (AVCC) to +5V. You should have a 0.1 uF capacitor between VCC and GND, and AVCC and Gnd. You should probably have a 10K resistor between RESET (pin 1) and +5V.

Same problem with AVCC, 0.1 uF cap and 10K resistor
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 226
Posts: 14101
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Post a photo please.
Logged


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

Post a photo please.



Uploaded with ImageShack.us

you don't see the 2 crystal cap because is under the crystal.
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 226
Posts: 14101
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I can't see anything wrong. You are clearly communicating with the Mega2560 because of all the stuff that is coming back from avrdude.

However a device signature of 0x000000 seems to suggest that the Atmega328 is not responding. You could try measuring voltages (eg. on 5V) to confirm it is powered up. Other than that, it's hard to know what to suggest next.

Oh, wait. Have you connected the Gnd and +5V from one side of the breadboard to the other? I can't see it in the photo, but maybe you did outside it.
Logged


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

I can't see anything wrong. You are clearly communicating with the Mega2560 because of all the stuff that is coming back from avrdude.

However a device signature of 0x000000 seems to suggest that the Atmega328 is not responding. You could try measuring voltages (eg. on 5V) to confirm it is powered up. Other than that, it's hard to know what to suggest next.

Oh, wait. Have you connected the Gnd and +5V from one side of the breadboard to the other? I can't see it in the photo, but maybe you did outside it.

Yes its under the arduino board ... I will try to Check voltage
Tanks
Logged

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

All voltages seem right ....
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 226
Posts: 14101
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well I don't know for sure what to try next. I got it working so in principle it should work. In your shoes I would be starting to swap things around. Do you have a Uno or similar you can hook the wires up to, to see if it works there? Or another programmer like a USBtinyISP? Or another chip?
Logged


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

Well I don't know for sure what to try next. I got it working so in principle it should work. In your shoes I would be starting to swap things around. Do you have a Uno or similar you can hook the wires up to, to see if it works there? Or another programmer like a USBtinyISP? Or another chip?

I have other atmega328 ... i tray swap it but no success
i swap crystal and cap
i swap the breadboard
i only have an arduino mega 2560 ... i have plan to make an arduino on breadboard and upload sketch with FTDI Basic from sparkfun but without the bootloader i can do nothing... maybe i will buy another atmega238 with the bootloader preloaded to upload bootloader to my other atmega328 (ArduinoISP)... or just a UNO
Logged

Pages: 1 [2]   Go Up
Print
 
Jump to: