3pi Spinning Line Follower example

The place to discuss the Pololu 3pi, m3pi, and Zumo robots and share your code.

3pi Spinning Line Follower example

Postby Byon » Thu Feb 26, 2009 4:45 pm

I've just uploaded a YouTube video of my 3pi robot I call Fourtophi (4^phi is about 3pi, don't you see) running my SpinLineFollow code. It is basically a line follower that is constant spinning in circles, while it is following a black line. It is not a very fast line follower, but won the "Best in Show" award at our last LVBots Challenge robot competition.



If there is interest, I'd be happy to clean up my code and share it. It's only about a page's worth.

Byon
Byon
 
Posts: 2
Joined: Thu Feb 26, 2009 4:34 pm

Re: 3pi Spinning Line Follower example

Postby Ben » Thu Feb 26, 2009 11:36 pm

Hello, Byon.

Thank you for sharing your project with us; that's a very cool variant on line following! I would definitely be interested in seeing the code.

- Ben
User avatar
Ben
Pololu Employee
 
Posts: 3442
Joined: Mon Aug 28, 2006 1:05 pm
Location: Las Vegas, NV

Re: 3pi Spinning Line Follower example

Postby Byon » Mon Mar 02, 2009 10:31 pm

OK, Here it is. I just call this after the normal sensor calibration code.

Byon

Code: Select all Expand
Byon
 
Posts: 2
Joined: Thu Feb 26, 2009 4:34 pm

Re: 3pi Spinning Line Follower example

Postby Ben » Wed Mar 04, 2009 10:15 am

Thanks for the code, Byon! It's continues to amaze me that such complex behaviors can come from such small, straight-forward programs.

- Ben
User avatar
Ben
Pololu Employee
 
Posts: 3442
Joined: Mon Aug 28, 2006 1:05 pm
Location: Las Vegas, NV

Re: 3pi Spinning Line Follower example

Postby Andre Luis » Thu Mar 19, 2009 7:07 pm

Hello,
I´d like know how many library used in the program, because I can´t compiler this program in my 3PI... thank you and sorry because my english is not very well...
Andre Luis
 
Posts: 10
Joined: Thu Mar 19, 2009 1:48 pm

Re: 3pi Spinning Line Follower example

Postby Ben » Sat Mar 21, 2009 7:02 pm

Hello.

You should only need the Pololu AVR library. You can download the library and find installation instructions in its user's guide. Good luck getting it working. If you continue to have problems, please post the errors you're getting.

- Ben
User avatar
Ben
Pololu Employee
 
Posts: 3442
Joined: Mon Aug 28, 2006 1:05 pm
Location: Las Vegas, NV

Re: 3pi Spinning Line Follower example

Postby epokh » Mon Mar 23, 2009 2:05 pm

In the attachment there's the code and makefile to compile and program
Untar the file and do make or make program from the bash.
Cheers.
Attachments
4picode.tar
Makefile for 4pi
(100 KiB) Downloaded 622 times
epokh
 
Posts: 56
Joined: Wed Sep 10, 2008 12:09 am

Re: 3pi Spinning Line Follower example

Postby Andre Luis » Tue Mar 24, 2009 1:15 pm

Hello!
Thank you everybody for the answers! I can compile the program!
Thank you!
Obrigado!

Andre Luis
Andre Luis
 
Posts: 10
Joined: Thu Mar 19, 2009 1:48 pm

Re: 3pi Spinning Line Follower example

Postby shitizgoel » Thu Apr 18, 2013 12:43 pm

Could you please write me up a code that makes the 3pi bot to follow a 2.5cm line
and take turns as in this video http://www.youtube.com/watch?v=W49daVbkZ90
PLEASE PLEASE for god sake help me..
:-( :-( :roll:
please send me the code on shitizgoel@yahoo.co.in
shitizgoel
 
Posts: 8
Joined: Mon Apr 01, 2013 2:25 am


Return to 3pi, m3pi, and Zumo Robots

Who is online

Users browsing this forum: No registered users and 4 guests