About Andy Piper

social bridgebuilder | photographer | techie | speaker | cohost of podcast @ dogearnation.com | WebSphere Messaging Community Lead @ IBM | all views are my own

The amazing MQTT-enabled ducks!

This is a guest post by Hursley’s Chris Phillips (aka @cminion on Twitter). Take it away, Chris… and you’ll find more from him on his blog.

flashyduck-300x225

Many eightbar readers may have received one of those gadget catalogues you get through the door, with weird and wonderful widgets to ostensibly help with everyday life. “How have I ever coped without a Wifi Fondue set?” and similar thoughts may have run your mind. However, one thing these catalogues aim to promise is the integration of technology into everyday life; the dream that if technology is pervasive enough, it could remove all those little annoyances that we experience: forgetting a recipe, not knowing when our friends are turning up at the pub, having to get up twice to make a cup of tea, and so on… missing a phone call, because the phone is not loud enough, or set to vibrate, or other such vagaries of the modern telecommunications device. If only one could make a normally unobtrusive device that would alert one to a phone call, or a doorbell, or a new email, in fact pretty much anything!

Back in January I made some MQTT ducks. The aim was to make them flash on or off when receiving signals from my Ubuntu server.

Now, you may wonder why I would want 20 rubber ducks to flash when my phone goes off. Well, this was about the same time as I decided I wanted to make a unobtrusive alerting device. There is no scientific or technical reason in itself. I just had a Mini Cooper’s worth of rubber ducks sitting around, unemployed. Therefore I designed a simple project to get to grips with the world of Arduinos not only educating me but also putting the lazy mallards to use. I found some cheap fairylights just before Christmas and had the aforementioned large supply of rubber ducks (as you do).

Components

  • 1 x Freeduino
  • 1 x 20 LED Fairy lights (£3)
  • 1 x USB Printer Cable (via theattick.tv)
  • 20 x Rubber Ducks

IMG_5145

Tools

  • GlueGun (£1.50 from Woolworths during the closing down sale)
  • Scissors

The construction was very simple. Making a small hole in the bottom of each duck, I inserted an LED and glue gunned it into place. I checked the effect with the batteries to see the result.

1097743

Removing the battery component with a pair of scissors and stripping the wire coating revealed the multi-core ends. These were plugged into the digital pin thirteen and the digital ground on the Arduino. To confirm the wires were plugged into the correct pin I pressed the reset button. The ducks and LED thirteen on the Arduino would then quickly flash.

IMG_5148

Coding for Arduinos is very basic. The program I wrote received a 1 or a 0 down the USB cable. When it received a 1 (49 in ASCII) it turned the ducks on. When it received a 0 (48 in ASCII) it turned them off.

int LEDPin  = 13;
int inByte =0;

void setup() {
    pinMode(LEDPin,OUTPUT);
    Serial.begin(9600);
}
void loop(){
    if (Serial.available() > 0) {
      inByte = Serial.read();
      Serial.print(inByte);
    }
    if (inByte == 49 ) {
      digitalWrite(LEDPin,HIGH);
    }
    if (inByte == 48 ) {
      digitalWrite(LEDPin,LOW);
    }
}

To connect this to my Really Small Message Broker using MQTT, I modified an excellent & simple Perl script written by Andy Stanford-Clark. His script reads RSMB topics for specific entries. I created a listener that watched for messages being passed on to the Ducks/ topic. If the content of the message was on it sent 1 down the wire to the Arduino, and if it received off it sent 0.

Next move… well someone at Pachube put forward the idea on Twitter of controlling with their infrastructure. Now, I can send an on or off message to a Pachube feed using Twitter. My server at home then checks this feed every 15 seconds for any changes and sends a message to my RSMB as required.

Thanks to the guys from http://greatduckcaper.com/ for providing their leftover ducks and theAttick.tv for providing the USB cable!

Blue Fusion at Hursley, 2009

One of the first Hursley-related things I wrote about here on the eightbar blog back in 2006 was how much I enjoy helping with our annual schools event for National Science and Engineering Week in the UK – Blue Fusion (the event website has gone AWOL at the moment but here’s a link to the press release).

This year was no exception. This is now the fifth year that I’ve been a volunteer. Unfortunately I only had room in my schedule to spend one day helping this time around, so I choose to host a school for the day rather than spending all day on a single activity (that way, I got to see all of the different things we had on offer).

So, yesterday I had the pleasure of hosting six intelligent and polite students from Malvern St James School and their teachers – they had travelled a fair distance to come to the event, but despite the early start I think they did really well.

