Portal Turret Project

December 15th, 2011

My (then 6-year-old) daughter and me were pretty impressed by this build of a Portal Turret, and since she is quite a big Portal fan, this thing went straight up to the top of her birthday wish-list.

Actually, here’s the master plan she drew for me:

The Master Plan

Well, I guess I could do something with a bit of Styrofoam and paper mâché, I guess … let’s first draw up some more detailed plans:

Detail Plans

While I went to buy the material, my daughter couldn’t resist talking to her school friends that her ultra-cool father is building a robot for her …

… and it will talk and sing …

… and dance …

… and shoot …

… and fly …

… and then she invited all her friends to come and see it …

Well, the shooting and flying is out of the question, and the dancing would be tough. But singing and talking – well, let’s see what I can do.

With so much pressure on me now, we better get started before the kids arrive.

1. The Body

To hold it all together, I decided to start with a centre piece made of plywood:

Transferring the measurements

Pushpin Transfer Method

The core shape is ready to be cut out:

Turret Core

Better do this on the balcony where it is easier to clean up:

Turret Core (2)

Zofia is helping me to sandpaper the workpiece:

Sandpapering

Next step: I fixed two stripes of wood to the bottom where the legs can be attached later:

Core Base

Remember: wood lime holds better the more pressure is applied at this stage:

Pressure Wins

While the lime sets, we can start with the main turret body. For this I bought a few panels of insulation material from the local “bricolage” shop.

Once again, let’s transfer the measurements:

Styrofoam
Measurements

Zofia helped me with the cutouts (be careful with that knife!)

Careful with that knife

Looks good and all fingers are still attached. I call this a success.

Cutouts

Each body half consists of two and a half layers of Styrofoam which are glued together and cut to create the body shape:

Taking Shape

If the measurements are precise, it is actually easy to cut the body into shape:

Left and Right

At this stage, grandmother treated us with some delicious moist cake (no lie!):

This cake is real

Meanwhile some of Zofia’s school friends came by to see how things are going, and they helped us with the companion cubes you can see all over the place.

To get an idea how it looks like, I just clamped the two halves together:

The full mounty

To finish it up, I added a layer of filler putty to get a smoother surface and as a foundation for the outer shell (to be added later):

Layering

Let this dry and harden and let’s focus on another part of the project:

2. Electronics

Honestly, I was a bit scared of the electronics part. I never really made anything more complicated than connecting a light bulb to a battery. If this thing ever was to talk, I would probably need to learn a lot before I can make it work.

Luckily, just at that time the local hackerspace organised a Nanode soldering event. Just what I needed! The best way to get started with soldering is to meet up with nice people to share some solder, a multimeter and drink some Club Mate.

Most of all, this was a great starting point to learn a bit of of electronics to start my own projects. I also got myself a copy of a book called “Teach yourself Electronics” from an on-line bouquinist and quickly mounted a massive bill of electronic components just for “trying this out”.

In the end, I also replaced the Nanode I’ve soldered in the hackerspace with an Arduino Uno, which works better with the Wave Shield I am using for the “speaking and singing” part of the project.

Starting point for me was a old film capsule, an even older lens (I think I found this in the trash one day when I still went to school) and an oversized red LED, which all fitted neatly together, but never made it to the final build because the LED turned out to be too dim. Learning from your mistakes, that’s what this is all about. And making photographs, of course, here it is:

Eye of the Turret

Speaking of which, here’s also a photograph of the workplace. Note the tea can and the (non-incendiary) lemons in the foreground:

Workspace with lemons

More interestingly, here’s a picture of an early version of the setup, built into a cheap plastic case I’ve found and which has just the right measures to fit the design:

Electronics

Even better, the Arduino fitted nicely between the mounting holes at the bottom and it was quite easy to create the necessary holes in the case to make sockets, etc. accessible from the outside.

Interfaces

The SD-Card holds the WAV files with whatever a turret may say in the original Portal game (I’ve extracted the files from the game). I’ll post the source code to play them here later in case anybody is interested.

Z. of course wanted to help me with the soldering as well. She actually did some very nice solder points before she discovered that the tip of the iron is indeed hot.

