I am trying to implement my arduino on a breadboard. I have tested my setup on the dev board that I used to program it and it worked.
Now I have used this as a guide:
to put my atmega328 on a breadboard. I don't have any of the caps or the indication diodes. I'm wondering if the caps are critical? They don't seem like they should be.
I have power to the correct pins and my chip is behaving erratically.
I have a 16Mhz oscillator and I'm reading 4.98VDC to VCC and AVCC. I have my grounds connected on the chip.
I have some other electronics involved.
HOWEVER; I have tested them with the Duemilanove development board and they worked fine.
Everything falls apart when I try to put the ATMega328 on the breadboard instead.
Its always good to start with the basic blinking LED sketch too, just to make sure the breadboard setup works before getting too ambitious with additional components.
This is of note and should be made into a sticky: the 328 has internal caps on the clock inputs.
It works with a a 16mhz crystal installed between the two pins. There is no need for caps and a ceramic oscillator doesn't work.
This is of note and should be made into a sticky: the 328 has internal caps on the clock inputs.
It works with a a 16mhz crystal installed between the two pins. There is no need for caps and a ceramic oscillator doesn't work.
While you may have got yours to work, we shouldn't let this statement stand for others to use in the future, let alone make it a sticky.
While the 328 AVR pins 9 & 10 each do exhibit some amount of capacitance to ground, it is not generally enough to let crystals work accurately at their specified frequency, and may cause fail to start up or sluggish starting. Even if a crystal will oscillate without using external padding caps, accuracy will suffer somewhat without the use of external padding caps such that the total capacitance (internal + external) are what the crystal was specified to work with.
Three pin ceramic resonators do work with the 328 processor, and yes they have internal padding capacitors wired from the outside pins to the middle pins, just be sure to ground the middle pin. I have at least two 328 processors using ceramic resonators and they work just fine, they just don't quite have the accuracy of a crystal resonator, but in most cases that is not an important issue.
I have 4x 328s here.
I can't get ANY of them to work with a three pin resonator or a crystal with two caps.
They only work when I have the two pin crystal plugged in.
If other people have other results, I can't explain the phenomena
It's possible the fuse settings for your 328 chips are set such as not to be proper for the standard oscillator settings. Check out an AVR datasheet for the fuse options offered for oscillator function and if you have the means to read your fuse settings, see if it is set up correctly.
If you are mounting then in a breadboard, the board itself may have enought capacitance to let the cristal work properly, but when you add the caps it as too much and can't work, using high clock signals in a breadboard is always asking for troubles.
I have tested my setup on the dev board that I used to program it and it worked.
What dev board did you use to program it?
Are the 4 328's you tried from a regular Arduino board, or did you just buy them as parts? Maybe the chips don't have the Arduino bootloader / fuses set and instead is operating off the internal 1MHz oscillator?
No i used the standard arduino dev board to program them. IF they were programmed to run off of the internal clock, adding an external ceramic oscillator wouldn't make them malfunction anyways right?
It really seems to be an odd situation as right now I feel like my reality is not congruent with everyone else's...