I made an “Arduino” on a breadboard using an ATmega328 28-pin DIP. I am using a Sparkfun FTDI Basic to upload code (https://www.digikey.com/product-detail/en/sparkfun-electronics/DEV-09716/1568-1103-ND/5318745?utm_adgroup=Interface%20-%20Modules&utm_source=google&utm_medium=cpc&utm_campaign=Shopping_Integrated%20Circuits%20(ICs)&utm_term=&utm_content=Interface%20-%20Modules&gclid=CjwKCAjwgdX4BRB_EiwAg8O8HT547HS-VWGjOJe98m23ASAOVcS5Q3MTYVWiub7ozC5hKWR73SItyRoCixMQAvD_BwE).
The breadboard “Arduino” works great!
I had the design printed as a PCB but I changed to a TQFP 32-pin ATmega328p. Everything else is the same as on the breadboard. I was able to get the bootloader on the PCB ATmega328p using another Arduino, but I can’t upload code. I get the following error when I try to upload code:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x91
PCB “Arduino” TQFP 32-pin ATmega328p Connections:
Pin 2 (D4) --- sensor output (the ATmega pin will be configured as an input)
Pin 3 (GND) --- GND
Pin 4 (VCC) --- 5V
Pin 5 (GND) --- GND
Pin 6 (VCC) --- 5V
Pin 7 (XTAL1) --- 20 MHz crystal
Pin 7 (XTAL1) --- 22 pF capacitor --- GND
Pin 8 (XTAL2) --- 20 MHz crystal
Pin 8 (XTAL2) --- 22 pF capacitor --- GND
Pins 9-14 (D5, D6, D7, B0, B1, B2) --- each pin connected to a different multiplexer latch pin
Pin 15 (MOSI) --- connected to data-in pin on 6 different multiplexers
Pin 17 (SCK) --- connected to the serial clock pin on 6 different multiplexers
Pin 21 (GND) --- GND
Pin 27 (SDA) --- (open when uploading code) connected to a master microcontroller (another Arduino)
Pin 28 (SCL) --- (open when uploading code) connected to a master microcontroller (another Arduino)
Pin 29 (RESET) --- 1 k pull up resistor --- 5V
Pin 29 (RESET) --- 0.1 uF capacitor --- DTR (Sparkfun FDTI Basic)
Pin 30 (RX) --- TX (Sparkfun FDTI Basic)
Pin 31 (TX) --- RX (Sparkfun FDTI Basic)
Note: GND and 5V are supplied by the Sparkfun FDTI Basic
I have made other PCB projects in the past using the 28-pin DIP ATmega328p, but this is my first time uisng the TQFP 32-pin ATmega328p. Is there any difference that I should be aware of?