Photo of the device

Pimp my Pianet

My gradfather owned a Hohner Pianet N. Sadly it stopped working several years ago and spent the last years merely as decoration for his flat. After he died I had the choice between scrapping or saving it. I didn’t like the thought of a musical instrument beeing scrapped, so I kept it and hoped to repair it one day. This is what I did and here are some things about the process that I want to share.

First of all: I like the manuals and advertising, that came with the Pianet. It is so different from everything you see today.




Let’s start with details about the Hohner Pianet N itself.

Photo of the device

It is mostly made out of wood, therefore it is quite heavy and it makes it look like a piece of furniture and not like a technical device.


The box, that contains the electronics, is shielded with some metal foil glued to the inside of the box. (bottom part, back wall, top cover)


The circuit board has only one side with copper traces (back side), the front side holds all components. There are only discrete elements built into the circuit. Transistors, resistors, capacitors, a photo-diode, a small light bulb (removed), two variable resistors and wires. this makes it easy to match the board to the circuit diagram that came with the device. The black pieces sitting on the metal rods are called sticky hammers.


Sticky hammers: The right one is the original, the left one is the replacement made from silicone.

What astonished most about this device is the fact, that the whole thing is designed for easy access to all its parts and easy replacement of parts. All you need is a screw driver, a soldering iron and the part you want to replace. Of couse this is the toughest part, because there are no original replacement parts anymore. However it feels great to know that you could repair it easily. This definitely isn’t true for any other device I dismantled so far. It is even better, that the device manual contains detailed schematics.

Let’s continue with a short description of the inner workings of the Pianet.

The way the Pianet generates sound is fundamentally different from other keyboard instruments. Harpsicords and pianos have strings as the basic sound generator. On pressing a key on a harpsichord a string is plucked, while the piano hits the string with a special kind of hammer.

So what happens when you press a key on the Pianet? Check this image first:

Some keys with attached rods, which carry sticky hammers sitting on metal reeds.


The key is connected to a metal rod. This rod has a sticky hammer attached to its end. This hammer is glued to the metal reed for this key with some very weak adhesive. When the key is pressed the hammer rises and pulls the metal reed with it. At some point the force of the lifting key exceeds the force of the adhesive sticking to the metal reed. The adhesive rips of and the reed starts vibrating, which creates the sound. It fades out until you can’t hear it anymore or until you release the key. After releasing the key the glue sticks to the reed again, stops its vibration and the key is ready to be pressed again. This process sounds a bit like playing the chimes.

But wait – isn’t the Pianet an electric device? Yes it is and the story continues. The metal reeds are attached to a metal bracket with one end while the other end can vibrate freely. Next to this vibrating end there is a straight metal bracket leaving a gab of approximately 0.5 mm to the reed. One of these brackets is connected to ground, the other one to 300V. Together the form a giant capacitor separated by air as the dielectric. Pressing a key lets a metal reed vibrate, which causes the capacitance to oscillate slightly. This causes a small charching/discharching of the capacitor, therefore causing a small alternating current alternating with the same frequency as the metal reed. This alternating current is first amplified in the Pianet, then fed to the Footswell, back into the Pianet and then finally to the audio output connectors on the back side of the pianet.

The Pianet also has a vibrato effect built inside. When I studied the schematics and the circuit board I was really amused how this effect was achieved: There is an oscillator circuit built into the circuit, that flashes a small light bulb a few times per second. Next to the light bulb is a photo resitor which catches the light. This resistor is part of the amplifier stage of the Pianet, so the flashing of the light bulb toggles the amplification factor between “high gain” to “low gain”. A simple, yet surprising way to solve this task.

Condition of the Pianet, when I got it.

The device is pretty old and so are all its parts. I first had a look inside the device, the amplifier and the schematics in the manual. Things I noted were:

  1. There are a lot of leaking capacitors in the amplifier, so it was completely useless.
  2. The Pianet came without a Footswell. At that time I did not know, that this was essential for the device to work.
  3. The capacitors on the circuit board of the Pianet seemed to be intact. However they looked very old.
  4. The light bulb on the circuit board was broken, so I removed it. It is used for the vibrato effect and I can go without it.
  5. The schematics of the Pianet showed, that it has segments working with 300V. I really had to be careful when poking around with it. This meant especially not touching anything while connected to mains.
  6. Almost all sticky hammers degraded over time and were useless. I expected producing my own replacements for it to be very tricky.

Then I began my work.

I googled for the sticky hammers and found a webpage dedicated to some Hohner devices:

They sell sticky hammers made of silicone, which work better and more durable than the original ones. Additionally they offer upgrade kits containing all capacitors and two resitors neccessary for my Pianet circuit board. I was lazy that day and ordered the upgrade kit instead of getting the parts myself. Some weeks later I recieved the parts. (The delay was not caused by They sent out the stuff one day after they recieved my order).

I ordered these parts from On the top is some copper shielding tape for reducing noise created by the keys. In the middle is the bag containing replacements for all capacitors and two resistors. The bottom shows the new sticky hammers made from silicone.

Reworking the circuit was pretty straight forward. also offered some annotated photos which made the replacement very convenient. Here is a copy of the tutorial from (Upgrade Pianet N). When I was done soldering I connected the Pianet to mains and waited for it to explode, which luckily didn’t happen.

