5

Okay 2 questions. If I am to replace the Arduino with an ATmega328 programmed with a standard blink on pin 13, is this configuration correct, do I still need oscillators and whatnot?

Simple breadboard circuit with LED on pin 13 of ATmega328

Second question is, what is the max voltage I can power the ATmega328 with without frying it? I have seen conflicting answers of this on the net. Some have said 5V while some say 6V can someone clarify?

Greenonline
  • 3,152
  • 7
  • 36
  • 48
suckms
  • 125
  • 1
  • 1
  • 7

3 Answers3

3

The datasheet describes the electrical and clock requirements of the chip, and AVR042 describes the external hardware configuration required. Decoupling, analog voltages, external crystal or oscillator if required.

Jasmine
  • 461
  • 2
  • 6
Ignacio Vazquez-Abrams
  • 17,733
  • 1
  • 28
  • 32
2

If you take a look at the Standalone Arduino on the Arduino website, then this is what you require:

Standalone Arduino

Note that there is one slight error in the guide, which I have highlighted here, Arduino Standalone - photo shows incorrect pin wired to MOSI.

There is a video on how to achieve, more or less, the same thing, 1-Day Project: Build Your Own Arduino Uno for $5.

Greenonline
  • 3,152
  • 7
  • 36
  • 48
2

I have a page describing How to make an Arduino-compatible minimal board. The minimal setup would be:

enter image description here

That excludes the circuitry for uploading your code.

By the way, in the image in the question you have an LED with no resistor. That will damage both the LED and the Atmega328. You need a current-limiting resistor.


do I still need oscillators

Not if you program the fuse to use the internal oscillator.

Some have said 5v while some say 6v can someone clarify?

The datasheet says 1.8 to 5.5 V operating range with an absolute maximum rating of 6 V.

This is what the datasheet says about absolute maximum ratings:

This is a stress rating only and functional operation of the device at these or other conditions beyond those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.

Page 2 of the datasheet says:

  • Operating Voltage:
  • 1.8 - 5.5V
Nick Gammon
  • 38,901
  • 13
  • 69
  • 125