Alex's Color Sorting Robotic Arm

This is a webpage about the robotic arm that I built. I Made it sort Legos by color into each bin. I added a light sensor to see the color of the Legos and put them in the right place. Below is a picture and the procedures I added to the project:

to check.color
if light8 >= 38 [red]
if light8 <= 38 [blue]
end

to place.by.color
pick.from.chute
hand.close
talkto "motora setright
on
waituntil [angle5 = -29]
off check.color
end

to blue
talkto "motora setright
on
waituntil [angle5 = -52]
off
hand.open
end

to red
talkto "motora setright
on
waituntil [angle5 = -61]
off
hand.open
end

to go
repeat 3 [place.by.color]
end

Vina Danks Home Page||Student Lego Projects