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 richard choy

Revision:
5:5fe2f8603be8
Parent:
3:de12b39ad805
Child:
7:41b5307e4c03
--- a/iRobot/iRobot.cpp	Mon Dec 02 17:20:53 2013 +0000
+++ b/iRobot/iRobot.cpp	Fri Dec 06 16:59:07 2013 +0000
@@ -48,9 +48,9 @@
 // Forward  - turn on drive motors
 void iRobot::forward()
 {
-    device.printf("%c%c%c%c%c", DriveDirect, char((speed_right>>8)&0xFF),  char(speed_right&0xFF),
-                  char((speed_left>>8)&0xFF),  char(speed_left&0xFF));
-
+    device.printf("%c%c%c%c%c", DriveDirect, char((35>>8)&0xFF),  char(35&0xFF),
+                  char((35>>8)&0xFF),  char(35&0xFF));
+//10-speed
 }
 // Reverse - reverse drive motors
 void iRobot::reverse()
@@ -62,14 +62,14 @@
 // Left - drive motors set to rotate to left
 void iRobot::left()
 {
-    device.printf("%c%c%c%c%c", DriveDirect, char((speed_right>>8)&0xFF),  char(speed_right&0xFF),
-                  char(((-speed_left)>>8)&0xFF),  char((-speed_left)&0xFF));
+    device.printf("%c%c%c%c%c", DriveDirect, char((50>>8)&0xFF),  char(50&0xFF),
+                  char(((-50)>>8)&0xFF),  char((-50)&0xFF));
 }
 // Right - drive motors set to rotate to right
 void iRobot::right()
 {
-    device.printf("%c%c%c%c%c", DriveDirect, char(((-speed_right)>>8)&0xFF),  char((-speed_right)&0xFF),
-                  char((speed_left>>8)&0xFF),  char(speed_left&0xFF));
+    device.printf("%c%c%c%c%c", DriveDirect, char(((-50)>>8)&0xFF),  char((-50)&0xFF),
+                  char((50>>8)&0xFF),  char(50&0xFF));
 
 }
 // Angle - The angle in degrees that iRobot Create has turned since the