Algorithm

3 May

Group Robopower AlgorithmBelow is a algorithm of approximately how our group will draw FAUCalibrate IR sensors. Move robot 10cm away from wall then check the output, repeat but gradually add 5cm until you get to 20 cm To draw the F:Draw vertical line (20 cm, 0 degrees, north)            Move 1/4th turn            Check US sensor            Check IR sensors Adjust (if needed) use PWM to change the speed of the wheels to make robot turn to desired position.             Repeat until 20cm            Check sensors to make sure you are at (20 cm, 0 degrees, north)Rotate(90 degrees)Draw horizontal line(10 cm, 0 degrees, east)            Move 1/4th distance            Check US sensor            Check IR sensors Adjust (if needed)            Repeat until 10cm            Check sensors to make sure you are at (10 cm, 0 degrees, east)
Draw horizontal line(10 cm, 0 degrees, east)            Repeat the above To draw the A:Draw vertical line (20 cm, 0 degrees, north)Rotate (90 degrees)Draw horizontal line (10 cm, 0 degrees, east)Rotate (90 degrees)Draw vertical line (20 cm, 0 degrees, south)To draw the U:Draw vertical line (20 cm, 0 degrees, south)Rotate(90 degrees)Draw horizontal line(10 cm, 0 degrees, east)Rotate (90 degrees)Draw vertical line(20 cm, 0 degrees, north)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: