LLAF

Posted on 31/08/2009 by BaseOverApex
Modified on: 13/09/2018
Project
Press to mark as completed
Introduction
This is an automatic import from our previous community platform. Some things can look imperfect.

If you are the original author, please access your User Control Panel and update it.

I haven't posted a Lego robot or a line follower, so I thought I'd do both together. Line followers have been done to death. I've blown the dust off my Lego RCX. Yes, that's right: Noah had one of these controlling the Ark, but we haven't seen any BOA-bots in ages. Time to get back in the saddle. There are three things going on here: 1) It's got 2 light sensors and a bit more intelligence than the time-honoured "change direction when you loose the line" type algorithm. 2) I've added a ...


LLAF

I haven't posted a Lego robot or a line follower, so I thought I'd do both together.

Line followers have been done to death. I've blown the dust off my Lego RCX. Yes, that's right: Noah had one of these controlling the Ark, but we haven't seen any BOA-bots in ages. Time to get back in the saddle.

There are three things going on here:

1) It's got 2 light sensors and a bit more intelligence than the time-honoured "change direction when you loose the line" type algorithm.

2) I've added a differential gear. It's part of the feedback train rather than the drive train. The diff turns a rotation sensor. As you can see, if both wheels turn, the diff doesn't turn. If one wheel turns, the diff runs one way. If the other wheel turns (the same direction) the diff turns the other way. This means it "knows" with reasonable precision what rotational angle it's sitting at in the ground plane.Of course, it also means it has no idea how far it's travelled.

3) I'm programming it in a subset of C. I'm not a C programmer. I prefer assembly, or even LabVIEW. This should be good sport to watch.

Oh, yeah. The name. LLAF = "Lego Line (Another) Follower."

Now, about that software. Time to do some headscratching.

Follows a line

  • Actuators / output devices: Stock Lego motors with 4:1 reduction gears.
  • Control method: autonomous, using Lego RCX, coded using RCXCC.
  • CPU: Lego RCX.
  • Operating system: RCXCC.
  • Power source: 6x AA cells.
  • Programming language: A subset of C.
  • Sensors / input devices: 1 rotation sensor, two light sensors.
  • Target environment: A flat, pale surface with a dark line drawn on it.
Flag this post

Thanks for helping to keep our community civil!


Notify staff privately
It's Spam
This post is an advertisement, or vandalism. It is not useful or relevant to the current topic.

You flagged this as spam. Undo flag.Flag Post