Pages: [1]   Go Down
Author Topic: Problem Replacing Atmega328 on Uno  (Read 444 times)
0 Members and 1 Guest are viewing this topic.
Delaware
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So I've been working with Arduinos for the past 6 months and just recently have been having a pretty major problem.  About a week ago, I was using my Uno to control some relays for my robotics project.  I made a stupid mistake and ended up (I believe) breaking the onboard Atmega by drawing to much current from it.  I assumed this is what happened because the board wasn't programmable and the output pins always were at 4V.  So anyways, I luckily had an extra 328P lying around, and ordered the Sparkfun pocket programmer (http://www.sparkfun.com/products/9825) to program the bootloader and replace it.

So that's what I tried to do today.  I followed the following Sparkfun tutorial (http://www.sparkfun.com/tutorials/247), set the fusebits, and reprogrammed with the bootloader they supplied.  However, this still didn't work so I tried reprogramming the bootloader via the Arduino IDE.  Still can't upload.  So now my problem is that everytime I try to program I get the following error

avrdude: stk500_recv(): programmer is not responding

The correct board and serial port are both selected.  And when I plug in the board, only the on light goes on, and when I hit reset the L light blinks quickly 3 times and then stops.  So does anyone have any suggestions as to what the problem could be and how I could fix it?  I'd really like to be able to get back to my project sometime soon without having to spend another $30 plus shipping for a new microcontroller.  Thanks in advance!
« Last Edit: June 15, 2011, 09:39:52 am by kelliott » Logged

Colorado
Offline Offline
Full Member
***
Karma: 1
Posts: 220
Arduino 0022 and Ubuntu 11.10 64bit.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Some thoughts: 
use a volt (multi) meter and check output from voltage regulator.
double check the new 328 chip is inserted in the correct direction
try reprogramming the ATMega8U2 chip
Logged

UK
Offline Offline
God Member
*****
Karma: 10
Posts: 903
Twitter: @simonmonk2
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why not buy a 328 with the bootloader already installed? I think Sparkfun sell them amongst others.
Logged

--
My New Arduino Book: http://www.arduinobook.com

Delaware
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

When running off of USB I get the normal 5V when I measure on the 328 itself, and I triple checked that it's oriented correctly, based on the Uno picture in the hardware section.  As for the U2, I don't really know how I could have overwritten the bootloader.  Is that possible when programming from the ISP?  But I can give it a try when I get the chance.

And I didn't buy one with a preinstalled bootloader because I already had a spare 328 lying around so I didn't see a point in buying another.  Plus at some point I'd like to break away from the arduino board for my robot's subsystems so I needed an ISP anyway. 

EDIT: I tried reprogramming the U2 firmware and I couldn't manage to get it into DFU mode.  I found conflicting instruction on grounding HWB then RESET and vice versa but to the best of my knowledge, it didn't work.  All that happened was that the L light blinked in bursts of 3.
« Last Edit: June 16, 2011, 09:51:27 am by kelliott » Logged

Pages: [1]   Go Up
Jump to: