Author Topic: Help with programming...  (Read 1709 times)

0 Members and 1 Guest are viewing this topic.

Offline hemanthTopic starter

  • Jr. Member
  • **
  • Posts: 20
  • Helpful? 0
Help with programming...
« 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!> :) :) :) :) :) :)

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: Help with programming...
« Reply #1 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

Offline little-c

  • Robot Overlord
  • ****
  • Posts: 186
  • Helpful? 1
Re: Help with programming...
« Reply #2 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.

Offline Pratheek

  • Contest Winner
  • Robot Overlord
  • ****
  • Posts: 125
  • Helpful? 3
    • Probots
Re: Help with programming...
« Reply #3 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.

Offline hemanthTopic starter

  • Jr. Member
  • **
  • Posts: 20
  • Helpful? 0
Re: Help with programming...
« Reply #4 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 :)

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: Help with programming...
« Reply #5 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

Offline hemanthTopic starter

  • Jr. Member
  • **
  • Posts: 20
  • Helpful? 0
Re: Help with programming...
« Reply #6 on: January 10, 2010, 02:35:51 AM »
servos...but every action is done manually(no sensing obstacles and turning, etc)

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: Help with programming...
« Reply #7 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.

Offline rgcustodio

  • Robot Overlord
  • ****
  • Posts: 217
  • Helpful? 0
  • Use "Search" and ye might find answers!
Re: Help with programming...
« Reply #8 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/

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!> :) :) :) :) :) :)
The best thing one can do when it's raining is to let it rain. - H. W. Longfellow

understanding is the path to enlightenment

 


data_list