Page 1 of 1

Programming (basic/flowchart) Buggy.

Posted: Tue Oct 28, 2008 7:27 pm
by _Imwashingmypirate
Hey, I have no idea why I am even bothering to post this, but I am to program a buggy to follow a white line on a black background. It has an LDR and an RDR. I have no idea how to do it and we don't get help it's kinda like problem solving. We also have to be able to program it to know if it has gone too far away from the line and to find it's way back. Any help please, I'd much appreciate it.

Re: Programming (basic/flowchart) Buggy.

Posted: Tue Oct 28, 2008 7:48 pm
by _asbestosman
What do you mean by LDR and RDR?

One possible way to find a path/line after leaving it is to zig-zag in wider and wider paths until hitting it. Another possibility is to drive in a spiral (but keep track of which way you need to head when you find the line again).

Re: Programming (basic/flowchart) Buggy.

Posted: Tue Oct 28, 2008 8:01 pm
by _Imwashingmypirate
Left and right light dependant resistors.

Re: Programming (basic/flowchart) Buggy.

Posted: Wed Oct 29, 2008 11:44 pm
by _Imwashingmypirate
So, I am guessing I am outta luck for help on this one then. I did try to post a copy of the lecture stuff, but for some odd reason, I can't open the PDFs dang.

Re: Programming (basic/flowchart) Buggy.

Posted: Thu Oct 30, 2008 2:36 am
by _asbestosman
I'm not sure what kind of help I can offer other than suggestions for algorithms. Also, usually the professor will give hints about what sort of thing he's looking for.

Re: Programming (basic/flowchart) Buggy.

Posted: Fri Oct 31, 2008 8:57 am
by _Imwashingmypirate
I worked it out in labs yesterday. When it drove and followed the white line I felt I had acomplished something great and my sense of achievement was overwhelming. I was super happy. :D