Putting robotics at your service™

Free shipping on orders over $200

Autonomous BRAT project...

Print view Share :
Previous topicNext topic

Page 1 of 1 [ 13 posts ]

User avatar
Guru ( offline )
Posts: 9257
Posted: 2008-04-02 10:43 
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



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 2008-04-04 16:17, edited 2 times in total.

User avatar
Guru ( offline )
Posts: 9257
Posted: 2008-04-03 11:20 
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...


User avatar
Guru ( offline )
Posts: 2446
Posted: 2008-04-03 11:35 
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.
Built in Canada with Lynxmotion Parts!


Veteran ( offline )
Posts: 120
Posted: 2008-04-03 13:25 
 Post subject: Great
:!: Jim's at it for sure... :!:

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

_________________
NEVER underestimate a guy with a Robot !


User avatar
Guru ( offline )
Posts: 9257
Posted: 2008-04-03 13:35 
 Post subject: Re: Great
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...


User avatar
Guru ( offline )
Posts: 9257
Posted: 2008-04-03 15:46 
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...


User avatar
Expert ( offline )
Posts: 536
Posted: 2008-04-03 16:25 
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


User avatar
Guru ( offline )
Posts: 9257
Posted: 2008-04-03 17:50 
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...


Expert ( offline )
Posts: 644
Posted: 2008-04-03 17:52 
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.


User avatar
Guru ( offline )
Posts: 2956
Posted: 2008-04-06 19:13 
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 [b][i]simple[/i][/b] things that always confound me..
Check out my [url=http://www.hybotics.me]blog[/url] now!
Open your mind, Read, Learn, Think, Apply..


User avatar
Guru ( offline )
Posts: 2956
Posted: 2008-04-06 19:18 
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 [b][i]simple[/i][/b] things that always confound me..
Check out my [url=http://www.hybotics.me]blog[/url] now!
Open your mind, Read, Learn, Think, Apply..


User avatar
Guru ( offline )
Posts: 4913
Posted: 2008-04-06 21:42 
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


User avatar
Novice ( offline )
Posts: 51
Posted: 2010-02-14 08:32 
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.


 

All times are UTC - 5 hours [ DST ]. It is currently 2014-10-25 20:17
Feedback Form
Feedback Form