Matchbox-sized Line Following Robot


While they are not nearly as complex as their self-navigating brethren, building line following robots is no simple task, especially when they are this small. The creation of [Ondřej Staněk], this matchbox-sized line following robot is quite impressive.

PocketBot’s 48mm x 32mm circuit board also acts as its frame, supporting the wheels, motors, microcontroller and more. The brains of the operation is an ATmega8 microcontroller mounted on the bottom of the bot. A pair of wheels are driven independently using a set of mobile phone vibration motors that power the bot at speeds of up to 0.35 meters per second. Line detection is achieved by using three different IR sensors paired with four IR emitters located at the front end of the bot.

PocketBot also has an IR receiver on its top side, which allows [Ondřej] to control the robot, tweak its parameters, or calibrate its sensors on the fly using an IR remote or his computer.

The PocketBot might not be the absolute smallest line following bot we’ve seen, but it’s pretty darn close!

Continue reading to see PocketBot in action.

[vimeo w=470]

28 thoughts on “Matchbox-sized Line Following Robot

  1. Now that is just cool! I was wondering how you connected it for programming as I see a 4 pin arrangement near the edge of the board (usb?) Then I read that he does it with the IR, now that is pretty cool!

  2. This is sweet! I could have a lot of fun with my dogs with this thing. :) I love how he can control it with the ir remote arrow keys.

    How is he using the vibration motors for propulsion? Are the heads of the motors directly spinning on the surface of the wheel? I can’t really tell.

    I would love to build one of these.

      1. The Elm-chan’s project also implements P-I control and runs much faster and smoother. But I’m not saying that this one is not worth mentioning. What I don’t fully understand is why the author didn’t bother implementing I part of the PID.

      2. @svofski: He probably thought that it doesn’t matter if it gets a constant error, as long as it follows the line. Also, he programmed it in assembly, so I guess that he wanted to do it as simple as he could… assembly is not that fun :P

  3. It would look good if you left it in the match box with some holes on the bottom for the wheels to pock thru and a hole for the sensor.
    Then invite a friend round and ask him if he can see where you left the matches, then turn the robot on when he’s not looking.

  4. I just love the amount of work he put into this project, everything is so well taken care of and the whole thing feels finished. My respect. Now make it available as a kit at toy stores, or Sparkfun.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.