Archive for the ‘Software’ Category

Portal Turret Project

Thursday, 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 wood:

Transfering the Measurements

Transferring the measurements

Pushpins make the transfer really easy

The core shape is ready to be cut out:

Ready to cutout

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

The first cut is the deepest.

Zofia is helping me to sandpaper the workpiece:

Zofia helps sandpapering

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

Strenghtening the base

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

Needs to be fixed very well!

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:

Transfering the MeasurementsWith measurements applied

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

Careful with that knife, Zofia!

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

Raw cutouts

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

It starts to take shape

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

Both halfs cut in shape

At this stage, grandmother treated us with some delicious moist cake:

Delicious moist cake

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:

Provisorically clamped together

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):

Smoother surface

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.

Here’s a picture of the setup built into a cheap plastic case I’ve found and which has just the right measures to fit the design:

Arduino Uno (underneath) and Wave Shield in a case

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.

Holes cut to access the Arduiono ports

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.

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.

I also found a nice oversized red LED for the eye, and even better: an old ocular or something which nicely fitted into an old film tube. Here it is before assembly:

The Eye of the Turret

And here how it looks when it (provisorily) assembled:

The pre-assembled Portal Turret

The wings are still missing, as you can easily see, and the foot is just a contraption to hold it in place for tinkering with it. Still some work to be done here …

(to be continued)

Local Environment Chat (LEChat)

Friday, 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

Wednesday, 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)

Tuesday, 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.

RegEx Cheat Sheet (German)

Tuesday, January 15th, 2008

Nachdem ich viel gutes (und z.T. auch kritisches) Feedback zum Java Cheat Sheet bekommen habe, hier noch einmal etwas ähnliches: das Acrobat/PDF Document RegEx Cheat Sheet.

Wie gewohnt ist das alles so kurz und knapp wie möglich beschrieben. Wer noch keine Ahnung von RegEx-Mustern hat, sollte sich wohl besser erst mal woanders schlau machen, aber wer eine gute Referenz sucht, die er vielleicht an die Wand pinnen kann, ist hier richtig.