Programming (basic/flowchart) Buggy.

The Off-Topic forum for anything non-LDS related, such as sports or politics. Rated PG through PG-13.
Post Reply
_Imwashingmypirate
_Emeritus
Posts: 2290
Joined: Thu Nov 01, 2007 10:45 pm

Programming (basic/flowchart) Buggy.

Post 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.
_asbestosman
_Emeritus
Posts: 6215
Joined: Tue Nov 07, 2006 10:32 pm

Re: Programming (basic/flowchart) Buggy.

Post 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).
That's General Leo. He could be my friend if he weren't my enemy.
eritis sicut dii
I support NCMO
_Imwashingmypirate
_Emeritus
Posts: 2290
Joined: Thu Nov 01, 2007 10:45 pm

Re: Programming (basic/flowchart) Buggy.

Post by _Imwashingmypirate »

Left and right light dependant resistors.
_Imwashingmypirate
_Emeritus
Posts: 2290
Joined: Thu Nov 01, 2007 10:45 pm

Re: Programming (basic/flowchart) Buggy.

Post 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.
_asbestosman
_Emeritus
Posts: 6215
Joined: Tue Nov 07, 2006 10:32 pm

Re: Programming (basic/flowchart) Buggy.

Post 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.
That's General Leo. He could be my friend if he weren't my enemy.
eritis sicut dii
I support NCMO
_Imwashingmypirate
_Emeritus
Posts: 2290
Joined: Thu Nov 01, 2007 10:45 pm

Re: Programming (basic/flowchart) Buggy.

Post 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
Post Reply