Can I use the atmega328 chip directly on a circuit ?

Hi,

Here is the real question: Can I use the atmega328 chip on a circuit without anything else (no crystal, no capacitors) ? Can I just solder my components on the corresponding pins and get it working ?

If I can't could you please explain why.

Short answer: you could, as it has an 8MHz internal oscillator that will need calibration if you need accuracy, but you will need at least a 100nF cap on the VCC pin and to the ground.

Thanks for the fast answer

When you say VCC pin and GND pin is it only the supply ones (7 and 8 ) or both (7,8 and 20,22) ?

Most recommendations apply to both VCC and AVCC. So between 7 and 8 and 20 and 22 should have you covered. This doc from Atmel provides details.

a_guy:
Here is the real question: Can I use the atmega328 chip on a circuit without anything else (no crystal, no capacitors) ? Can I just solder my components on the corresponding pins and get it working ?

You could - if it had been programmed to operate from its internal clock.

Have you checked Nick Gammon's article?

Perhaps the real question is why you would ever want to do this when Pro Mini modules are so cheap and ready to pop into any finished project?

Right now I have multiple atmega328 and I want to use this one in a small project enclosure. I thought I could just solder the wires ( for a speaker and a button ) on the arduino chip and get it working but it seems like it is a little more difficult...

So if I got what you said I need to have capacitors on pins 7, 8, 20 and 22 and supply power to all of these pins.

Well, if you propose to build it "dead bug" style, all you actually have to do is to directly wire the two VCC pins together and the two ground pins together with a 0.1µF capacitor between these wires which cross over under the chip.

Just as long as you have first programmed it for its internal 8 MHz clock - using ISP programming.

I would suggest soldering the components onto the legs of an IC socket, then plug the chip in.

I would suggest soldering the components onto the legs of an IC socket, then plug the chip in.

An old salt.

CrossRoads:
I would suggest soldering the components onto the legs of an IC socket, then plug the chip in.

It's what I did but thanks for the advice

a_guy:
Right now I have multiple atmega328 and I want to use this one in a small project enclosure. I thought I could just solder the wires ( for a speaker and a button ) on the arduino chip

If size is important and you are using only 2 pins, why not use a tiny85? Keep the 328 for another project, this would be a waste of its capabilities.

Paul

PaulRB:
If size is important and you are using only 2 pins, why not use a tiny85? Keep the 328 for another project, this would be a waste of its capabilities.

Paul

Can I solder directly on the attiny85 without any need for crystals or capacitors ?

a_guy:
Can I solder directly on the attiny85 without any need for crystals or capacitors ?

You will still need that 0.1uF across the power pins, or it may very well "play up". But that's it.