Babuino Project is powered by Creative Minds.

September 19, 2009

First Babuino robot - Obstacle avoidance #2

The robot was built by Ernesto Maranesi and programmed with Cricket Logo.
Here is the video.

video

And here is the code.

to start
ab, thatway on
loop
[
if (sensora < 100) and (sensorb < 100) [paratras]
if (sensora > 100) and (sensorb < 100) [esquerda]
if (sensora <> 100) [direita]
if (sensora > 100) and (sensorb > 100) [parafrente]
]
end

to parafrente
b, thatway on
a, thatway on
wait 20
end

to esquerda
a, thisway on
b, off
wait 20
parafrente
end

to direita
b, thisway on
a, off
wait 20
parafrente
end

to paratras
esquerda
end

2 comments:

  1. CONGRATULATIONS. I KNOW YOU COULD FINISH IT UP AT NO TIME. YOUR DEDICATION MADE IT ALL POSSIBLE.

    WHAT IS NEXT?

    LATERS

    ReplyDelete
  2. Post how to get Logo Blocks Cricket , and how we can help you

    ReplyDelete