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?