go away spammer

Author Topic: $50 Robot Help - Led Flash  (Read 4186 times)

0 Members and 1 Guest are viewing this topic.

Offline MarkBrownTopic starter

  • Full Member
  • ***
  • Posts: 77
  • Helpful? 0
    • Mark's Projects
$50 Robot Help - Led Flash
« on: August 18, 2008, 11:28:27 PM »
Last night I had the robot working.  Today moved all the parts to a new chasis that I have been working on for it.  After hooking everything back into the circuit board, the only response I get when I hook up the power is a very brief LED flash.  I have had this happen before and it turned out that I had a little fleck of solder creating a short.  This time though I am not able to find a short.  I have tried this without any cables plugged in, just servos and just sensors.  I figured something might have happened to the programming so I reprogrammed the chip with no errors.  I tried again after reprogramming and received the same result.  I have also tried different batteries.

I am starting to go a little crazy.  Does anyone have any advice?

Mark
It is human nature to confuse genious with insanity

http://marksproject.blogspot.com/

Offline MarkBrownTopic starter

  • Full Member
  • ***
  • Posts: 77
  • Helpful? 0
    • Mark's Projects
Re: $50 Robot Help - Led Flash
« Reply #1 on: August 19, 2008, 12:10:51 AM »
I did some further testing and my robot is now working.  The led is still flashing or flickering, but the robot is working.

Now I get to have some fun modifying the code a bit.  The robot begins to turn when the light changes, but only briefly before going forward again.  I assume this is due to the algorithm where the light is the same for both sensors.  Probably a delay change should fix it.

At anyrate, it is working now.

Mark
It is human nature to confuse genious with insanity

http://marksproject.blogspot.com/

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: $50 Robot Help - Led Flash
« Reply #2 on: August 19, 2008, 12:29:40 AM »
post your code.

you can use the LED like you would with print statements in a program for easy debugging,

put the LED_on; inside of a function or loop so that you know when it gets to that line of code, the LED can in a sense help you step through code.

Offline MarkBrownTopic starter

  • Full Member
  • ***
  • Posts: 77
  • Helpful? 0
    • Mark's Projects
Re: $50 Robot Help - Led Flash
« Reply #3 on: August 19, 2008, 01:05:52 AM »
I am still using the original code provided by Admin in the tutorial.  I will post any code changes I make if that is what you mean.

Mark
It is human nature to confuse genious with insanity

http://marksproject.blogspot.com/

 


Get Your Ad Here

data_list