Hi, and thank you for reading.
I want to put a ATMega328p chip on a breadboard, using the internal 8mHz internal clock to create a minimal PIR motion detector. I am following Nick Gammon's breadboard guide (Gammon Forum : Electronics : Microprocessors : How to make an Arduino-compatible minimal board) to get the bootloader on the chip. I have also tried the method described on https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard.
Running Nick's Atmega_Board_Detector sketch, I get the following results:
Atmega chip detector.
Written by Nick Gammon.
Version 1.20
Compiled on Oct 16 2017 at 12:41:31 with Arduino IDE 10804.
Attempting to enter ICSP programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0xE2
HFuse = 0xDA
EFuse = 0xFD
Lock byte = 0xCF
Clock calibration = 0xBA
Bootloader in use: Yes
EEPROM preserved through erase: No
Watchdog timer always on: No
Bootloader is 2048 bytes starting at 7800Bootloader:
7800: 0x0C 0x94 0x34 0x3C 0x0C 0x94 0x51 0x3C 0x0C 0x94 0x51 0x3C 0x0C 0x94 0x51 0x3C
7810: 0x0C 0x94 0x51 0x3C 0x0C 0x94 0x51 0x3C 0x0C 0x94 0x51 0x3C 0x0C 0x94 0x51 0x3C
7820: 0x0C 0x94 0x51 0x3C 0x0C 0x94 0x51 0x3C 0x0C 0x94 0x51 0x3C 0x0C 0x94 0x51 0x3C.....
MD5 sum of bootloader = 0x27 0xEB 0x87 0x14 0x5D 0x45 0xD4 0xD8 0x41 0x44 0x52 0xCE 0x0A 0x2B 0x8C 0x5F
Bootloader name: ATmegaBOOT_168_atmega328_pro_8MHzFirst 256 bytes of program memory:
00: 0x0C 0x94 0x5C 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00
10: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00
20: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00
30: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00
When connecting an LED to D13 (pin 19 on chip), it starts to blink like you would expect in standby mode. Running Nick's Atmega_Board_Programmer sketch, I get:
Verifying ...
No errors found.
Done.
Programming mode off.
Type 'C' when ready to continue with another chip ...
The problem begins when trying to upload a sketch. I tried this FTDI232 usb converter:
I also tried the instructions under "Uploading Using an Arduino Board" on the ArduinoToBreadboard page.
Wiring as follows:
Arduino - ATMega
Reset - pin1
0 - pin2
1 - pin3
5V - pin7 and pin22
GND - pin8 and pin20
LED+ to resistor to pin19
LED- to pin22
In all cases I am unable to upload even the Blink sketch.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x91
I am using Arduino IDE 1.8.4. I have tried various ATMega328 chips.
Any input will be greatly appreciated!