Einstein

By: Jessica, Genevieve, Keith, Ben, and Jonathan

 

We made our robot, Einstein, to have a touch sensor. Einstein was built with two sensors when we started, but now he only has one. We had a lot of problems in the beginning. Every time we touched the light sensor, it would break. So we thought it would be much easier to just forget about it. Also, we had trouble with the turning this way and that way. It would always go in a squiggly line, it still does. The robot has two wheels, four gears, and one sensor, a touch sensor.

A few times we thought that Einstein's battery was dead. But Mr. Cattanach helped us with our problem. Now it's working 100%, and we're really happy with what our hard work has done!

To Einstein

ac, setpower 3
ac, onfor 50

ac, off
setpower 8
ac, onfor 30

coast

c, onfor 10
ac, onfor 20
ac, off
a, onfor 10
repeat 3 [ beep wait 10]
setpower 8
ac, onfor 30
coast
end

to test
ac, setpower 1
ac, thisway
ac, on
if switch2
[ac, off rd onfor 10]
off
end

What our robot does:
Our robot first goes on power 3 out of 8 forward for 5 seconds. Then it goes on power 8 out of 8 for 3 seconds. Next it turns left for 1 second on power 8. After that our robot goes forward for 2 seconds. Right for 1 second is what our robot does next. Then it beeps 3 times while stopped. The last thing our robot does is it goes forward for 3 seconds.
You may notice the 'to test' just before these paragraphs. We could not get our touch sensor working so when we tried to get it working we used 'to test'.