Derby Mini-Makerfaire - John Demonstrates the Plotter to Tim Hunkin

Posted by barnoid Tue, 10 Jul 2012 22:16:34 GMT

Derby Mini-Makerfaire - John Demonstrates the Plotter to Tim Hunkin
MakeCanon
ModelCanon EOS 5D Mark II
Exposure0.025 sec (1/40)
Aperturef/4.5
Exposure ProgramProgram AE
ISO Speed640
Date and Time (Original)2012:06:02 15:49:00
Exposure Bias-1 EV
FlashOff, Did not fire
Focal Length32 mm
QualityFine
Metering ModeEvaluative
Lens TypeCanon EF 24-105mm f/4L IS
Camera Temperature21 C

TwitBeeb 3

Posted by barnoid Thu, 22 Oct 2015 11:39:00 GMT

TwitBeeb
TwitBeeb on test at Bristol Hackspace, photo by John Honniball.

TwitBeeb is a BBC B microcomputer (vintage 1981) from which you can Tweet.

The Beeb itself was my main computer until 1994, I taught myself to program on it. A few years ago I pulled a rather scuffed up BBC out of a skip at Sussex University and took it home. Inside it had an add-on ROM board with several programs in ROM chips including a serial terminal emulator called Termulator. This allows it to connect to other computers via its serial port and for everything typed on the BBC's keyboard to be sent to the other computer which sends responses back to be displayed on the BBC's screen. It acts as what used to be called a "dumb terminal", just handling the input and output while a more powerful computer does the actual work. This was quite a common way of doing things back when computers were room-sized. Several terminals would connect to a large shared computer, possibly over phone lines using modems.

My first tests with the Beeb terminal involved connecting it to a Linux server using a cable I made from this recipe. It was a bit tricky to find 5 pin domino DIN plugs and note the warning about marking the top because you can plug them in either way up. I ran a text-based web browser called Lynx on the server via the BBC terminal and pointed it at Twitter. Termulator was not very good at handling the full Linux terminal and browser, it tended to crash and you can't use the arrow keys which makes using Lynx awkward. I did manage to send one tweet.

More recently, I got my hands on a Raspberry Pi. While considering what to do with it I remembered my BBC terminal experiments. Given that the Pi is cast from the same mould as the BBC, in terms of their educational intentions, they seem like an obvious pairing. They share a common heritage, in that the Raspberry Pi's ARM processor was designed by some of the same team who worked on the BBC Micro. I also enjoy the fact that in this case the terminal is physically far bigger than the vastly more powerful computer it connects to.

Some spec comparisons:

BBC Micro (Model B)Raspberry Pi (Model B)
Release Date1st December 198129th February 2012
CPU6502 2 MHz (8 bit)ARM1156 700 MHz (32 bit)
RAM32 KB256 MB (262144 KB)
StorageNone in this instance, except the 16KB ROMs containing the OS and terminal software.2 GB SD card

Twitter BBC early experiment.
The first experiment with the BBC B and Twitter via Lynx.

So due to Termulator's problems handling a full text-mode browser and because that would have been too complicated for use on the stand at an event like a Makerfaire I wrote my own specialised kind of Twitter client. The BBC's OS has a set of special bytes that you can send to control things like text colour and cursor position, I used these to make it pretty. It reminded me of the kind of programs that I used to write when I was 11, it was kind of odd to be doing that stuff in Ruby rather than BASIC.

Here is the code, on Github. It searches for a hashtag and displays some results on the screen below the title. At the bottom of the screen it shows a prompt very much like the BASIC one, you type your tweet there and press Return to send it. The hashtag is appended for you. The code stops you typing too many characters.

For TwitBeeb's first public outing at Derby Mini Makerfaire I had the Pi talking to the Internet using a USB Wifi dongle. I set up the network by connecting to the Pi's serial console from my laptop using a USB to serial converter and a Sparkfun level shifter. When the network was working I connected to the Pi with ssh and moved the USB to serial converter to the Pi and connected the serial end to the BBC (minus the level shifter). I then started Termulator on the Beeb, put it in BBC VDU mode and started the twitbeeb script on the Pi. I used the command line to redirect standard in and out for the script to the serial port device, having first set it to run at 4800 baud and several other parameters using stty.

It was quite popular at the Faire, mostly as a spectacle though. People were reluctant to come up with a witty tweet on the spot. It tweets from the @twitbeeb account, you can see people's tweets there. Most confusion came when there was a need to find the "delete" key, and also "@" hidden in plain view on a key of its own.

Update!

21/10/2015

Since its public debut at the first Derby Mini Maker Faire in 2012, TwitBeeb has been on show several times. I'm about to show it again at the fourth Derby Mini Maker Faire.

Here are some of its outings:

TwitBeeb at Brighton Mini Maker Faire 2012
TwitBeeb at Brighton Mini Maker Faire 2012, photo by Hollie Lubbock.

Bristol Raspberry Jam - August 2012

I set it up in the demo room with a bunch of other people's projects, then went off to watch some talks. About 20 minutes later someone came over to tell me that my project was on fire. It turns out the capacitor in the BBC's power supply had failed, as they will do after 30 years. Those capacitors are partly made of paper so they make a lot of smoke when they fail. It didn't get used much that day.

Brighton Mini Maker Faire - September 2012

Having replaced all the power supply capacitors, I showed Twitbeeb on the Bristol Hackspace stand at Brighton Mini Maker Faire 2012.

Bristol Mini Maker Faire - March 2013

