I'm a student working on a research project. For this project, a custom arduino was made on a PCB with a gyroscope, and magnetometer. The problem I'm having is that when uploading the simple Blink demo code to the atMega 2560 through a USBtiny programmer, the led on the PCB, which corresponds to pin 13 like on a standard Arduino does not blink every 1000ms. At first it blinked about 15 times slower, i.e every 15 seconds. After some more trials, the LED started blinking sporadically.
I tried using the programmer with a standard Arduino and everything worked as it should so, I know the problem shouldn't be the programmer.
What could be responsible for the incorrect rate of the blinking light?
Did you burn the fuses?
Use the IDE and program a Mega2560 bootloader on the part, that will set the fuses for external 16 MHz crystal, and things should run like a normal Mega after that.
That code is for using one Arduino running a sketch to bootload another Arduino.
Not for using an AVR ISP Programmer to bootload a device/Arduino.
If you want to use that sketch, then yes, reset needs to come from pin 10 on the Arduino that is running the bootloading sketch.
I am not sure what the problem is with the USB Tiny device.
Some programmers do have problems with the large memory devices like a Mega2560.
I do a lot of messing around; after the first couple of projects, you come to realize that good tools make a world of difference. I use Atmel AVR ISP MKii for all my bootloading and thus do not have all the issues that come up way too often here with folks trying to get other methods to work.
Price has been creeping up, about $1/year since I bought mine in early 2011.
The stock MKii does not provide power to the device being programmed, it only monitors it. The only time I have had a problem was when I forgot that - the indicator lights make it pretty obvious that something is not right.
I usually have a USB interface as part of the project, either connected to a header or mounted on board, so PC power via USB powers the board.
So connect both up, install the bootloader, then install blink, gives a pretty good indication that the board is off to a good start.