Blinking bats

A second slice of LED-based Halloween goodness.

Blinking bats from nikkipugh on Vimeo.

These bats will be part of my attire for later today, but they’re really quite pleasing just by themselves!

A really simple build using an Arduino-based Real Bare Bones Board, some cardboard, some insulation tape some wire and 14 LEDs.

Here’s the code:

/*
blinking bats
nikki pugh 30th October, 2010
Attribution-NonCommercial-ShareAlike Creative Commons
Powers LED eyes for a colony of bats, blinking them in a random sequence at random intervals

http://npugh.co.uk/blog/blinking_bats/

LED pairs with 330ohm resistors in series, connected between the output pins and ground.
*/

int colonySize = 7; // How many bats do you have?

//control pins for each bat

int bat1 = 2; // bat1
int bat2 = 3; // bat 2
int bat3 = 4; // bat 3
int bat4 = 5; // bat 4
int bat5 = 6; // bat 5
int bat6 = 7; // bat 6
int bat7 = 8; // bat 7
int bat8 = 9; // bat 8
int bat9 = 10; // bat 9
int bat10 = 11; // bat 10
int bat11 = 12; // bat 11

int gap = 3; // gap before selecting next bat to blink
int colony[] = {bat1, bat2, bat3, bat4, bat5, bat6, bat7, bat8, bat9, bat10, bat11}; // Put bat IDs into an array
int batSelect = 1; // your bat selection variable - used for selecting a bat ID from the above array
int blinker = bat1; // the bat selected to blink
int i = 0; // counter for start-up blinks

void setup() {

randomSeed (analogRead (0)); //read from the (unused) analogue pin to get a value to seed the "pseudo-random number generator"

pinMode(bat1, OUTPUT); // set pins to be outputs
pinMode(bat2, OUTPUT);
pinMode(bat3, OUTPUT);
pinMode(bat4, OUTPUT);
pinMode(bat5, OUTPUT);
pinMode(bat6, OUTPUT);
pinMode(bat7, OUTPUT);
pinMode(bat8, OUTPUT);
pinMode(bat9, OUTPUT);
pinMode(bat10, OUTPUT);
pinMode(bat11, OUTPUT);

}

void loop() {

for (i = 0; i< 3; i ++) { //blink all bats' eyes at start-up

digitalWrite(bat1, HIGH);
digitalWrite(bat2, HIGH);
digitalWrite(bat3, HIGH);
digitalWrite(bat4, HIGH);
digitalWrite(bat5, HIGH);
digitalWrite(bat6, HIGH);
digitalWrite(bat7, HIGH);
digitalWrite(bat8, HIGH);
digitalWrite(bat9, HIGH);
digitalWrite(bat10, HIGH);
digitalWrite(bat11, HIGH);

delay (200);

digitalWrite(bat1, LOW);
digitalWrite(bat2, LOW);
digitalWrite(bat3, LOW);
digitalWrite(bat4, LOW);
digitalWrite(bat5, LOW);
digitalWrite(bat6, LOW);
digitalWrite(bat7, LOW);
digitalWrite(bat8, LOW);
digitalWrite(bat9, LOW);
digitalWrite(bat10, LOW);
digitalWrite(bat11, LOW);

delay (200);

}

digitalWrite(bat1, HIGH); //all eyes back on again
digitalWrite(bat2, HIGH);
digitalWrite(bat3, HIGH);
digitalWrite(bat4, HIGH);
digitalWrite(bat5, HIGH);
digitalWrite(bat6, HIGH);
digitalWrite(bat7, HIGH);
digitalWrite(bat8, HIGH);
digitalWrite(bat9, HIGH);
digitalWrite(bat10, HIGH);
digitalWrite(bat11, HIGH);

while (true){ // infinite loop
gap = random(1, 5); //wait some seconds before selecting next bat
delay(gap*1000);

batSelect = random (0, colonySize-1); //select a bat at random
blinker = colony[batSelect];

digitalWrite(blinker, LOW); //blink
delay(200);
digitalWrite(blinker, HIGH);
}
}

