Robotic Close Encounters

The 12-second video below shows my Lego robot in action.

As you can see, it’s a pretty simple program. The robot (whom I’ve dubbed “Procyon”) moves forward until he gets close to something, then backs up, turns, and keeps going.

A few things to point out:

1. I am not remote-controlling him. Procyon is doing this “on his own,” so to speak.

2. The program governing his behavior actually runs on my PC and controls him wirelessly via Bluetooth. As I described earlier, I’m using a third-party library to bypass Lego’s proprietary programming language and write code in C++.

3. Procyon can tell when he’s close to something by checking his ultrasonic sensor, which is that light gray T-shaped piece mounted on the front. Essentially, he navigates with echolocation, the same thing bats and whales use.

4. Although the behavior is pretty simple, programming it did present some challenges. The biggest challenge is that, when I send a signal like “Turn your wheels backward 720 degrees,” there’s no way to say “Wait for that command to finish before moving on with the program.” (At least, not that I’ve found yet.) I’ve got a workaround for now, but I’ll need to come up with a more robust solution as I get into more complex programs.

5. I haven’t yet given Procyon even a hint of real artificial intelligence, but that is my eventual goal.

But AI for Procyon – even a very simple, stripped-down model like the one I plan to start with – is still a long way off.

In the meantime, what other cool stuff could I program him to do?

Advertisements

6 responses to “Robotic Close Encounters

  1. I feel like this is the beginning of a horror sci-fi movie in the making, much like Splice.

    At first, it’s stupid. Knows nothing. At the opening of the movie, you see the home movies of the scientist taking out the “toy” from its packaging, it’s basic movements…

    …Then the addition of A.I.

    By the end of the movie, it kills him in his sleep.

    Can’t wait to see what happens next! *eats popcorn*

    As for suggestions, whatever you do, don’t give him hands. But do give him like something so he could make noises or music or speech or something.

  2. Robot: I have been programmed to Be More Human but want to Be More Buckley beep beep droop bop…Must resist beep boop ping pong

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s