Now it was likely that I had a working circuit board. I tested it with the Pianet amplifier, but as I expected, it was not working due to the leaking capacitors. I needed another way to test it. Finally I decided to connect it to my stereo. The output of the Pianet is rated with 300mV max, Google told me how to connect the audio signal and ground to a standard audio jack, the schematics contained information where I had to hook into the circuit and I was ready to go. But nothing happend. I turned to the schematics again and finally I understood why it wasn’t working. I had no Footswell. Its purpose is to dampen the audio signal to add some way of volume control. By-passing it was easy and I finally got something (Recording of first sounds I got test1).

The green wire connects to ground, the yellow wire connects to the mono audio signal of the Pianet. The white wires are actually both ends of the same wire and they by-pass the loudness control by the Footswell.

The green wire connects to ground, the yellow wire connects to the mono signal from the pianet.

The green wire connects to ground, the yellow wire connects to the mono audio signal of the Pianet. The white wires are actually both ends of the same wire and they by-pass the loudness control by the Footswell.

The sound was dim, there was a lot of humming, but it worked. So things left to do:

  1. Replace the sticky hammers by the new silicone ones. This also requires some cleaning of the metal reeds.
  2. Find another way to by-pass the Footswell. This was achieved by plugging a short piece of wire into the pedal connector of the Pianet.
  3. Find a more permanent way to connect the Pianet to a “modern” amplifier like my stereo. I hacked the original connection cable between the Pianet and its amplifier and added a standard chinch connector. (Of course I could repair the original amplifier, but I want to leave this for later.)

The blue wire by-passes the connector for the footswell, which controls the loudness. Without the blue wire and without a pedal (which I don’t have) the device is muted.

The connector is easily hackable by opening the locking mechanism on the top side of the white plastic.

This is the connector after dismantling it.

Here is the connector with the additional chinch output added.

This is a recording of the final result: test2

Future work: Learn how to play.

Software Defined Radio

The owner of this blog is currently working on an cheap, open and powerful software defined radio solution called HackRF. This seems to be very exciting.

Merge multiple pdfs into a single file

Ubuntu brings a nice package called “pdftk” for editing pdfs using the command line. This command joins multiple pdfs into a single pdf:

pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf

Here is another way to join pdf files, that only requires ghostscript:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=123.pdf 1.pdf 2.pdf 3.pdf

Using the commandline editor “sed” for batch renaming of files

Given a set of files, that all end with “.png.jpg”. We want to remove the “.png” from the filename. This can be done using the linux shell pipes and the commandline editor “sed”.

Examine this command: ls * | sed ‘s/\(.*\)png\.\(.*jpg\)/mv & \1\2/’ | sh

The interesting part here is of course sed ‘s/\(.*\)png\.\(.*jpg\)/mv & \1\2/’. The general syntax is “sed ‘s/patternToSubstitue/SubstituteBy/'”.

  • s means “substitute”
  • \(.*\)png\.\(.*jpg\) This splits the given string into a segment of arbitrary content \(.*\), another segment containing the fixed string “png.” and a third segment \(.*jpg\) consisting of a string with arbitrary content ending with “jpg”. The first and third part are dynamically created, so sed allows to reference them using \1 and \2
  • mv & \1\2 This part constructs a command that can be executed by the shell. The “&” references the original string passed into sed, the parts \1 and \2 are generated above and concatenated.

The result of this command is, that the substring “png.” is removed from all filenames in the current directory. Files that don’t match this pattern are not changed, because the mv command gets the same name as source and target file.

Imagemagick for batch processing of images

Imagemagick can apply a number of different filters at a time. In combination with the linux pipes it is possible to batch process a huge number of images.

The command below takes all images in the “data” directory and does the following steps:

  • Resize to 400×300 pixels
  • Transform to gray color
  • Apply a sepia effect to give the image an “old” style
  • Change (brightness,saturation,hue) from (100,100,100) to (100.35,100)

ls data/ | xargs -I {} convert data/{} -resize 400×300 -colorspace gray -sepia-tone 81% -modulate 100,35,100 -quality 60 {}.jpg

Show progress of “dd” process

The “dd” tool is very useful for cloning/backing up/erasing partitions and harddrives. However all these tasks take a long time and the “dd” command does not output status messages on the screen. You never know how much time the process will need to complete or how much data has already been processed.

Luckily there is a hidden way to get this information. Get a command prompt and enter the command below. Replace “Process-Id” by the id of the “dd” process, which can be obtained by “ps -A”.

kill -SIGUSR1 Process-Id

libusb couldn’t open USB device /dev/bus/usb/002/003: Permission denied.

The problem is, that libusb requires write access to USB device nodes. Check the entry

SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, MODE=”0664″

in the configuration file /etc/udev/rules.d/libusb.rules. If the file does not exist, create it. Adjust the entry to fit your needs. Maybe it is an alternative to add the current user to the group that has full usb access.

Using phplists with german special characters (Umlaute äöüß)

PHPList ( cannot handle german special characters (Umlaute äöüß) in a standard installation. I followed some hints to fix that problem, and at some point it worked. I’m not quite sure which step really fixed the issue. The things I tried are:

  1. Include the german language file in the config.php.
  2. Make sure that the charsets in the phplists configuration is set to UTF-8.
  3. Edit the texts/ translation file and change strCharSet to UTF-8
  4. Edit the admin/lan/de/language_info and set UTF-8 for charset.
  5. Open the database in phpMyAdmin and edit the phplist_message table. Set collation to utf8_general_ci.

EDIT: The PHPList version I used here is 2.10.17