Society of Robots - Robot Forum

Software => Software => Topic started by: lobo on October 29, 2008, 02:26:40 PM

Title: Programming the $50 robot for object avoidance
Post by: lobo 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.
Title: Re: Programming the $50 robot for object avoidance
Post by: pomprocker 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
Title: Re: Programming the $50 robot for object avoidance
Post by: lobo on October 29, 2008, 02:51:37 PM
how you mean?
Title: Re: Programming the $50 robot for object avoidance
Post by: pomprocker on October 29, 2008, 02:55:33 PM
have it go the opposite way of the side it detects an object on
Title: Re: Programming the $50 robot for object avoidance
Post by: lobo on October 30, 2008, 11:42:53 PM
which file there is the .h the .c the make file?
Title: Re: Programming the $50 robot for object avoidance
Post by: pomprocker on October 31, 2008, 10:22:22 AM
header files are for definition, and the c files are for implementation