Picture this: You put on a headset and relax your mind. Soon you begin controlling an object with your thoughts.

This mind-power trick may seem far-fetched, like something from a late-night science fiction movie or the back of an old comic book. But several companies are bringing this technology to life with affordable headsets that determine a person's state of mind.

The...