I'm trying to make a standalone arduino board with an OLED display using an Atmega328p. I never tried to make such a board using SMD components. I've soldered everything together except the OLED display itself. I've uploaded the ArduinoISP sketch to an Arduino Leonardo, and hooked up the SPI pins on my board there. But I simply can't upload anything, I've got 0x000000 as the device signature. I've checked all the connections from the Atmega to the exposed pins themselves, and all seems to be correct with no short circuits.
I'm a bit confused if I put C1 and C3 close enough, could those be the problem? Or is the atmega itself dead? Or did I missed something important?
Wiring between the board and the Leonardo is the following:
Board(H1 header) Leo
1(reset pin)<----------> Pin 10
2(MISO) <----------> Pin 12
3(MOSI) <----------> Pin 11
4(SCK) <----------> Pin 13
-------------------------------
Board(H2 header) Leo
1(VCC)<----------------> 5V pin
2(GND)<----------------> GND pin
I've put a 10uF cap between GND
and RESET
on the Leo.
In the stock ArduinoISP sketch, the #define USE_OLD_STYLE_WIRING
line is uncommented. I've tried both Arduino as ISP
as a programmer (which didn't work), and Arduino as ISP (Atmega32U4)
which gave me the aforementioned signature.
As for the board, I've tried selecting both Arduino Duemilanove or Diecimila/ATmega328P
and Arduino Pro or Pro Mini/ATmega328P (5V, 16MHz)