The FollowMeBot follows the user based on the color of his or her shirt. The device hosts a webcam on a servo to find the object and orient the robot. The color is chosen through the user interface with push buttons. Currently, the MATLAB code supports red and green detection. The purpose of FollowMeBot is to be able to follow the user in order to be helpful for daily tasks.
Dependencies: Rectangle Servo TextLCD mbed
Fork of FollowMeBot by
Diff: iRobot/iRobot.h
- Revision:
- 3:de12b39ad805
- Parent:
- 1:6c399fc35deb
diff -r 0b362c662997 -r de12b39ad805 iRobot/iRobot.h --- a/iRobot/iRobot.h Thu Nov 21 00:02:05 2013 +0000 +++ b/iRobot/iRobot.h Mon Nov 25 19:55:12 2013 +0000 @@ -20,6 +20,8 @@ void changeSpeed(int speed); void receive_sensor(); char sensorCode(); + int getAngle(); + void turnAngle(int angle); private: @@ -40,6 +42,7 @@ static const char BumpsandDrops = 7; static const char Distance = 19; static const char Angle = 20; + static const char waitAngle = 157; /* Global variables with sensor packet info */ char Sensor_byte_count; char Sensor_Data_Byte;