Society of Robots - Robot Forum

Software => Software => Topic started by: hemanth on January 02, 2010, 05:50:56 AM

Title: Help with programming...
Post by: hemanth on January 02, 2010, 05:50:56 AM
Im new to robotics and programming. I just want a code for a simple 4 wheeled bot to either go forward or turn(by letting wheels on the Left hand side spin in a direction and the other 2 in the reverse direction). can anyone generate a code for me<any board is fine, I still havent purchased 1!> :) :) :) :) :) :)
Title: Re: Help with programming...
Post by: Joker94 on January 02, 2010, 05:55:51 AM
any sensors or buttons, what do you want to activate the turn.

when i know this i'll give it a shot.

Joker94
Title: Re: Help with programming...
Post by: little-c on January 02, 2010, 10:16:49 AM
$50 robot tutorial?

turn it into a 2 wheeled 1 castor robot and you can use simple diferential drive.

then take the mcu and code from the $50 robot tutorial.
Title: Re: Help with programming...
Post by: Pratheek on January 03, 2010, 10:26:10 AM
I would suggest buying a programable robot kit. It would come with the board plus the code.
You will be able to more than just going forward and turning.
Title: Re: Help with programming...
Post by: hemanth on January 08, 2010, 05:36:42 AM
any sensors or buttons, what do you want to activate the turn.

when i know this i'll give it a shot.

Joker94

Only 1 switch for keeping the entire bot on or off, no sensors :)
Title: Re: Help with programming...
Post by: Joker94 on January 08, 2010, 06:03:40 AM
Only 1 switch for keeping the entire bot on or off, no sensors :)

what will cause the robot to turn? or you just want it to be a sequence.

will you use servos or motors?

Joker94
Title: Re: Help with programming...
Post by: hemanth on January 10, 2010, 02:35:51 AM
servos...but every action is done manually(no sensing obstacles and turning, etc)
Title: Re: Help with programming...
Post by: Joker94 on January 10, 2010, 03:01:43 AM
any sensors or buttons, what do you want to activate the turn.

when i know this i'll give it a shot.

Joker94

Only 1 switch for keeping the entire bot on or off, no sensors :)

I mean what do you want to make it turn.

A different switch?(each time you hit the switch it turns 90 degrees right?)

As you just said you wanted a swith to turn the bot on and off.
Title: Re: Help with programming...
Post by: rgcustodio on January 10, 2010, 03:55:34 AM
This turning behavior is akin to a tank (or any tracked vehicle).
Find the Surveyor C source code from their website, it might help you understand how it's done.
http://www.surveyor.com/cgi-bin/robot_journal.cgi/2006/08/ (http://www.surveyor.com/cgi-bin/robot_journal.cgi/2006/08/)

My Surveyor makes its turns like you mentioned.

Im new to robotics and programming. I just want a code for a simple 4 wheeled bot to either go forward or turn(by letting wheels on the Left hand side spin in a direction and the other 2 in the reverse direction). can anyone generate a code for me<any board is fine, I still havent purchased 1!> :) :) :) :) :) :)