Author Topic: Help! - Sharp IR and Arduino (code attached)  (Read 432 times)

0 Members and 1 Guest are viewing this topic.

Offline scarecrow90Topic starter

  • Jr. Member
  • **
  • Posts: 10
  • Helpful? 0
Help! - Sharp IR and Arduino (code attached)
« on: February 11, 2014, 09:40:10 AM »
   Hey! I have some problems with my source code! Ok first of all to describe my robot: is based on arduino uno and 3 IR sharp rangefinder, 2 static (left-right) and one is placed on a servo. What i need for this robot is to follow any moving objects (like my hand for example), "and if it can to focus on that object and ignore the background" - this is not an must.
  The problem is that my robot wont go straight, only right or left and i cant figure it out how to make both motors to move in same time when my hand will get far away from the central sensor. And 1 more problem, I would like him to keep an certain distance from the object not to collide with it.

     You have my source code attached.

 Please if anyone can help, Ty for your time!
« Last Edit: February 28, 2014, 02:12:12 PM by scarecrow90 »

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,938
  • Helpful? 98
Re: Help! - Sharp IR and Arduino (code attached)
« Reply #1 on: March 03, 2014, 08:16:36 AM »
To get the Bot to drive straight you need wheel sensors that feed-back the wheel speed to the motor control code.

 


Get Your Ad Here