EMF detector

Again for the school-project-that-I-cannot-mention-explicitly-by-name-because-of-Google.

As an extra tool for us to use in our investigation into the unseen, I constructed an Arduino-based electromotive force (emf) detector. I’ve made breadboard versions of this before, but now it was time to build something a little more permanent.

barebones Arduino, 10 LEDs and a plastic case from a pound shop screw set

barebones Arduino, 10 LEDs and a plastic case from a pound shop screw set

The LEDs light up in proportion to the strength of electromagnetic field detected. Since electrical currents are intrinsically linked with magnetic fields (can’t quite remember my A-level Physics) placing the antenna near to power sockets and electrical items light up some of the LEDs.

4-way gang lights em up

4-way gang lights 'em up

bing

bing

The microwave seems reassuringly well shielded:

But my clock radio and bedside lamp are a tad alarming!

It’s very interesting hunting around the room for different effects. Orientation of the antenna changes the number of lit LEDs, as does switching things on and off. I’m curious to see how the detector responds to big classroom equipment such as smartboards and projectors, but of course the main point is observing how the children respond to being able to visualise things they wouldn’t otherwise be aware of.

Third party nunchuk plus Arduino

I’ve just got an Arduino to read data from a cheap third party wii nunchuk controller.

Because it wasn’t a genuine controller, it had 5 wires instead of 4 and the colours didn’t match with the tutorials [windmeadow] [TodBot Bionic Arduino class 4, pdf] I could find online.

I had to do a bit of experimentation to find out what went where. Recorded here in case it helps someone and for when, inevitably, I try and do it again in a few months’ time…

Bad photo of something I'm very pleased to have got working :)

Bad photo of something I'm very pleased to have got working :)

Wires

So, not only are there 5 wires instead of 4, but the colour coding is very different too. Opening up the case to the nunchuk and looking at the PCB shows some convenient labels:

GND – brown
SDA – red
SCC – yellow
VDD – blue
also
J1 (seems to be connected to VDD) – white

I managed to break off the white wire at the PCB whilst I was prising off the hot melt glue to look at the labels, and the following worked without re-connecting it…

Code

This post on the Arduino forum shows edits to make to Todbot NunchuckPrint sketch in order to get it to work for third party controllers.

Build

After testing on a breadboard, I soldered the wires to some headers for ease of use later.
With the above code red goes to Analogue 4 and yellow goes to Analogue 5. (Either connect the other two wires to GND and 5V pins, or the code allows for blue to Analogue 3 and brown to Analogue 2.)

And then…

Haven’t quite figured out what I’m going to do with this yet!

The Secret Knock in the Box talks back

Remember the Secret Knock in A Box? Over the last couple of months I’ve had the support of Aston University’s School of Engineering & Applied Science to make a prototype PCB so that I can develop a kit for making it.

Here’s the first one we’ve made:

First PCB design (with additional hot melt glue strands, for effect)

First PCB design (with additional hot melt glue strands, for effect)

The basic circuit works and I’m also trying out a piezo element as the knock detector. It’s very sensitive!

As well as adjusting the sensitivity, I want to explore how the box responds when you give it the correct secret knock: should it unlock itself? should it disarm an alarm? should it … ?

Here’s a little experiment towards making it knock back. Thanks to GB and his help, last night at fizzPOP we managed to get the box to buzz back the correct knock once it had been entered.

Responding Secret Knock in the Box from nikkipugh on Vimeo.

Next step is probably to get to grip with transistors so I can then include a solenoid to knock instead of buzz.

The Bloop galleries

I’ve been compiling photos other people have taken of The Bloop game and sonar goggle experiments I did at the Hide&Seek Weekender into some Flickr galleries.

The Bloop at the Weekender #1
The Bloop at the Weekender #2
Sonar Goggle Experiments at the Weekender

