Hello, ahoi, hi.
I recently bought an Atmel ATmega328P-PU chip for an outdoor project, so there would be no risk of damaging my precious Arduino when It's raining,
But after several days of desperate browsing through the internet, I have found only a few tutorials (because about 95% of tutorials out there use Arduino Uno) that I can use with my Mega. Although each and every one of them has failed horribly.
I am using my chip with a 16 MHz crystal. Everything's hooked up according to the "ArduinoISP" sketch (pins 50, 51, 52, 53).
But still, I can't quite wrap my head around some stuff...
- People say you are supposed to put a capacitor (or are you?) between the RESET pin and ... ... well, here comes the problem. Some people say, you have to put ir between RESET and +5V pins, others tell to put it between RESET and GROUND. Wheres the truth???
- When burning bootloader, I am constanly getting this error:
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
I know that ATmega328 and ATmega328P have different signatures. But that doesn't seem to be the case. After tinkering around with the avrdude.config file, error still keeps appearing.
- Somebody mentioned, that changing "heartbeat" delay from 20 to 40 would fix the error. Nope. Not this time.
- I have also tried using Adafruit's "ArduinoISP2" sketch, unfortunately, with no results.
- Occasionaly, console says something like:
avrdude: ser_send(): write error: sorry no info avail
No idea what that means, though.
- Third type of error:
avrdude: ser_open(): can't set com-state for "\\.\COM8"
Got this once, don't know what happened.
So here I am. Sitting at my PC with a bunch of jumper wires, breadboard and chip that can't be used. Burning up my brain with huge confusion.
What's terrible, is that people commenting all those tutorials, are really satisfied. Everything's working fine for them. That keeps me thinking - Have I blown something up? And is there any way to test that?
Thank You.