Safetybot

This product is designed for teachers in case of emergency. When there is a power outage, a teacher will be able to use this robot to go around the classroom with a light and will keep people safe. This product requires a remote.

Presentation:

 

Video:

Code:

call leds.top(0,0,0)
onevent rc5
if rc5.command == 2 then
call leds.top(32,32,0)
motor.right.target=250
motor.left.target=250
end

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

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

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

if rc5.command==8 then
motor.left.target=-250
motor.right.target=-250
end

onevent temperature
if temperature > 270 then
call leds.top(32,0,0)
end

if rc5.command==5 then
call leds.top (0,0,32)
end

By: Tyler, Nikhila, Jackson

Tags: , , , , , , ,