Atmega 328p microcontroller

That question cannot be answered, that is probably why it has not been answered. We have no clue as to what the program does or what hardware it is expecting. Posting both an annotated schematic with links to hardware devices and you code would go a long way.

2 Likes

Google for "Arduino barebones"

2 Likes

If you program the 328 on the Uno without changing the bootloader you will have to have the 16MHz crystal, 2 x 22pF ceramic caps (for the crystal), 2 x 0.1uF ceramic decoupling caps (Vcc to ground and AVcc to ground) and a 10K resistor from reset to Vcc. (got it right this time).

And you will have to power it with 5V.

1 Like

I have merged your cross-posts @petercl14.

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum. You have established a pattern of cross-posting and have already been warned about this multiple times in the past. You are testing the patience of the moderators and are close to receiving an account suspension. It is time for you to start being more respectful of this community.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

That is not a valid excuse. You have been a member of this forum for over three years now. It is your responsibility to make the effort to learn the basics of how to use this forum. There is a lot of information available.

If you have questions or problems about using the forum, you are welcome to open a dedicated topic to request assistance. We have a forum category for such discussions: Website and Forum

1 Like


The way if you choose intern oscillator @ setup.


The way with extern crystal, standard for arduino boards. The 22p capacitors are dependent on the used crystal.


With extern oscillator.

If you program the controller to clock from an internal 8 MHz source, you can use the chip without any external wiring at all. The only connection you need is to pull the reset to power.

I will get another 328p to put in the socket. as somebody else has said the uno board would already have a bootloader program.

"The uno board" itself doesn't have any program in it. The bootloader must be flashed into the chip via prgrammer

could somebody please supply a schematic of the connections I will need to make to the 328p after I have programmed it and removed it from the uno board. And I am not talking about my own hardware which is used with the program I have made as somebody has suggested. I mean the connections that make the 328 operational which of course are already on the uno and nano boards.

See @ post 27. There are 3 possible way. If you have the standard setup, the second schematic is what you need.

The simplest answer is: Almost everything the UNO has.
Minimal circuit to make it functional is:

  1. power, all power pins connected, decoupling capacitors is good to have,
  2. reset circuit, absolute minimum is pull-up resistor to VCC, value around 10k is good choice, the whole UNO reset circuit is the best choice anyway,
  3. external oscillator circuit or source for 16MHz (this is settings from UNO), typically it is 16MHz crystal and 2x22pF (this value should work for the most crystals),
  4. optional: AREF decoupled.

Decoupling capacitors required. May work without them, but not reliably.

1 Like

You mean that I buy an ATmega328P chip from shop and put it into the socket of the UNO Board and then install Bootloader Program into it -- I will try?

Check the following schematic (Fig-1) if it works (assuming that the loaded sketch will just blink LED):


Figure-1:

C1 - why exactly?
There will be shortage on C1 after RST press. This will cause a huge discharging current.

And also, all GND pins should be connected to the GND. Do not rely on internal connection.

1 Like

Delete

You will also need to include a USB to UART serial adapter of some sort if you need to communicate between the 328 and your computer USB port. Such as using Serial.print().

A USB to serial dongle works well for this.

Sorry, what?

What about to use whole UNO or Nano?

Somehow that got linked to you and I didn't know how to correct it.
Sorry about that

1 Like