Author Topic: Blinking Test Light only works when Programmer is plugged in?  (Read 801 times)

0 Members and 1 Guest are viewing this topic.

Offline corrado33Topic starter

  • Supreme Robot
  • *****
  • Posts: 611
  • Helpful? 11
Blinking Test Light only works when Programmer is plugged in?
« on: November 22, 2009, 12:51:06 AM »
So I modified the photovor program to simply blink the LED.  It uploaded and works fine... when the programmer is plugged in.  The only thing is, the atmega8 isn't getting power from the programmer, it's getting power from a modified CPU power supply going through a 5v switching regulator.  The voltage is (no surprise here) 5v.  So when I have the programmer plugged into the atmega 8, it works fine, but as soon as I unplug it, the LED will blink once, then it's done.  As soon as I plug the programmer back in, it works again.  (When I say plug and unplug, I mean plugging and unplugging the USB from the programmer.)  This is all on a breadboard.  If you guys really need a picture I'll take one tomorrow, but maybe someone will just know what's going on?  And after programming, the LED should blink with simply 5v power going to pins 7, 20, and 21, and ground going to 8 and 22, then port 6 (LED port) connected to my LED circuit right?  

Please help  ???

HMMM... Woke up this morning... everything works fine.... hmmmm...
« Last Edit: November 22, 2009, 10:50:56 AM by corrado33 »

Offline z.s.tar.gz

  • Supreme Robot
  • *****
  • Posts: 540
  • Helpful? 5
  • Linux Guru
Re: Blinking Test Light only works when Programmer is plugged in?
« Reply #1 on: November 23, 2009, 03:06:46 PM »
That's what they call magic.
Save yourself the typing. Just call me Zach.

 


Get Your Ad Here