Upload code to atmega328

I want to design atmega328 on PCB
One method to upload code is using Arduino Uno as shown in figure
If I disconnect the wires from arduino uno side but left them in atmega328 side, will be there any problem such as open circuit because of wires?
My idea is to solder the wires in PCB and when I need to upload code or monitor data I connect these wires to arduino uno

The 2 and method here

^ I couldn't attach the figure

Take a look at the schematic for a Arduino PRo Mini;

Once you have the bootloader installed on the ATmega328P, just have a 5 pin header on the PCB and upload programs with a serial to USB adapter, just like you do with a Pro Mini.

You can get the schematic from the Arduino site and then edit it base on your requirement. Introduction to ATmega328 - The Engineering Projects

I have USB to TTL Adapter
It doesn't have DTR, will it do the jop?

The DTR line will reset the 328 processor right before upload begins. If you put a push button switch on the reset pin wired to ground (with 10K pullup resistor), you can manually reset the processor. Watch the compiler output line in the IDE and when it says "Uploading" press and release the reset switch. It may take a bit of practice to get the timing right.

Buy a USB to serial adapter with the DTR line (and LEDs for TX and RX). Makes life easier.

If there is RTS on your USB/TTL adapter it has same functionality in IDE/avrdude as DTR.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.