Pages: [1]   Go Down
Author Topic: Diff. in burning sketch from IDE and direct  (Read 379 times)
0 Members and 1 Guest are viewing this topic.
Netherlands
Offline Offline
Sr. Member
****
Karma: 0
Posts: 414
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am working on a sketch that burns a led 3 times to show that my program has started. When I do this from within the IDE, this works nice. When I burn the hex with my programmer, the program also starts, but the led blink very dim. I have to keep my hands above the led (on pin 13) to keep it away from (sun)light to be able to see the blinking.

Can anyone explain this?
« Last Edit: November 10, 2007, 11:47:39 am by jds » Logged

Daniel
Guest
 Bigger Bigger  Smaller Smaller  Reset Reset

hi

when burning the bootloader via ISCP, you need to connect the programmer as well as power via the external jack or USB... I usually use a 9V battery on the side.

D
« Last Edit: November 11, 2007, 08:03:58 am by Daniel » Logged

Netherlands
Offline Offline
Sr. Member
****
Karma: 0
Posts: 414
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Daniel, but I have powered my Arduino with a 9V/450mah power supply and I used a parallel port programmer (STK-200) and got the problems mentioned above.

This setup should have worked, right?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you pulled the ICSP out before you power up the Arduino?
Logged

Greenwood, Indiana
Offline Offline
God Member
*****
Karma: 0
Posts: 508
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Arduino pin 13 goes to atmega168 pin 19 as well as the ICSP pin 3. I assume something in the programmer is drawing down the current. Try changing to an unused digital pin or unplugging the programmer as suggested and powering it up.
Logged

If it was designed by man it can be repaired by man.

Netherlands
Offline Offline
Sr. Member
****
Karma: 0
Posts: 414
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is the procedure I follow:
1. Connect ICSP wire from pc to Arduino (led on pin13 already lights up)
2. Power Arduino with external power supply
3. Burn hex file through ICSP
4. Remove power from Arduino
5. Remove ICSP programmer from Arduino

When I apply power again, I run into this problem.
Logged

Pages: [1]   Go Up
Jump to: