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

Committer:
dhamilton31
Date:
Mon Nov 11 19:22:13 2013 +0000
Revision:
0:3ed56271dd2d
Child:
1:6c399fc35deb
FollowMeBot

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dhamilton31 0:3ed56271dd2d 1 #include "mbed.h"
dhamilton31 0:3ed56271dd2d 2 #include "iRobot.h"
dhamilton31 0:3ed56271dd2d 3 #include "Servo.h"
dhamilton31 0:3ed56271dd2d 4
dhamilton31 0:3ed56271dd2d 5 DigitalOut myled(LED1);
dhamilton31 0:3ed56271dd2d 6
dhamilton31 0:3ed56271dd2d 7 int main() {
dhamilton31 0:3ed56271dd2d 8 iRobot followMeBot(p9, p10);
dhamilton31 0:3ed56271dd2d 9 Servo servoHor(p22);
dhamilton31 0:3ed56271dd2d 10 Servo servoVer(p21);
dhamilton31 0:3ed56271dd2d 11 while(1) {
dhamilton31 0:3ed56271dd2d 12 myled = 1;
dhamilton31 0:3ed56271dd2d 13 wait(0.2);
dhamilton31 0:3ed56271dd2d 14 myled = 0;
dhamilton31 0:3ed56271dd2d 15 wait(0.2);
dhamilton31 0:3ed56271dd2d 16 }
dhamilton31 0:3ed56271dd2d 17 }