As from title, I am trying to program an ATMEGA168 with my Arduino Uno.
I have found several tutorials on the net with all sorts of different details... but none really seems to work for me.
What I have done for now is:
1) Upload the Arduino as ISP sketch on the board
2) Wire the ATMEGA as suggested by this site: http://blog.biophysengr.net/2012/06/writing-sketches-to-atmega386p-pre.html
Pin 1 to Arduino reset pin, through a 10K resistor, with a 22uF capacitor to avoid automatic resetting of the board
Pin 7 and 20 to 5V
Pin 8 and 22 to GND
Pin 9 and 10 connected to a 16MHz crystal with a 22pF capacitor on each end
Arduino pin 10 to ATMEGA Pin 1
Arduino pin 11, 12, and 13 to ATMEGA Pin 17, 18, and 19 respectively
3) Now I open a sketch, for instance the Blink example (I added a LED to pin 19 of the ATMEGA in order to test if it is working), select "Arduino as ISP" as programmer from the Tool menu and upload the sketch.
I get a "Done uploading" message, with this error:
avrdude: stk500_getsync(): not in sync: resp=0xe0
Needless to say, the LED does not blink...
I am fairly new to all of this, so any solution or even hint would be much appreciated.