Problem programming atmega168 with avrdude

So I’m another newb that tried the sparkfun tutorial http://www.sparkfun.com/commerce/presen … BEE-2-Code

and got stuck.

The first error I got was the device id mismatch. AVRdude detected device id=0x000102 and it refuses to program. I tried to override it with -F command and that didn’t help.

However, I played it with it some more and it looks like it’s not even responding any more. I get:

avrdude: AVR device not responding

avrdude: initialization failed, rc=-1

Double check connections and try again, or use -F to override

this check.

As for process, I pretty much followed the tutorial except I used the 5V rail of a computer psu for my vcc (with the .1uf decoupling caps). And I made sure reset pin is high.

Any help is appreciated.

So I figured out the problem was that avrdude tries to program at a much higher clock/frequency than the chip can handle (I think) so adding a delay -i30 to command line fixed it.

which port are you programming through (serial or parallel?)