user47122: I'm using arduino atmega 328p and currently using on custom PCB
I programmed using the arduino board and take the IC and migrated to my custom PCB
currently the program run well on the arduino board but after i tried to run it in my custom PCB  and i found it didn't worked
im using along with 16000 mhz oscillator with 22n capacitor

as shown this is my schematic for my PCB

this is my trace for my PCB board
so is this problem caused by my schematics or i didn't upload the bootloader?

user42539: Schematic corrections:
Missing 0.1uF caps on VCC, AREF pins.
AREF pin connected to 5V - don't do that. It will connect internally using the ADC Mux if used.
C1, C6 need to be 22pF as noted earlier.
Xtal and C1, C6 should be right next to the chip as noted, with no traces going under the xtal.
Board should have Gnd plane anywhere there is not a trace.
Use Vias to connect top & bottom Gnd planes.
Do not use traces to connect all the Gnds - have pins connect to the Gnd planes instead.
Add a 1uF or 10uF electrolytic capacitor where power comes into the board, especially if the power leads will be long.

47122: <p>I'm using arduino atmega 328p and currently using on custom PCB
I programmed using the arduino board and take the IC and migrated to my custom PCB
currently the program run well on the arduino board but after i tried to run it in my custom PCB  and i found it didn't worked
im using along with 16000 mhz oscillator with 22n capacitor</p>

<p><a href="https://i.stack.imgur.com/bcvgf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bcvgf.png" alt="enter image description here"></a></p>

<p>as shown this is my schematic for my PCB</p>

<p><a href="https://i.stack.imgur.com/gF4Iu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gF4Iu.png" alt="enter image description here"></a></p>

<p>this is my trace for my PCB board</p>

<p>so is this problem caused by my schematics or i didn't upload the bootloader?</p>
 42539: <p>Schematic corrections:</p>

<p>Missing 0.1uF caps on VCC, AREF pins.</p>

<p>AREF pin connected to 5V - don't do that. It will connect internally using the ADC Mux if used.</p>

<p>C1, C6 need to be 22pF as noted earlier.</p>

<p>Xtal and C1, C6 should be right next to the chip as noted, with no traces going under the xtal.</p>

<p>Board should have Gnd plane anywhere there is not a trace.</p>

<p>Use Vias to connect top &amp; bottom Gnd planes.</p>

<p>Do not use traces to connect all the Gnds - have pins connect to the Gnd planes instead.</p>

<p>Add a 1uF or 10uF electrolytic capacitor where power comes into the board, especially if the power leads will be long.</p>
