go_away

Author Topic: 50 dollar robot help  (Read 1364 times)

0 Members and 1 Guest are viewing this topic.

Offline SteedTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
50 dollar robot help
« on: January 10, 2009, 09:58:10 PM »
i have been out in my garage for two days now trying to fix this circuit. i have been following the schematic as close as i can, and wiring everything up just like i'm shown. but the LED will not come on when i give it power. batteries are good the LED is good. and when testing for voltage. everything is reading 5v until it gets to the led nothing comes out the other side. 0v that is. and i kept going over and going over the schematic and i noticed its not connected to any ground, therefore of course it wont light up  ??? so how do i know it is on for one, and how can i check if i fried m chip on accident?

Offline Trumpkin

  • Supreme Robot
  • *****
  • Posts: 1,177
  • Helpful? 5
Re: 50 dollar robot help
« Reply #1 on: January 10, 2009, 10:01:14 PM »
The LED only lights when you program the microcontroller.
Robots are awesome!

Offline SteedTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: 50 dollar robot help
« Reply #2 on: January 10, 2009, 10:05:04 PM »
The LED only lights when you program the microcontroller.

ah! well that would certainly help things. :) admin ou should mention that in the tutorial, unless i overlooked it.

Offline SteedTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: 50 dollar robot help
« Reply #3 on: January 10, 2009, 10:52:20 PM »
ok im stuck again. i have my circuit all ready to go (i think :P) and i have it connected to my computer so i can program it. i have the compiled code, and i am using the more expensive programmer. everything seams to work fine but when i go to program the robot, 1. the light dosent come on. 2. on my programmer i have a green ligh in front by the usb port, and the other light is green until i try to program it then it stays red. and this is the output for when i try to program it.


Reading FLASH input file.. OK
Setting mode and device parameters.. OK!
Entering programming mode.. OK!
Erasing device.. OK!
Programming FLASH ..      OK!
Reading FLASH ..      FAILED!
Leaving programming mode.. FAILED!

Offline frodo

  • Supreme Robot
  • *****
  • Posts: 329
  • Helpful? 2
  • BOW DOWN TO MY MIGHTY STARE!!
Re: 50 dollar robot help
« Reply #4 on: January 10, 2009, 11:45:40 PM »
hey steed,

i have no idea why it won't work apart from that the .hex compiled file is corrupted and that you will need to debug it.
To debug:

  • Isolate the area of defect
  • Search for any error
  • Fix the error
YOU HAVE JUST DEBUGGED!


another way to do it is:

You should also consider bug prevention:
less code = less to debug

Keep your code short, simple, clean, and avoid "feature creep" like the plague.

Also, use functions so you can isolate different parts of your code. That way you can verify chunks of code as 'bug-less'.
Hope that helped, if not, tell me. Dan
OMG!!!! I AM SUPREME ROBOT!!!

Check out my Web

Offline SteedTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: 50 dollar robot help
« Reply #5 on: January 11, 2009, 04:05:15 AM »
hey steed,

i have no idea why it won't work apart from that the .hex compiled file is corrupted and that you will need to debug it.
To debug:

  • Isolate the area of defect
  • Search for any error
  • Fix the error
YOU HAVE JUST DEBUGGED!


another way to do it is:

You should also consider bug prevention:
less code = less to debug

Keep your code short, simple, clean, and avoid "feature creep" like the plague.

Also, use functions so you can isolate different parts of your code. That way you can verify chunks of code as 'bug-less'.
Hope that helped, if not, tell me. Dan

well, i am using the pre-compiled .hex file that is suppose to hold the servo at 0. and i just set the isp freq. to 125khz and its working fine. thanks

 


Get Your Ad Here