Archive | Methods/Algorthims RSS feed for this section

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

Group Robopower: Methods

3 May

Our group is drawing FAU for our project. We have come up with a way to draw this without taking big steps. We will divide and conquer this task into small steps in order to accurately draw FAU. To complete this task, we need to have our robot draw a horizontal line, vertical line, and make a 90 degree turn.

            To draw the F, we need to be able to draw a vertical line first to the North. Then, make a 90 degree angle turn and draw a horizontal line to the East. After, we pick up our robot, and place it halfway between the first line we drew and point it to the East. Then, we draw a horizontal line to the East.

            To draw the A, we need to draw a vertical line to the north and make a 90 degree turn. After, we need to draw a horizontal line to the east and also make a 90 degree angle turn again. Then, we need to draw a vertical line to the south. Lastly, we will pick up our robot and place it halfway between the first line we drew, and draw a horizontal line to the east. To draw the U, we would first start in the north, unlike how we started to draw the other letters. We would draw a vertical line southward and make a 90 degree angle turn. After, we would draw a horizontal line to the east and make another 90 degree angle turn. Lastly, we would draw a vertical line northward. Below is a diagram of this process and is numbered to make it a bit clearer.