Programming (basic/flowchart) Buggy.
-
- _Emeritus
- Posts: 2290
- Joined: Thu Nov 01, 2007 10:45 pm
Programming (basic/flowchart) Buggy.
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.
-
- _Emeritus
- Posts: 6215
- Joined: Tue Nov 07, 2006 10:32 pm
Re: Programming (basic/flowchart) Buggy.
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).
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
eritis sicut dii
I support NCMO
-
- _Emeritus
- Posts: 2290
- Joined: Thu Nov 01, 2007 10:45 pm
Re: Programming (basic/flowchart) Buggy.
Left and right light dependant resistors.
-
- _Emeritus
- Posts: 2290
- Joined: Thu Nov 01, 2007 10:45 pm
Re: Programming (basic/flowchart) Buggy.
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.
-
- _Emeritus
- Posts: 6215
- Joined: Tue Nov 07, 2006 10:32 pm
Re: Programming (basic/flowchart) Buggy.
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
eritis sicut dii
I support NCMO
-
- _Emeritus
- Posts: 2290
- Joined: Thu Nov 01, 2007 10:45 pm
Re: Programming (basic/flowchart) Buggy.
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