It’s always good to see your events from the perspective of others and there are some really nice shots in there. Here are a selection of my favourites – click on them to go through to the source on Flickr.

Whales Ahoy!

The Bloop

Wining Whale

Hide and Seek

Find Each Other

Thanks again to everyone who took part – either as player or audience.

Two days of sonar goggles at the National Theatre

Last weekend I ran 2 games of The Bloop as part of Hide&Seek’s 2.5 day celebration of all that is playful.

Following oblique coverage in the Guardian and footage of the playtest at Warwick Arts Centre, demand for places far outnumbered the availability, even though I was asked to squeeze another 8 players in.

To be honest I don’t remember a whole lot from the games themselves: the sun shone; a tale was spun; krill jumped as far as they could and the whales swam. There were smiles; there was laughter; there were gasps; there were winces. Loads of people came up to me afterwards to tell me how much fun they had had!

Here are a few snapshots:

A krill pounces.

A krill pounces.

A whale heads from the feeding grounds towards the sound of Serge Gainsbourg.

A whale heads from the feeding grounds towards the sound of Serge Gainsbourg.

A whale makes a bid for freedom.

A whale makes a bid for freedom.

A big thanks to my 3 assistants for fetching barnacles and catching whales for the duration. The rest of my photos can be found on Flickr.

Since so many people missed out on whaling on the Saturday, I took 3 pairs of sonar goggles with me when I returned for the Sunday games. In the hour or two of gaps I had between whispering ‘patatas’, looking for invisible golf holes and trying to find my queen, I invited people to come and try them out.

This quickly turned into trying to find new ways of playing with them. This is what I like about the Weekender: there’s a really nice balance of people who want to figure out new ways of playing; people who will try out those new things, people who will ask “hey, what are you guys doing, can I join in?” and people who will interact from the sidelines in a good humoured manner. Hat tip to Giacomo for his catalytic skills and enthusiasm.

Shireen models the sonar goggles

Shireen models the sonar goggles

Dont mind us, were just trying something out...

Don't mind us, we're just trying something out...

The first experiment that evolved was to release two be-goggled people into vaguely the same space and see if they could find eachother:

The answer appeared to be, “er, not really”.

We soon gained some more interested people, so we then used all three pairs of goggles and had enough extras to act as chaperones for the next experiment. A race across the room to the cordon in front of the doors:

Fun and interesting on a range of different levels and in a variety of different directions!

The rope area became involved in a live link-up game in Delhi so we adjusted our course and the next video is a snippet of trying to navigate about three quarters of the way around the Olivier Foyer:

So much to like! Thanks to everyone who contributed.

Stand by for more sonar goggliness as we build on these experiments to develop a full-blown game…

Bloop playtesting this Saturday

On Saturday the 10th of July I’ll be running The Bloop as part of the Hide&Seek Weekender at the National Theatre in London.

Trying out the sonar goggles

Trying out the sonar goggles

Following on from the recent playtest at Warwick Arts Centre and feedback from the players, I’ll be making some changes to the rules and I want to test these out before unleashing the new iteration on the Weekender crowd.

If you’d like to get a sneak preview of the new game and also a chance to try out the sonar goggles I’ve been making, come along to the mac at 4pm on Saturday for a playtest.

You’ll be able to find me in the Terrace Gallery with a host of games people at the bargmeet, once that’s finished we’ll head outside into Cannon Hill Park for an hour or so to try out some Bloop variations.

Krill hunt sonar-navigating whales from nikkipugh on Vimeo.

All are welcome, although don’t expect a full run of the game – this’ll be more about little experiments and tweaking variables. The video above gives you a good idea of what sort of thing to expect though.

It’d be really useful if you could let me know if you’re intending to come along – that way I can bring along an appropriate amount of kit.

See you there! Terrace Gallery (by the stairs) 4pm, moving out into the park until about 5pm. We’ll be the ones with the whales on our heads.

Playtesting The Bloop at Warwick Arts Centre

Warwick Arts Centre: where we discover krill have surprisingly long reaches...