I won’t go into too much detail and spoil the fun for people who might read this but have not yet taken part in this week’s event, but I think we had some great activities on offer. I twittered our way through a few of them. My own personal favourite was a remote surgery activity. You can’t see much in this image (it was a dark room) but the students basically had a “body” inside a box with some remote cameras to guide their hands around and had to identify organs and remove foreign objects.

img_3774

There was also some interesting application of visual technology / tangible interfaces – a genetics exercise using LEGO bricks and a camera which identified gene strands, and an energy planning exercise which used Reactivision-style markers to identify where power stations had been placed on a map (sort of similar to what we built in SLorpedo at Hackday a couple of years ago). We also had some logic puzzles to solve, built a, err… “typhoon-proof” (ahem) tower, simulated a computer processor, and commanded a colony of ants in a battle for survival against the other school teams.

Once again, I thought this was a great event – just amazing creativity on show from the folks at Hursley in coming up with such engaging exercises. I hope the students had as much fun as I did!

Virtual worlds and enterprise case study

Dave Kamalsky of Linden Lab (formerly of IBM Almaden) pinged me to point out that they now have a new blog called Working Inworld. Now, I wouldn’t usually repost this kind of thing, but one particular post that caught my eye was the joint IBM / Linden Lab case study on the IBM Academy of Technology events that were held in Second Life. It’s a very nice paper, worth taking a look at for some of the figures and business aspects around how best to make use of these kinds of spaces.

Oh, and there’s an interesting concluding comment:

After holding the Virtual World Conference and the Annual General Meeting in Second Life, the AoT agrees that virtual worlds will have a big impact on business, on IBM, and IBM’s clients. And, the best way to learn about virtual worlds is to use them – which IBM is now committed to doing.

This made me smile… no kidding… some of us have been around in this space for quite a few years now… in fact, I was reminiscing about my avatar’s brief TV appearance in an in-world business meeting 2 years ago, only the other day 🙂

Sametime 3D unifies IM and virtual worlds

In the “nothing new to eightbar readers” column – we’ve talked about this before and it was showed at Lotusphere 2009 – it looks like the Sametime 3D platform is now available for test by selected IBM clients.

We don’t usually “do” press releases on eightbar, but this one is particularly interesting as it develops from trends we’ve talked about here for a long time, and has potential connections to both Second Life and OpenSim. More integration of the 3D Internet / virtual worlds into the enterprise.

Update – here’s some more from Slideshare:

Mad scientists?

IMG_3669 4.JPG IMG_3670 4.JPG

Just an average day in the Hursley tea bar!

Martin Dix from CurrentCost visited to deliver a bunch of meters for people who had attended Home Camp 08. Whilst he was with us, Andy Stanford-Clark hooked up a (battery-powered) meter to one of his mousetraps to show how it is possible to detect traps going off using the meter – this is the same technique he uses in his automated home system. He also showed the same message arriving in his MQTT broker on his Ubuntu laptop. The table was soon awash with gadgets, wires and tools. I brought along a camera or two, Dale brought along some questions about the software internals of the new devices, and a great time was had by a bunch of geeks over tea…

No mice were harmed during this meetup, but a few wooden coffee stirrers were put through their paces in some vicious mousetraps.

Using ARGs to spread good deeds in reality

A long long time ago… well OK a couple of years ago… a few of us from the eightbar crowd / tribe / collective / [insert group adjective of your choice here] were quite into Perplex City, an Alternate Reality Game from Mind Candy where you had to solve puzzles on game cards related to a parallel world. At the time I was particularly fascinated by the intersection of gaming, virtual and real worlds, and physical / tangible objects and the web.

I was listening to a podcast the other day and heard about a new ARG – in this case they brand themselves a Social Reality Game – called Akoha. It is also card-based, and has a technology / web tie-in.

Akoha is the world’s first social reality game where you can earn points by playing real-world missions with your friends. Missions might include giving someone your favorite book, inviting a friend for drinks, or buying a friend some chocolate.

The idea here is that players will perform good deeds or “missions” on the cards in the real world, and then pass the cards on to others who can then join the game by entering the card code on the website. It’s a fascinating idea. There’s a social network element. There’s a physical element (the cards, and the personal / direct social interaction). There’s an online element. Plus, the whole idea is around improving the way we all interact with each other and our environment (I’m thinking Smarter Planet).

I love the idea and I’m definitely going to be following Akoha’s development. It’s in closed beta at the moment but anyone can join by getting some cards… I wonder how widespread it is beyond the US at the moment.

Anarkik eightbar

Ann Marie Shillito from Anarkik 3D visited the eightbar crowd in Hursley (thanks to epred for inviting a bunch of us hangers-on along!).

