So I uploaded the example Blink onto my arduino 2009. I tested out with a leds and it worked! Then I took out the atmega328p and put in on a breadboard and powered with a 3VDC to pin 7 and 8 ground on the atmega328p. Then I connected the anode of the leds to PB5 and the cathode to ground and it doesn't work.
How come?
Cool
but my question is why doesn't it work when I took the atmega328 from my arduino with the source code Blink in it. Why doesn't the led flash with only the atmega328 and 3VDC?
Then I connected the anode of the leds to PB5 and the cathode to ground and it doesn't work.
You have to also include a current limiting resistor or you will damage the processor and/or LED.
Then I took out the atmega328p and put in on a breadboard and powered with a 3VDC to pin 7 and 8 ground on the atmega328p
You must provide 4.2V or higher or change the fuse settings.
I thought the atmega has a internal crystal oscillator
It does. But YOU have to reconfigure the processor to use the internal oscillator by changing the fuses. In addition, your Sketch has to be rebuilt for an 8 MHz (or 1 MHz) processor.