Warwick Arts Centre: where we discover krill have surprisingly long reaches...

Following on from the initial lab and adventures with electronics, it was time to test evolved game The Bloop with some players and see how it was shaping up as a fun thing to play and entertaining spectacle to watch.

I think we did alright!

2 krill tag a whale after getting it on a classical pincer movement

2 krill tag a whale after getting it on a classical pincer movement

Krill await a whale about to leave the exclusion zone around the breeding waters

Krill await a whale about to leave the exclusion zone around the breeding waters

I had several people approach me as I was preparing for the game saying how much they were looking forward to playing it. When asked why, the answers usually related to the ridiculousness of it and how much fun it looked. Considering the game hadn’t been played anywhere yet I consider this pretty good going!

Bloop headwear: perhaps a contributing factor to perceived levels of ridiculousness... (photo courtesy of Marie Foulston)

Bloop headwear: perhaps a contributing factor to perceived levels of ridiculousness... (photo courtesy of Marie Foulston)

There were a few issues with a wave of exhausted batteries for the music, but other than that the tech worked well, with only one on-and-off-again required for the sonar goggles. We’re oh so nearly there with the game design but all the major ingredients are in place and what remains are tweakings rather than re-thinks. A big thanks to everyone for their feedback and also to Hide&Seek and Fierce for hosting.

I didn’t get much of a chance to stand back and observe, but I shall leave you with a few short videos to whet your appetite for further iterations of the game. I’m talking all over the second one I’m afraid, because two security guards came up and asked me what was going on and then were curious to find out more. Job done!

Lone whale hunts feeding grounds from nikkipugh on Vimeo.

Krill hunt sonar-navigating whales from nikkipugh on Vimeo.

If anyone’s got any photos or video from the game that they’d like to share, I’d be very grateful. Give me a nudge with a link in the comments or send me a message.

The Bloop at Warwick Arts Centre

This Saturday evening I will be running the first plays of my new pervasive game The Bloop at Warwick Arts Centre.

The event is the Hide&Seek Sandpit, run in association with LIFT, London International Festival of Theatre, as part of Fierce’s Interrobang programme.

In practical terms, what this means is that you can come to Warwick Arts Centre (at the University Of Warwick in, er, Coventry) for 6pm and take part in a whole host of games and playful things, for free!

Sonar goggles

Sonar goggles

The Bloop (set in the deep ocean off the coast of Chile) will be the first public outing of the sonar goggles I have been developing. If you are playing as a whale, you will be using these goggles to navigate the playing space by sound rather than by sight.

There will also be colourful ribbons, inflatable whales and bothersome krill.

Hope you can come and join us for an evening of fun and challenge!

Welcome to 50°S, 100°W

The narrative of pervasive game The Bloop.

Throughout the Summer of 1997, underwater microphones used by the U.S. National Oceanic and Atmospheric Administration thousands of kilometres apart detected the anomalous sound known as The Bloop.

Extremely loud and low frequency, this noise defies explanation. Scientists have yet to identify its cause: we have no knowledge of a creature large enough to make a sound of this type.

Whatever it is, it’s still down there.

Welcome to 50°S, 100°W.

Whales traverse the deep waters off the coast of Chile on their seasonal migrations between breeding grounds and feeding grounds. Relying solely on their instincts and use of sonar to navigate these murky depths, the whales nonetheless perceive that something a little odd is going on around here.

The krill here – normally a tasty snack for the whales – seem motivated with a strong sense of purpose. When The Bloop calls to them they move in unison in a way the whales don’t quite understand and yet intuitively understand should be avoided…

Humpback Whales Feeding 1



Copyright and permissions:

General blog contents released under a Creative Commons by-nc-sa license. Artworks and other projects copyright Nicola Pugh 2003-2013, all rights reserved.
If in doubt, ask.
The theme used on this WordPress-powered site started off life as Modern Clix, by Rodrigo Galindez.

RSS Feed.