Burn bootloader on atmega168

All,

I got a little prblem with burning the bootloader on a atmega168pu as described in the next link : http://arduino.cc/en/Tutorial/ArduinoISP

I got the next error code when trying to burn the bootloader in the 168:

avrdude: Expected signature for ATMEGA328P is 1E 95 0F

Double check chip, or use -F to override this check

I have not so much programming experience to solve this problem.

Can anyone please help me ?

You have somehow selected the ATmega328P and not the ATmega168 as a target.

Is your circuit compatible with one of the official Arduino boards with an ATmega168 ?
That is the board that you should select.

After the Arduino as ISP is selected and the ArduinoISP sketch has been uploaded, the Arduino as ISP is a programmer. The target is ATmega168. So the new board should be a ATmega168 compatible board.

The example on the page you posted considers that the MCU being flashed with the bootloader is an Atmega328P. In your case, it is an Atmega168.

When you are ready to burn the bootloader, open the Arduino IDE and, instead of choosing a board with a 328P, choose: Tools -> Board -> Diecimila or Duemilanove w/ ATmega168

Then you click on Tools -> Burn Bootloader

You can select Diecimilla w/ atmega168 but it needs external oscilator (16 mhz)

If you want to run it with internal osc you have to create another custom board in boards.txt and set fuses to internal osc and 8 mhz.

You can use my instructive video here :

http://yohizu.wix.com/yohizu#!loading-a-bootloader/cxxk

be careful to choose your board with ATmega169 in the TOOLS>BOARD menu