The next outing was the first Bristol Mini Maker Faire, with a few tweaks to the code to make it compatible with Ruby 1.9.

This happened:

TwitBeeb and Eben Upton at Bristol Mini Maker Faire 2013
TwitBeeb and Eben Upton at Bristol Mini Maker Faire 2013.

Eben and Liz Upton of Raspberry Pi fame were the special guests at the Faire. I had a brief chat with Eben and he seemed to like TwitBeeb.

Bristol Hackspace for BV Open Studios - June 2013

Between the last show and this one Twitter decided to close down their old API. So I had to scramble to basically rewrite my API code the day before this event.

Derby Mini Maker Faire - October 2014

I implemented some new features for this outing. When idle it now automatically reloads the tweets (previously someone had to press Escape to trigger this) and it cycles between tweets, a screen of self description and the Derby Mini Maker Faire logo.

Bristol Mini Maker Faire - August 2015

On the Bristol Hackspace stand again at the second Bristol Mini Maker Faire. Swindon Hackspace had a lovely Teletype typing out tweets nearby, so people were able able to use TwitBeeb to send it messages.

Oh really?!?

There's more!

David James Lennon has created a TwitBeeb twin using my code from Github! He will be showing it this Saturday (24th October 2015) at the RISC OS London show, which happens to be the same day the original TwitBeeb will be at Derby Mini Maker Faire.

His TwitBeeb tweets to @burrBeep. I've added a new tweet search page to the rotation that displays the result of a search for that Twitter handle. Hopefully we'll be able to get some inter-show chats going.

I've added a few other nice features, including word wrapping for the tweet list. When I implemented word wrapping for Ode, my terrible poetry generator that I wrote on my BBC (the same one) when I was about 13, it consisted of about 120 horrible lines of BASIC. This time it's basically just one regular expression. What a difference 20odd years experience and a computer science degree can make!

Taking TwitBeeb to shows has become easier over time as I've gradually improved its reliability. Nowadays it's pretty much at the ideal point where once it's connected to the network it can be left to its own devices. It's nice to chat to people about it still though. What happens often at a Maker Faire is that a parent of about my age with small children in tow will spot TwitBeeb and say "Look kids! This is the computer I used at school!". The children will look nonplussed and may attempt to poke and swipe things on the screen before mashing the keyboard. Meanwhile the parent realises that it's actually showing real live twitter and asks how it works.

I expect I'll continue to take TwitBeeb to events, as long as the Twitter API keeps working at least. I'd like to take it to the big Maker Faire in Newcastle next year, and maybe to EMF Camp 2016 as well, if I can keep it dry.

Brighton Mini Maker Faire - Fisheye Part 2

Posted by barnoid Tue, 06 Sep 2011 10:35:20 GMT

2150 photos taken between 1:41 pm and 5:50 pm with a Canon EOS 40D through a Sigma 8mm fisheye lens. The camera was triggered by an intervalometer I made with a 555 timer chip and an optoisolator. The resulting pictures were batch rotated and cropped using imagemagick and then made into a video at 25fps using ffmpeg.

Brighton Mini Maker Faire - Fisheye Part 1

Posted by barnoid Tue, 06 Sep 2011 09:59:26 GMT

2149 photos taken between 9:30 am and 1:41 pm with a Canon EOS 40D through a Sigma 8mm fisheye lens. The camera was triggered by an intervalometer I made with a 555 timer chip and an optoisolator. The resulting pictures were batch rotated and cropped using imagemagick and then made into a video at 25fps using ffmpeg. Check out the 3D printers running on the RepRap stand at the bottom.

Brighton Mini Maker Faire After-party - Thomas Truax

Posted by barnoid Sun, 04 Sep 2011 23:42:29 GMT

The after party consisted of some brilliantly bizarre music and contraptions.

Brighton Mini Maker Faire from Above

Posted by barnoid Sun, 04 Sep 2011 23:18:37 GMT

Normal speed this time.

Brighton Mini Maker Faire - Curiosity Collective

Posted by barnoid Sun, 04 Sep 2011 14:16:27 GMT

Three Hours of The First Brighton Mini Maker Faire

Posted by barnoid Sat, 03 Sep 2011 18:33:17 GMT

Also the first test of my timelapse panner. Works pretty well.

Some Soldering Irons

Posted by barnoid Sat, 03 Sep 2011 00:10:33 GMT

Some Soldering Irons
Brighton Mini Maker Faire setup.
MakeCanon
ModelCanon EOS 5D Mark II
Exposure0.02 sec (1/50)
Aperturef/2.8
Exposure ProgramProgram AE
ISO Speed400
Date and Time (Original)2011:09:02 21:00:46
Exposure Bias0 EV
FlashOff, Did not fire
Focal Length50 mm
QualityFine
Metering ModeEvaluative
Lens TypeCanon EF 50mm f/1.8 MkII
Camera Temperature21 C

Brighton Mini Maker Faire

Posted by barnoid Sat, 03 Sep 2011 00:10:16 GMT

Brighton Mini Maker Faire
Brighton Mini Maker Faire setup.
MakeCanon
ModelCanon EOS 5D Mark II
Exposure0.017 sec (1/60)
Aperturef/3.5
Exposure ProgramProgram AE
ISO Speed400
Date and Time (Original)2011:09:02 20:19:49
Exposure Bias0 EV
FlashOff, Did not fire
Focal Length50 mm
QualityFine
Metering ModeEvaluative
Lens TypeCanon EF 50mm f/1.8 MkII
Camera Temperature24 C