Atmega328 on a breadboard with 8 MHz internal clock

Hello everyone!

I tried to use the atmega328p microcontroller on a breadboard with 8 MHz internal clock. I followed the procedure given in the following link:

I tried the last part in the above link for eliminating the external clock. I didn't upload the bootloader since I took the microcontroller from the Arduino Uno board. In the arduino IDE, I chose Tools->Board->Atmega328 on a Breadboard (8 MHz internal clock).

I got this error while trying to upload:

avrdude: stk500_getsync(): not in sync: resp=0x00

I checked the connections but couldn't find anything wrong with that.

Please help me with this.

Also, what should be chosen under Tools->Programmer menu?

Thanks in advance.

Arduino UNO uses external clock. It is defined by fuses in ATmega328P. You need the programmer to change the fuses. So, your possibility is to use Arduino UNO as ISP programmer but to program another chip, not its. New ATmegas have internal clock set by default.

BTW: The error "avrdude: stk500_getsync(): not in sync: resp=0x00" means that it's unable to communicate with the device - no response. It's general error which has more reasons, not only wrong connection. In your case it is probably because ATmega328P is missing clock signal and won't start.

Try Nick Gammon's bootloader, includes a clock signal if needed.