Growbot

It is for a student to eat their vegetables and in a way that makes it like a challenge. Parents would want this product so they don’t have to convince their child or children to eat their vegetables. The parents don’t really have to do anything except for pressing a button every time their child or children eats a vegetable the growbot will grow as in move up a little bit more. Once the has growbot reached the end a buzzer will go off and the child will receive a type of treat of the parents choice.

Presentation:

 

Video:

 

Code:

var itera
itera = 0
timer.period[0]=1000
onevent rc5
if rc5.command == 5 then
itera =2
end
onevent timer0
if itera > 0 then
if itera == 2 then
motor.right.target =150
motor.left.target =150
end
if itera == 1 then
motor.right.target =0
motor.left.target =0
end
itera = itera-1
end
if rc5.command ==1 then
motor.left.target =0
motor.right.target =0
end
if rc5.command ==2 then
motor.left.target=500
motor.right.target=500
end
if rc5.command ==3 then
motor.left.target =250
motor.right.target =500
end
if rc5.command ==4 then
motor.left.target =500
motor.right.target=250
end
[wpdm_file id=2]
 
By: Jack & Paloma