Monday, October 13, 2014

Make a Tweeting Babbage

At Picademy, our awesome free training course for teachers, I run a workshop to introduce teachers to using the camera module with Python, and show them how to wire up a GPIO button they can use to trigger the camera. I always make a point of saying “now you know this, what can you make it do?” and suggest some uses for the setup – stop-motion animation, motion sensing or sending pictures to Twitter.

On the second day of Picademy, we give teachers the chance to work in teams on a project of their choice, and there’s always at least one group that extends upon the camera workshop. At Picademy #3 in July, one group decided to take a Babbage Bear apart, shove a Pi inside and have it take pictures and tweet them – it was great fun to help them build the project and we got some funny pictures out of it…

Then at Picademy #4 last month, another group took the idea further and made Abuse Bear – a Babbage that tweeted a picture when punched! Perhaps this one’s not quite such a good idea for the classroom. Again, some brilliant pictures…

The idea has been so popular at Picademy that I decided to write the Tweeting Babbage project up as an educational resource! There’s a full set of instructions for building up the code to send simple text tweets from Python, taking pictures with the camera, wiring up the GPIO button, uploading pictures to Twitter, putting it all together and performing surgery on the bear to insert the hardware.

babbage-incision

Making the incision

babbage-eye-removal

Removing the eye

babbage-camera-insertion

Inserting the camera

babbage-pi-insertion

Intel Raspberry Pi Inside

I was at PyCon Ireland in Dublin this weekend, where I gave a talk about Raspberry Pi in education. I brought the modified Babbage along (yes, I got it through airport security) and showed the pictures above during my talk. There was a very audible aww of sentimental attachment to the cute bear I just introduced them to.

tweeting-babbage

Tweeting Babbage: the finished product

Go check out the resource and make your own Tweeting Babbage!

No comments:

Post a Comment