I have all the drivers and software stuff installed on my PC including arduino 00022 (or whatever version) and I'm able to upload any code and it works fine, however if I unplug the USB cable and re-connect it, the code no longer functions correctly instead I always get a flashing pin 13 that flashes 3 times at 8.33Hz (64mS on time) then after the 3rd flash it stays off for 624mS then repeats.
I've tried using another 328-pu chip but it does the same thing, and I've also tried re-installing the bootloader on both chips twice, and I've only programmed each chip individually but they both act the same after powers been re-apply after loosing power, and I know the codes are working correctly when I upload them even if I change the blink code to 1kHz it blinks at the correct speed and its a nice clean square wave.
Thanks Iggy that fixed it, now I have one other issue, I have a project I'm working on where I plan on just using the 328 with no arduino board, so my questions are :
A) Do I HAVE to have a 16MHz crystal (I'm assuming yes), but being hopeful since I didn't design my board with an oscillator in mind
B) Can I just have a +5V, GND, RESET, TX, and RX connected from the arduino board to my projects PCB to easily adjust and change the code?
A) Do I HAVE to have a 16MHz crystal (I'm assuming yes), but being hopeful since I didn't design my board with an oscillator in mind
You can use a 16MHz crystal and two capacitors OR a 16 MHz ceramic resonator OR you can burn the 8MHz 328 Nano Pro bootloader to use the internal click.
B) Can I just have a +5V, GND, RESET, TX, and RX connected from the arduino board to my projects PCB to easily adjust and change the code?
Yes, if you remove the processor from the Arduino board. An alternative is to put an ICSP header on your board and use the ArduinoISP sketch or a USBtiny programmer to load code into your board.