SprintBot
Hi all, new to the group. Here's my first robot project ever - "SprintBot"
I do laser engraving and cutting as a business, so the chassis of the bot was fairly straight forward for me. I found the original idea and drawings here http://www.instructables.com/id/How-to-Make-an-OAWR-Obstacle-Avoiding-Walking-Rob/?newComment=true#comments and redid them to suit my needs.
As of tonight it walks and the servo points and the Parallax Ping triggers, but I get no readings from it :-( so... more work to be done.
Here's the code I used to debug the sensor (gleamed from this site) -
main:
LOW PORTC 0
HIGH PORTC 0
PAUSE 1
LOW PORTC 0
LET DIRSC = %00000000
PULSIN 0, 1, W0
sertxd ("The value is ",#W0,cr,lf)
pause 500 ‘ short delay
goto main ‘ jump back to the start
just added the sertxd stuff from the manual.
Any ideas on the ping??





@ Thu, 2008-07-10 02:41
Very cool looking robot. Add
@ Thu, 2008-07-10 02:47
I took a look at the ping
@ Thu, 2008-07-10 02:49
Slick looking bot! I had the
@ Thu, 2008-07-10 03:02
V+ is right at 5.9dc and the
@ Thu, 2008-07-10 03:36
disconnect your servo and
disconnect your servo and see if readings change, also try move your "sertxd ("The value is ",#W0,cr,lf)" i found that dit actually makes a difference where i place the debug output command. hmm what else...you could try lengthen the 500 delay.
also give this a try, omit the last low:
LOW PORTC 0
HIGH PORTC 0
PAUSE 1
LOW PORTC 0LET DIRSC = %00000000
PULSIN 0, 1, W0
@ Thu, 2008-07-10 16:23
OK, that worked - now I'm
OK, that worked - now I'm getting readings. you were right, gotta remove the last "low portc 0" and put the "sertxd" after everything happens.
Very cool bot! Tamiya
Very cool bot! Tamiya actually sells a similar bot
http://www2.gpmd.com/imagel/t/ltamx0166.jpg
Though only sound activated no intelligence other than that. Retails for $32
@ Thu, 2008-07-10 16:29
Now that you've got it
Now that you've got it working, you should post a vid for us to see!
It looks awesome, I expect to see some rockin' bots coming our way from you!
@ Thu, 2008-07-10 16:53
Well.... I don't have the
Well.... I don't have the whole thing working :-)
I have the ping working independantly. Using code I can slew the servo, take a reaning and it's quite accurate. The difficulity is when the main motors are running there's a nasty timing issue that I haven't traced down yet.
Secondly, I may have to implement an encoder for each motor - the legs get out of sync and the bot vectors instead of walking in a straight line until they sync up again. If I leave it "as is", I'll have to rename it DrunkBot.
Anyone have some working ping code they could post (nav code, with motors running)?
Here's some quick sloppy code for test of servo slew and ping function (remember to press F8 to get a terminal window).
+++
main:
servo 0,150
pause 500
LOW PORTC 0
HIGH PORTC 0
PAUSE 1
LET DIRSC = %00000000
PULSIN 0, 1, W0
sertxd ("The center value is ",#W0,cr,lf)
pause 500 ‘ short delay
servo 0,100
pause 500
LOW PORTC 0
HIGH PORTC 0
PAUSE 1
LOW PORTC 0
LET DIRSC = %00000000
PULSIN 0, 1, W0
sertxd ("The right value is ",#W0,cr,lf)
pause 500 ‘ short delay
servo 0,200
pause 500
LOW PORTC 0
HIGH PORTC 0
PAUSE 1
LOW PORTC 0
LET DIRSC = %00000000
PULSIN 0, 1, W0
sertxd ("The left value is ",#W0,cr,lf)
pause 500 ‘ short delay
goto main
+++
@ Thu, 2008-07-10 17:16
Do you have it all on the
@ Thu, 2008-07-10 18:16
I'll give that a try - very
@ Thu, 2008-07-10 17:33
Not sure if this will help,
Not sure if this will help, but somebody recently wrote a guide on here for getting the Ping to work with the Picaxe.
http://letsmakerobots.com/node/1276
@ Thu, 2008-07-10 22:27
Lovin' it!
Lovin' the look of the bot.
Laser cutting, eh? What format do I need to send my drawings to you for that?
@ Fri, 2008-07-11 00:31
Well, I have an Epilog Helix
Well, I have an Epilog Helix with a 24"X18" bed size, so I can cut at any one go up to that size. Plexi (perspex) is routinely sold in 12" X 12" and 24" X 12" as standard. CAD drawings work fine, but I convert them so they have contiguous lines with no gaps. EPS works well also and I rarely have to touch them. Corel Draw vector files are easy for me to work with as well.
I got burned paying $5 for the ping servo bracket, but never again - I think I can bang up a life time supply in plexi (perspex) in about five minutes of cutting time - think I'll get started on that.
@ Fri, 2008-07-11 10:11
You're on a goldmine
Pretty sure you have about 10 customers right here.
Is this an expensive process, comercially? Do you have "Mates Rates" for people who give you free electronics advice?
:-)
@ Fri, 2008-07-11 12:56
As long as the art work is
As long as the art work is ready to cut, it wouldn't be expensive at all for me to do it. No worries on the mates rates, happy to help out.
@ Fri, 2008-07-11 13:09
Happy Days!
Well, thank yo very much. I'd be happy to cover your materials, postage and a few beers at Christmas.
Could you recommend a piece of freeware which is able to produce suitable drawings?
@ Fri, 2008-07-11 15:17
Sure, Alibre make a nice
Sure, Alibre make a nice package that's free for the hobbyist -
http://www.alibre.com/promos/online/easy3dcad_c.asp?ovchn=GGL&ovcpn=CAD+Design&ovcrn=&ovtac=CTX&GCID=S17431x001&KEYWORD=free%20cad&gclid=COfu2viCuJQCFQOfxgodjiKHSw
@ Fri, 2008-07-11 15:33
Awesome! I'm making the same
Awesome! I'm making the same offer, I'd love to cover the cost of everything and throw in some extra for beers, as long as you don't go and buy something gross like Bud Light or any Miller products.
I just downloaded the program, now let's see if I can learn it!
@ Fri, 2008-07-11 17:52
Beers
How about you start a seperate off-topic forum listing good beer and "evil empire beer (Miller)"?
@ Fri, 2008-07-11 18:40
I personally go for Guiness
@ Fri, 2008-07-11 18:50
Only the best
@ Sat, 2008-07-12 06:51
Real men brew their own
@ Sat, 2008-07-12 06:59
I've been wanting to for a
@ Fri, 2008-07-11 21:18
Very cool! Could you add a
Very cool!
Could you add a picture to show, how you've put your project board together? I'd like to see that, if I may.
/Dan.
@ Fri, 2008-07-11 21:19
Dan, no problem. I'll take a
@ Fri, 2008-07-11 23:17
Sounds great! I'll look
Sounds great! I'll look foreward to it.
No specific questions just yet - but if that happens, I'll know where to ask ;-)
@ Sat, 2008-07-12 04:21
Dan, here's the pic -
Dan, here's the pic -
@ Wed, 2008-07-16 22:03
hi i just wanna ask what do
hi
i just wanna ask what do i need with SRF05 sensor,do i need some specific electrical equipments ?
@ Thu, 2008-07-17 20:33
You should ask that at the