Bring your daughter to work day

Oh, well, it’s all in the interest of science, and the burns were gone after a week or so.

On the picture above, we were actually working on the second version of the Eye:

Second Sight

Unfortunately, the 200W Helium-Neon laser that was planned for the eye didn’t make it through health & safety (duoh!) but have a look at this close-up:

I see you!

This is the final (well, somewhat) version of the “brain” box. You can see the PIR for motion detection and the transistor that drives the LEDs:

Turret Brain

There is also a second case for the other side which houses the speaker and a 9V battery so it can run without a power adapter. This has the disadvantage that it needs some cables to connect the two with each other, but it also helps to balance the whole machinery.

Surface

While the body parts now had the right shape and colour, it was still very sensitive to bumps and scratches. To resolve this, I added a layer of newspaper mixed with wallpaper lime. This gives just the right strength without adding much weight:

Paper King

[to be continued]

Still offline?

September 19th, 2011

On the occasion of the huge success of the Berlin Pirate Party in yesterday’s elections, here’s a little song text (to be sung to Still Alive from the game Portal):

Still Offline?

This was a triumph!
I’m making a note here:
HUGE SUCCESS!
It’s hard to overstate
our satisfaction.

Pirat-e Party
We do what we must
because we can!

For the good of all of us
Except the ones who’re offline.

But there’s no use crying over every lost vote
we just keep on trying till we run out of rum.

There are posters to be done,
and we print out our programme
for the people who are
still offline.

We’re not even jaunty,
We’re trying to be sincere right now.
Even though they tried to disdain
and trolled us.

And tried to divide us
and then patronised us
once again.
But we don’t care because we all
feel so happy we we won!

Now these votes all count up
to a nice round amount
and we won our seats
We are pwning the house

So we’re glad we got trolled –
’cause that’s how all the people learned
especially those who are
still offline.

Go ahead and troll us!
We won’t loose our peace of mind over that
Maybe someone else
will give you food?
Maybe those nazis
That was a joke! HAHA! Fat chance!!

Anyway we’ll have cake tonight
that’s so delicious and moist!

Look at me: still talking
when there’s still work to do.
When i look out there,
It makes me glad I’m not you!

We have web sites to be run.
There is politics to be done.
And there are people who are
still offline.

Like your grannie, she is
still offline

and all your friends, they are all
still offline.

And one day soon they won’t be
still offline.

And that’s your end because you are
still offline.

And then you’re dead because you’re
still offline

still offline?

still offline.

My lyrics are copyleft-ed, but some restrictions may apply to the music.

Local Environment Chat (LEChat)

August 5th, 2011

Time to mention a little project I’m working on since a while: A simple chat interface that will run inside your web browser (read: made in JavaScript) in combination with a server that can run under OpenWRT, which in turn means it can run on your old router at home. Yes, no dedicated server needed.

The whole project is still in its infancy, but there is an interface test installation (using PHP scripts as a backend).

The end product is going to be released under the GNU public license. Feel free to post comments here, or send me messages directly.

New Code Portal

November 19th, 2008

I used the opportunity that I had to do some redesigning anyway to start to consolidate my software to a new portal: The Kolmio Code Repository.

The first thing you find there is a JavaScript class to create (pseudo-) modal dialogs called js.Dialog. Have a look!

In the near future, I am planning to move more of my code to the new site. Especially the open-source items will probably find a new home there.

XML Cheat Sheets (German)

July 1st, 2008

Als Prüfungsvorbereitung für das Seminar “XML-Technologien”, habe ich wieder mal angefangen, ein paar Cheat Sheets zu machen. Vielleicht findet der ein oder andere das auch hilfreich, ich stelle sie jedenfalls mal hier online…

Den Anfang macht das Acrobat/PDF Document DTD Cheat Sheet. Darin wird auf (derzeit) drei Seiten alles kurz zusammengefasst, was man zu DTDs wissen muss.

Update: Im Acrobat/PDF Document xPath Cheat Sheet fehlen zwar noch ein paar Themen (vor allem die Vergleichsoperatoren), aber ich denke, man kann es schon mal ansehen.