Let's Make Robots!

My first ever robot I got

Follow Light Stop in front of Object

Microbot Front

This is a light follower robot that stops in front of objects.

Its made from a Microbot from Picaxe.

Code:

 

symbol left = b9

symbol right = b7

symbol difference = b4

main:

     if pinC.6 = 1 then

     halt A

     halt B

     wait 2

     endif

     readadc 7, left

     readadc 9, right

     pause 10

     pulsout C.2, 2

     pulsin C.2, 1, w0

     w1 = w0 * 5 / 58

     if w1 < 10 then

      halt A

      halt B

      goto main

     endif

     if left > right then

      difference = left - right

      if difference >= 10 then

       halt B

       forward A

      else

       forward A

       forward B

      endif

     else

       difference = right - left

       if difference >= 10 then

        forward B

        halt A

       else

        forward A

        forward B

       endif

      endif

      goto main

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

That is one cool bot! Welcome to LMR, btw! I can't wait to see more of your bots!

Thanks!

awesome bot kit's are grate :)

 

More details please, looks great from the front side but wanna see more.... :-)

cool bot mate, gotta see mre, and welcome to LMR!

Very neat bot you've got there!

Thank you! :D

It's worth mentioning that you did a really nice job on your photography too. Nice work!

I took a long time to take the pictures. :)

M,

 that is one VERY tidy looking Robot and the pictures are stunning probably the best I have seen of late!   What camera did you use , certainly not a mobile phone one LoL