Therapy Cat

When your spouse is yelling at you, and your kids just can’t get along! You feel like nothing can help you. We know, we’ve been there too, but that is why we made Therapy Cat. A robotic cat that will talk to you and help you through a tough problem. For all you parents out there, we have found the perfect product. When you pet therapy cat she will purr to make you feel better. Therapy will come when you press some simple buttons or your remote( remote not included with robot).

Presentation:

 

Video:

 

Code:

var itera =0
call sound.system(-1)
call leds.top(0,0,0)
call leds.bottom.left(0,0,0)
call leds.bottom.right(0,0,0)
call leds.circle(0,0,0,0,0,0,0,0)

onevent buttons
if button.forward == 1 then
motor.left.target = 500
motor.right.target = 500
end
if button.center == 1 then
motor.left.target = 0
motor.right.target = 0
call leds.bottom.left(0,0,0)
call leds.bottom.right(0,0,0)
call leds.circle(0,0,0,0,0,0,0,0)

onevent buttons
if button.forward == 1 then
motor.left.target = 500
motor.right.target = 500
end
if button.center == 1 then
motor.left.target = 0
motor.right.target = 0
end
onevent rc5
if rc5.command == 0 then
motor.left.target = 500
if rc5.command == 0 then
motor.left.target = 500
motor.right.target = 500
end

if rc5.command==1 then
motor.left.target = 150
motor.right.target = 500
end
if rc5.command==3 then
motor.left.target=300
motor.right.target=150

end
if rc5.command==4 then
motor.left.target=0
motor.right.target=0
end

onevent temperature
itera = itera + 1
if itera == 1 then
motor.left.target= 100
motor.right.target= 90

end

if itera==4 then
motor.left.target= -100
motor.right.target= -70
end

[wpdm_file id=2]

By: Ainsley & Ayisah

Tags: , , , , ,