Thymio Robots Turn Barcodes Into Light Paintings

These mobile robots learn how to make paintings with barcodes and light

2 min read
Thymio Robots Turn Barcodes Into Light Paintings
Light painting created by Thymio robots.
Image: Thymio

We may have taken some time off last week to be thankful for the fact that birds are edible, but the rest of the world had better things to do. Over in Switzerland, Thymio has been spending some quality time learning how to do light paintings. We covered this before, when Mariane Brodier got the little mobile robots to make art, but now they can produce top-quality 8-bit video game characters, among other things. And it’s easy enough that even you (and your robot) could do it.

The technique here is easy to understand. The little Thymio robots have light sensors underneath, and they use one to follow a particular value of grey in the middle of a long continuous strip that grades from black to white. It’s a slight refinement of a more traditional line-following program, in that the gradient allows the robot to continually make small corrections to its heading with a single sensor, whereas if it was following a solid black line, it would have to make much larger corrections whenever it drifted off.

img

The other light sensor is used to read a very simple four bit barcode that runs parallel to the line. The barcode starts with black (a sync bit telling the robot that the barcode is starting), and then the other three bits can be a combination of black and white that corresponds to one of eight preset colors. If you wanted to use more colors, you could make your barcodes longer.

img

Once you have the track (gray strip and barcodes) set up, making the light painting is easy: each Thymio robot drives along the line, reads the color barcodes, and then changes its color in response. Do this in a dark room with a camera taking an exposure of several minutes (or longer, depending on how long the track is), and you’ll end up with a lovely light painting of whatever was encoded into the track.

The picture of Mario at the top of this article took one robot over 20 minutes as it looped back and forth, but with seven robots running in parallel, they managed to make the same drawing in just 2 minutes.

Here are some other 8-bit long-exposure pictures that Thymio was able to draw:

img

img

If you like this kind of thing, all of the software (and templates for the tracks) are freely available for download. And for what it’s worth, Thymio is a great first robot for kids: designed by roboticists and educators at EPFL in Switzerland, it’s mobile, colorful, easy to program, has tons of online support and continual development, and only costs about $125 USD, because EPFL isn’t trying to make any money on it.

We’ve got a longer article on the robot with more details, and you can see more examples of all the kinds of things that Thymio can do here.

[ Thymio ]

Thanks Francesco!

The Conversation (0)

The Bionic-Hand Arms Race

The prosthetics industry is too focused on high-tech limbs that are complicated, costly, and often impractical

12 min read
Horizontal
A photograph of a young woman with brown eyes and neck length hair dyed rose gold sits at a white table. In one hand she holds a carbon fiber robotic arm and hand. Her other arm ends near her elbow. Her short sleeve shirt has a pattern on it of illustrated hands.

The author, Britt Young, holding her Ottobock bebionic bionic arm.

Gabriela Hasbun. Makeup: Maria Nguyen for MAC cosmetics; Hair: Joan Laqui for Living Proof
DarkGray

In Jules Verne’s 1865 novel From the Earth to the Moon, members of the fictitious Baltimore Gun Club, all disabled Civil War veterans, restlessly search for a new enemy to conquer. They had spent the war innovating new, deadlier weaponry. By the war’s end, with “not quite one arm between four persons, and exactly two legs between six,” these self-taught amputee-weaponsmiths decide to repurpose their skills toward a new projectile: a rocket ship.

The story of the Baltimore Gun Club propelling themselves to the moon is about the extraordinary masculine power of the veteran, who doesn’t simply “overcome” his disability; he derives power and ambition from it. Their “crutches, wooden legs, artificial arms, steel hooks, caoutchouc [rubber] jaws, silver craniums [and] platinum noses” don’t play leading roles in their personalities—they are merely tools on their bodies. These piecemeal men are unlikely crusaders of invention with an even more unlikely mission. And yet who better to design the next great leap in technology than men remade by technology themselves?

Keep Reading ↓Show less