Return Bot

Aren’t you tired of being left out at school? Or maybe just lonely when everyone else is busy? Introducing the Return Bot. Press 1 on the remote to start a game of catch. He’ll put his ping pong paddle forward, “returning” the pass, again and again. This will stop eventually.
So it doesn’t break and for your safety: Please use balloons, not balls for your game of catch and keep the equipment in prime condition. The robot is fragile and will not work if it is damaged on any part.

Presentation:

 

Video:

 

Code:

var cheese= 0
onevent rc5
timer.period[0]=1000
if rc5.command==1 then
cheese = 40
end
if rc5.command == 2 then
motor.right.target = 0
motor.left.target = 0
cheese =0
end
onevent timer0
if cheese>0 then
if cheese== 40 then
motor.right.target=250
motor.left.target=250
end
if cheese==39 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 38 then
motor.right.target=250
motor.left.target=250
end
if cheese==37 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 36 then
motor.right.target=250
motor.left.target=250
end
if cheese==35 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 34 then
motor.right.target=250
motor.left.target=250
end
if cheese==33 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 32 then
motor.right.target=250
motor.left.target=250
end
if cheese==31 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 30 then
motor.right.target=250
motor.left.target=250
end
if cheese==29 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 28 then
motor.right.target=250
motor.left.target=250
end
if cheese==27 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 26 then
motor.right.target=250
motor.left.target=250
end
if cheese==25 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 24 then
motor.right.target=250
motor.left.target=250
end
if cheese==23 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 22 then
motor.right.target=250
motor.left.target=250
end
if cheese==21 then
motor.left.target=-250
motor.right.target=-250
end
if cheese== 20 then
motor.right.target=250
motor.left.target=250
end
if cheese==19 then
motor.left.target=-250
motor.right.target=-250
end
[wpdm_file id=2]
 
By: Maya & Alexander

Tags: , , , , , , ,