Society of Robots - Robot Forum

General Misc => Robot Videos => Topic started by: offy on March 07, 2009, 11:02:33 PM

Title: My first wall avoid robot.
Post by: offy on March 07, 2009, 11:02:33 PM
This is my first robot ever. Thank you SoR Forum for all the help with everything.

Specs:
Roboduino
2x HS-311 servo's modified
IR Range Finder
6V battery pack
Chassis (Forgot the name)

[youtube]xSBTHuod440[/youtube]
Title: Re: My first wall avoid robot.
Post by: superchiku on March 07, 2009, 11:16:45 PM
nice work...sum improvement are needed like the avoiding part it jst backs up and turns 90 derees to the left ...chnage than code see it got stuckwhen it was sorrounded at 4 places..make it turn until u find no obstacle not 90 defgrees alwayz...
Title: Re: My first wall avoid robot.
Post by: offy on March 07, 2009, 11:51:31 PM
I have been working on that. Thanks for the comment.
Title: Re: My first wall avoid robot.
Post by: Ro-Bot-X on March 08, 2009, 08:25:35 AM
Nice! I'm glad you succeded with the construction and coding!

Some sugestions:
- if there is an obstacle in front of the bot, don't back up. Start turning like 5 degrees (turn for 10 ms or so) then check the sensor. Turn a bit more, just to be sure the side of the bot won't hit the obstacle, then drive straight.
- if you keep turning left until you reach something like 90 degrees, turn 90 degrees back (to the right) and start turning to the right a few degrees at a time to find an opening on the right side of the bot. You can continue turning this time for more thatn 90 degrees.
- add a third servo, unmodified, mount the sensor on it and scan for openings, then after you found it turn the robot that way and escape.
- after you have the scanning sensor, try to have the bot drive using a map. Use cereal boxes, books, furniture and build a small room, have the robot start in a fixed position, then go and map the room. To measure distance traveled, make a program that will drive the servos forward for 10 pulses and stop. Measure the distance, divide by 10 and you have the traveled distance per servo pulse. Now you can measure distance (not very acurate, but good enough for experimenting). Change the program so the robot turns in place, repeat the experiment and see how many degrees the robot turns per pulse. Create a map of the place and have the robot drive and find an object that is not stored on the map, then return to the base. This is good for Search and Rescue. If you attach a piece of velcro to the back of the robot, use a small teddy bear as the foreign object, have the robot turn 180 degrees when it finds it, then drive backwards to touch the teddy bear and grab it with the velcro and drag it to the base.

Good luck!
Title: Re: My first wall avoid robot.
Post by: superchiku on March 08, 2009, 08:33:27 AM
robot x jst elaborated my suggestion :D
Title: Re: My first wall avoid robot.
Post by: korforfan on March 08, 2009, 09:35:54 AM
nice one!  ;D
Title: Re: My first wall avoid robot.
Post by: offy on March 08, 2009, 09:46:43 AM
Thanks for the suggestions. I was going to mount the IR Range finder to a servo but I didn't have any left. Yesterday I ordered 6 servos. Also I will start mapping places for it to go. Thanks again.
Title: Re: My first wall avoid robot.
Post by: superchiku on March 08, 2009, 01:09:27 PM
whoa 6 servos..that will be pretty good... :D hope u use them well
Title: Re: My first wall avoid robot.
Post by: offy on March 08, 2009, 01:56:33 PM
Ya, I am having 1 for the front IR Range Finder. Might put a range finder on back so thats for the other one, and than 4 back ups.
Title: Re: My first wall avoid robot.
Post by: superchiku on March 09, 2009, 11:52:17 AM
4 backup's man thats even more than required
Title: Re: My first wall avoid robot.
Post by: offy on March 10, 2009, 07:36:41 PM
You can never have to many spare parts.