Lynxmotion Tech Support

www.lynxmotion.com
Join the Accelerator Program
It is currently Mon Apr 21, 2014 5:36 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Wed Apr 02, 2008 10:43 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 11:46 am
Posts: 9325
Location: my quiet place
Here is the temporary home for the Autonomous BRAT information while we work on the full tutorial. EDIT: I'm no longer updating this forum thread with updates. We are adding content directly to the tutorial.
http://www.lynxmotion.com/images/html/build130.htm

Image

Here is the code I'm using to make the BRAT autonomous. It uses a GP2D12 attached pointing forward. There is also a timer going to tell the guy to take a rest every so often. It whistles a little tune when resting. The speaker is used to provide audible feedback between steps indicating if the GP2D12 has detected something. The higher the pitch, the closer an obstacle is. If an obstacle is detected the robot will take one step back and turn two steps to the left, then start walking forward again. The LEDs on the Bot Board II also light indication what behavior the bot is doing. This code is very easy to edit. There are no timing issues as HSERVO and some extra programming by Nathan at Basic Micro runs an SSC-32 emulation in the background. So any sensor can be added in the main control loop. There are 11 sequences already in the program (from the SEQ tutorial) Other sensors we will be adding are an accelerometer so the robot will be able to get up from laying on it's front, or back automatically.

This is the link to the IDE you need. Pro 8.0.1.7
http://www.basicmicro.com/downloads/software/BasicAtomProSetup_8017.exe

File for finding servo offsets and displaying them in the terminal window.
http://www.lynxmotion.com/images/files/bratosf.bas

BRAT autonomous program, can be edited easily for different sensors and behaviors.
http://www.lynxmotion.com/images/files/irabrat3.bas

Here is a video of the BRAT avoiding an obstacle.
http://www.lynxmotion.com/images/video/avoid01.mpg

Taking a break...
http://www.lynxmotion.com/images/video/break01.mpg

Walking into the sunset. :)
http://www.lynxmotion.com/images/video/walkaway.mpg

Check it out! 8)

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Last edited by Robot Dude on Fri Apr 04, 2008 4:17 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 11:20 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 11:46 am
Posts: 9325
Location: my quiet place
I updated the code and added some videos. Enjoy...

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 11:35 am 
Offline
Robot Guru
User avatar

Joined: Sat May 27, 2006 10:19 am
Posts: 2509
Location: Ontario, Canada
Very Nice. Since the new Year I have been planning to build and program an autonmous BRAT over the summer. This should give me a good start.

_________________
Joe A.
Image Built in Canada with Lynxmotion Parts!
Image


Top
 Profile  
 
 Post subject: Great
PostPosted: Thu Apr 03, 2008 1:25 pm 
Offline
Roboteer

Joined: Fri Jan 11, 2008 12:52 am
Posts: 121
:!: Jim's at it for sure... :!:

:D 8) GREAT JOB !!!! 8) :D

_________________
NEVER underestimate a guy with a Robot !


Top
 Profile  
 
 Post subject: Re: Great
PostPosted: Thu Apr 03, 2008 1:35 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 11:46 am
Posts: 9325
Location: my quiet place
sheldon wrote:
:!: Jim's at it for sure... :!:

:D 8) GREAT JOB !!!! 8) :D


I'm a little rusty, but it's coming back.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 3:46 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 11:46 am
Posts: 9325
Location: my quiet place
James is adding some functionality. We added one port from a 2 axis accelerometer so if the guy is turned on when laying on its front or back it will get up. It will also get up if it falls over. Just adding a jumper to the VS line by the AX0 (Pro pin 16) will allow the bot to know when the battery is getting low and beep a tone. This is too much fun! 8)

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 4:25 pm 
Offline
Salmon of Retribution
User avatar

Joined: Fri Jul 28, 2006 6:41 pm
Posts: 540
Location: The Plane of Suck.
Robot Dude wrote:
James is adding some functionality. We added one port from a 2 axis accelerometer so if the guy is turned on when laying on its front or back it will get up. It will also get up if it falls over. Just adding a jumper to the VS line by the AX0 (Pro pin 16) will allow the bot to know when the battery is getting low and beep a tone. This is too much fun! 8)


Done 8)

If you're lucky, I'll get you guys a video of it working :wink:

_________________
Curiously enough, the only thing that went through the mind
of the bowl of petunias as it fell was "Oh no, not again."

James "Don't call me Jim" Frye
Lynxmotion, Inc
http://www.lynxmotion.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 5:50 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 11:46 am
Posts: 9325
Location: my quiet place
Here is the beginnings of the tutorial. We will be adding much more content, but it's a good start.
http://www.lynxmotion.com/images/html/build130.htm

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 5:52 pm 
Offline
Roboteer

Joined: Sat Mar 03, 2007 10:04 pm
Posts: 651
Location: USA
Cool project. I'm glad to see you are using the Pro. There should be some useful code there even for people not building brats.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 06, 2008 7:13 pm 
Offline
Robot Guru
User avatar

Joined: Mon Aug 28, 2006 12:26 am
Posts: 2914
Location: Directly above the center of the Earth
I built my BRAT a little different, but it should work with the existing code. I have the U channel with the opening facing outward instead of up, and I used the sensor mount to mount the Multi-Purpose Sensor Housing to mount the GP2D12 IR Sensor to the U channel. This allows easily switching to a PING if one wants to do that. This is also the build configuration needed for adding arms.

8-Dale

_________________
I can usually handle complexity. It's the simple things that always confound me..
Open your mind, Read, Learn, Think, Apply..


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 06, 2008 7:18 pm 
Offline
Robot Guru
User avatar

Joined: Mon Aug 28, 2006 12:26 am
Posts: 2914
Location: Directly above the center of the Earth
On the tutorial, figure 11 is the same as figure 9, which I don't think is what you want.

8-Dale

_________________
I can usually handle complexity. It's the simple things that always confound me..
Open your mind, Read, Learn, Think, Apply..


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 06, 2008 9:42 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 2:42 pm
Posts: 4743
I built my brat with the U-channel in the same direction as the tutorial. On the front of it I mounted a multi-purpose bracket and a servo and then mounted a multi-purpose sensor housing(or a special purpose bracket for an SRF10), that I had a SRF08 mounted on my brat. Currently it has been moved to the rover and I have an SRF10 that I will put on it...

So maybe I will play with Jim's code and add some panning into the code.

Kurt


Top
 Profile  
 
PostPosted: Sun Feb 14, 2010 8:32 am 
Offline
Roboteer
User avatar

Joined: Fri Feb 05, 2010 1:43 am
Posts: 51
Location: Nelson NewZealand
would love to see that kurte, I admire your work in this area.

_________________
People yearn after this robotic dream, but you can't strip your life of all meaning, emotion and feeling and expect to function.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
© 2014 RobotShop Distribution inc. All rights reserved.
Powered by phpBB® Forum Software © phpBB Group