Anarkik are involved with haptic input devices and have developed some really nice software which enables users to interact with virtual worlds and 3D modelling tools using a consumer-priced haptic controller which can be connected to a PC via USB.

The demo blew us away. First we had a look at how the controller could be used to drive an avatar in a virtual world (in this case, OpenSim). It’s a considerably more natural way to navigate than the keyboard and mouse setup that is provided with most 3D worlds and should lead to a lot more accessibility into these environments. The part that really impressed us was the capability of driving a CAD-like tool called Cre8 – a free download from Anarkik, for people who have the controller – to easily create three-dimensional objects by physical manipulation… both inside and out. I remember hacking around with an old 3D package called Euclid on my RISC OS machine back in the early 90s and it was a nightmare – this was sheer joy. Watch the video to see various people playing around with the haptic controller 🙂

Just to explain what is going on in the video, as it may not be entirely clear! The demos use a Novint Falcon gaming controller. To quote Anarkik, it is “like a small grounded ‘robot’ and provides the ‘force feedback’ that gives the uncanny sense of touching a virtual object. This device replaces the mouse and also provides more natural and coherent movement in 3 dimensions.” At the start, several of us have a go with the controller to drive an avatar around an OpenSim island running on the local machine, using Anarkik’s software. Around the middle of the video, we switch to using the Cre8 tool to do some simple modelling. In particular, we change the surface hardness of a sphere (where it becomes more or less soft to the touch); and then go inside the sphere and extrude the shape by pulling the controller around. Finally, there’s a brief look at some fabricated items modelled using the same software.

Anarkik also have a community called Anarkik Angels where they are looking for supporters to help crowdsource and develop the project.

[the one minor disappointment for me personally was the current lack of Mac OS X support – Windows-only at the moment – and the websites aren’t terribly Mac-friendly either. Guess it’s time to buy a Windows box just for this stuff, it’s awesome!]

All of this haptic craziness hit a lot of our interest areas – 3d printing, new ways of interacting with technology, the application of these kinds of controls to education, manufacturing, science, craft, modelling… we had some very exciting and interesting discussions and I think several of us are looking forward to playing with this technology a lot more in the future. There are a bunch of additional videos on the Anarkik website.

SL IBM islands hosting some major gatherings

Friday saw one of the large theatres on the IBM island complex play host to the award ceremony for the GreaterIBM Connection’s Machinimania challenge. For the past few months, several teams have been honing their virtual filming skills to capture some cool in-world videos.

(click through the thumbnails for larger images)

redcarpet

arena

The invitation suggested a dress code of black tie, and as a result hundreds of well-dressed avatars packed in to the Kearney Theatre for the glittering event. The videos were shown on large screens at the centre of the theatre. At the peak of the event, we had over 160 avatars across four sims (the theatres are built at the corners of four sims to maximise our ability to host large events). We did lose the host a couple of times (!), but he was able to get back online pretty quickly.

overhead

audience

After keeping the audience on the edge of their seats, eventually Boris Frampton announced the winners, producing the results from his Oscars-style golden envelope!

boris

Congratulations to all of the winners, and to the GreaterIBM Connection for staging and hosting such a cool event.

Update 22 Mar: you can now visit the GreaterIBM blog for the results and links to the videos.

Technorati Tags: , , ,

Roo is flying high

If you happen to be flying with British Airways this month, look out for their in-flight magazine Business Life. There’s a cover feature and 6 page article on Second Life. Roo is mentioned on the last page, although thanks to a typo they seem to think he’s Metaverse Evangelist at “IMB Labs” (sic).

(I realise it is nearly the end of the month, but I only just found out about this)

More tennis in Second Life – Australian Open

If you’ve been reading eightbar for a while, you may know that last year, some of the group put together a nice demo for Wimbledon (video available). The build was a proof-of-concept for taking a live feed of the balls from the Hawkeye system, and replaying the action in-world.

Well, the news is out on the Sydney Morning Herald site today, and Chris Yeoh mentions it too… a group from IBM has put together a really stunning build for the Australian Open. From the SMH article:

Over the duration of the two week tournament, data will be fed from games in the real Rod Laver Arena into the unreal one, nano seconds after happens.

The feed will come from game-tracking technologies such as the line-calling system HawkEye, PointTracker which plots shots and ball trajectories and Speed Serve which clocks the players’ serves.

I took a sneaky early tour of the site. There are some fantastic touches – for example, you can see rallies played out on the court, there are plenty of shops, open areas to chat, and video screens. Well done to the team involved (Pipe Hesse, Gizzy Electricteeth, and all the others) – this is really one of the best builds I’ve seen.

Click through for slightly larger screenshots, and be sure to visit once the site is open to all 🙂