Author Topic: Programming the $50 robot for object avoidance  (Read 3934 times)

0 Members and 1 Guest are viewing this topic.

Offline loboTopic starter

  • Jr. Member
  • **
  • Posts: 21
  • Helpful? 0
Programming the $50 robot for object avoidance
« on: October 29, 2008, 02:26:40 PM »
Hello,
I was wondering if somebody had already made an object avoidance program for the $50 dollar robot using the Sharp GP2Y0A2YK IR Ranger?

I know that admin provides one for the $50 robot but that program is not for object avoidance it sort of just a teaser and it just follows and object. Something like that. Any how i already tried it out .

But I need a simple program for the atmega8 that avoids objects that I can download into the robot and study as well, to further my understanding of C programing for uC.

Please post program.

Thank you for your help in advance.

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: Programming the $50 robot for object avoidance
« Reply #1 on: October 29, 2008, 02:40:05 PM »
just reverse the control structure so instead of turning into the object, it turns away from it

Offline loboTopic starter

  • Jr. Member
  • **
  • Posts: 21
  • Helpful? 0
Re: Programming the $50 robot for object avoidance
« Reply #2 on: October 29, 2008, 02:51:37 PM »
how you mean?

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: Programming the $50 robot for object avoidance
« Reply #3 on: October 29, 2008, 02:55:33 PM »
have it go the opposite way of the side it detects an object on

Offline loboTopic starter

  • Jr. Member
  • **
  • Posts: 21
  • Helpful? 0
Re: Programming the $50 robot for object avoidance
« Reply #4 on: October 30, 2008, 11:42:53 PM »
which file there is the .h the .c the make file?

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: Programming the $50 robot for object avoidance
« Reply #5 on: October 31, 2008, 10:22:22 AM »
header files are for definition, and the c files are for implementation

 

SMF spam blocked by CleanTalk