View Single Post
  #4   Spotlight this post!  
Unread 19-03-2014, 15:49
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Autonomous Ideas/Help

Quote:
Originally Posted by ashb1025 View Post
Hi, I was thinking about making a program that makes our robot follow people or make it follow a laser pointer but I have no idea where to start and could use some help.
In our outreach LEGO Mindstorms camps we have an activity where we use a LEGO Mindstorms Ultrasonic Sensor and we program the robot to follow a person. The general algorithm is this:

(1) If we see something within visual range, but it's farther away than our minimum following distance, move forward.
(2) If we don't see something, turn the robot left and right (the ultrasonic sensor is mounted in a fixed orientation on the robot) an increasing amount until we see an object.

What will happen is someone will walk in front of the robot, and the robot will follow the person. If the person turns, the robot will "lose contact" with the person, and will begin scanning for the person. Once it finds the person again, it will continue to follow the person until the person is out of the range of the sensor, and then it will re-acquire the person. Unfortunately the Ultrasonic Sensors don't do any phase shifting of the signal so it can determine ownership of the reflected signal, so using 2 ultrasonic sensors doesn't give you 3D vision (and thus the ability to detect if the person is veering left or right) - using 2 ultrasonic sensors just confuses your sensors.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418