Showing posts with label arduino robot. Show all posts
Showing posts with label arduino robot. Show all posts

Sunday, January 29, 2012

Tankbot Stage 3 (with video)

I continued work on the tankbot this week.  I wasn't happy with the chassis at all and was thinking of ways I could redo it.  I started looking online for examples when I found a premade chassis from the same company that makes the treads.  It was only 8 bucks, so I ordered it.  I was also having lots of electrical issues.  The motors draw lots of power at stall (2A) and this was stressing the Arduino and wasting battery >:[  I found a replacement set that were a real easy replacement (plug and play pretty much), so I ordered them as well.

Once it all came in, I reluctantly took the old bot apart and got to work.  It took me until 5am to get it done, but here she is:

Hey :]

Side shot.


Ok, so lots to talk about.  Let's start with the last picture (the one with the two circular looking things).  The bot needs to be able to avoid running into things and what you're seeing there is what I use to detect objects.  That is the Parallax Ping))) Ultrasonic Distance Sensor.  I got it a long time ago when I was playing with the Parallax Propellor.  It was very easy to get running with the Arduino (even easier than with the Propellor), so I've been using it.  A couple of weeks ago, I noticed that it would only detect up to 5 1/2 inches away.  This thing should have a range of ~9ft, so that didn't make sense.  I assumed that I'd just broke it somehow and since I've had it for so long, I'll just make sure that it's always at the very front of the bot.  The other night while I was toying with making a plastic front cover, I realized that when there was foam in between the Tx and Rx, it worked like it should.  I think that I'm getting some kind of interference between the two.  This was a nice and simple fix and it is now back to detecting its normal range.

My eventual plan is to mount it on a servo, so I can rotate the servo around instead of the whole bot.

Now let's go to the picture above it.  This is the closeup of the side view.  You can see my Tamiya Tank Treads, dual gearbox and universal plate set (all from Tamiya).  I did replace the motors that came with the gearbox with the Solarbotics RM3.  These motors use less power at stall and don't put nearly as much of a strain on the system.  This means longer run times :]

I also added a spring on the middle of the bot.  It can get bumpy, so hopefully the spring can take some of the bumps instead of the whole top.  You also can't see it in that shot, but I made some plastic spacers for the front of the bot out of hand moldable plastic.  They provide a full stop and also give the front somewhere to rest.  The rear rests directly on top of the gearbox.  The base has lots of holes in it, so the motors can still breath through it all.

That's it for the major parts lists.  The Arduino does all of the grunt work.  When the robot first gets power, it won't start moving until you press the start button.  You then have 3 seconds to get out of the way before it goes.  Since it just avoids obstacles and nothing else, there's nothing real fancy to it right now.  I did order a GPS chip last week (for a separate project) that I'm going to toy around with using this bot before I put it in it's own project.  It'd be neat if I sent the bot waypoints and it went there without hitting anything.

Anyway, it's 0620 and I need to sleep.  Last but not least, here's a video of the bot in action.  My dogs are not a big fan of it, so you'll have to excuse their barking.

Until next time ~

http://www.youtube.com/watch?v=JNOn3MLzw2g


Monday, January 23, 2012

Tankbot Stage 2


I need to switch the motor gearing to high torque instead of high speed.  Also, notice the plastic sides that I made :]  Besides the motors being underpowered currently due to the wrong gearing, he works well.  My rangefinder is having some issues where it won't detect anything further than 6 inches.  I don't feel like spending money on a new one right now and that's enough distance for me to stop the robot in time, so it'll do for now.

I've found that the best way to mold the plastic while it's warm is to use your hands for the basic shape.  Then when it gets to ~100 degrees or so, start using scissors to get what you really want.  That's how I was able to make some cleaner edges.  I still want to experiment with having a mold and pressing the plastic into it, but that's for the next monster.

So after I switch the gearing (which means taking the whole robot apart, then taking the whole motor apart, redoing the gearing and putting everything back together), I'm going to order an onboard compass and integrate that.  After that, GPS.

This is fun.

Saturday, January 07, 2012

Another Robot Dealie


I'm having too much fun with Arduino.

This little dude is pretty simplistic.  2 continuous rotation servos in the back control the rear wheels independently.  Another standard servo rotates the Ping sensor on top to check for collisions.  If an object is found in front, he'll look around for another way out.  If there's no way out, he'll back up and check again.  I also added a bright white LED up front for fun.

I built it using one of those Radio Shack project enclosures and a bunch of Erector Set parts.  I'll get some video of him driving around soon.

The catbot would've been fun, but I had a hard time finding an electric water gun that didn't leak.  I didn't want to risk burning out my Arduino, so I moved onto the next project.  I'll probably use this as a base for my projects for a while.  I also ordered some tank tracks and a dual-motor gearbox, so the next robot should be a bit quicker than this little guy :]