Pi-A-Sketch

Francois Dion is someone I exchange emails with every now and then. He’s the guy behind the excellent (and multilingual: check the site for posts and tutorials in English, French, Portuguese and Spanish) Raspberry Pi Python Adventures blog. He’s a hackspace member from North Carolina, and he’s been giving lecture-demonstrations of the Raspberry Pi (and lasers) to interested groups, and promoting it in schools locally. Our community would be nothing like as large and colourful as it is without people like Francois, who put their own time and energy into spreading the word about Raspberry Pi with no support from us at the Foundation – we are very, very grateful to Francois and all the other people out there who make so much effort on this project’s behalf. (Seriously; next time I’m in NC, I will be making a studied effort to fill Francois full of gratitude-symbolising food and drink. In as many languages as I can muster.)

Francois has been making something really cool.

circles on a greyscale display

Is it e-ink? No…

A little while ago, he attended a session at PyPTUG (the PYthon Piedmont Triad User Group) about motors. “We did a lot of stuff with motors. DC, servos, H bridges, PWM and steppers. It was a very dense 3 hours. We covered a lot, and it was a lot of fun.” He went away to think deep thoughts about what sort of fun you could have with a Pi and some stepper motors; and he came up with the Pi-A-Sketch.

Pi-a-Sketch set up, stepper motors visible

The stepper motors you can see here have the same diameter as the shaft of the familiar twirly knob they replace.

Equipped with an Etch-a-Sketch, some stepper motors, a battery pack, a Pi, an 8-channel Darlington pair and some leds, wires and headers, Francois has made a device that uses Python to draw all those things on an Etch-a-Sketch that, as kids, had us throwing the things at the floor in frustration at the uselessness of our fat thumbs. Horizontal, vertical and diagonal lines? No problem. And with a bit of help from Bresenham’s algorithm, you can draw circles too. (Eben has a funny story from when he was about 11 which involves Bresenham’s algorithm, a BBC Micro, the days before the internet, inter-library loans and the month’s wait he had to endure before he was able to get his hands on the very simple information he needed to draw a line on the screen. Ask him about it if you see him and you need a reminder of how lucky we are to have the ability to look this stuff up online.)

“What practical use is all this?” I hear you mutter at the screen. Well, so far it’s gone down a treat at talks Francois has been giving about the Pi and programming. This sort of demonstration is exactly the sort of thing that captures the imagination, and opens up the eyes to what you can achieve with a little programming and a little solder flux. Here’s something familiar that you can pass around an audience (thanks to that Kodak battery pack), made magical with the addition of a little science. We love it, and so did the audience at the IEEE in Winston Salem, NC, where Francois first showed this project off.

Circles and lines on Etch-a-Sketch panel

Instructions on how to get the hardware set up are available at Raspberry Pi Python Adventures, and Francois will also be writing a post about the Python that you’ll need to get things working in the next few days. (I’ll update this post when he’s ready – in the meantime, you can find the source code at Bitbucket.) Thanks Francois; we look forward to hearing more from you!