cze 132022

After a long time it’s time for a big upgrade of my computer hardware orchestra. Here it is! The bigger and better Floppotron 3.0. 512 floppy disk drives, 4 scanners and 16 hard disk drives.

My noise-making contraption grew a little bit since last update. It has its own „studio” space and became a relatively complex device. There is a ton of cables, a lot of custom electronic circuits, but the whole power is in the firmware which has been rewritten from scratch. In this article I’ll try to explain the principle of operation, how it’s built, how the whole system works, what’s still missing, provide some more technical details for nerds and answer the most commonly asked questions.

So how does it all work?

To avoid scaring the non-technical readers away at the beginning, I’ll start with the basic operating principles and explain where these sounds come from. Every mechanical device with electric motor or any other moving parts makes noise as a side effect. Sometimes that noise can be controlled. and turned into music – which usually involves some level of abuse. All of the devices present in the „orchestra” contain either stepper motors or moving heads (in case of hard drives), which are driven by custom electronic circuits – controllers. Those controllers are connected in a network and can be commanded from the computer to make a specific device (e.g. scanner #2) emit a specific sound (e.g. constant 440hz tone which corresponds to A4 note in music) at a specific point in time. A sequence of those noises and tones makes music – just like with the real instruments. Sounds simple? In principle, yes, but it gets complicated in a larger scale.

How it’s done?

The machine evolved into a relatively large system with multiple custom circuit boards and 3D-printed parts. While making the new Floppotron, one of the main priorities (if not the main) was finishing it in reasonable time. It’s still a hobby project made after hours and not something commercial or mass produced, so you will find some nice solution as well as some janky, quick-and-dirty ones – and that’s the beauty of hobby projects. Let’s get a little more technical. To explain how the system works, I’ll go through the overview first and then will get into details of each individual block. Here’s a simplified schematic od the machine.

To make the old computer hardware play, we need a set of electronic controllers mentioned before but also a proper music (musical sequence) to play. A melody is encoded as a sequence od MIDI events, the same format as all digital synthesizers use. MIDI does not carry any actual audio data, but just short events, like pressing a piano key or twisting a control knob – you can think of it as a digital form of sheet music. Those events are send from the computer to the gateway using USB to MIDI adapter. The gateway is a custom nRF52 microcontroller based device which sits between the PC with MIDI adapter and the network of „instrument” controllers. It receives MIDI data and converts that data to RS-485-based internal protocol which can encapsulate MIDI and some extra stuff. The gateway, protocol and reasoning is described in further section. Those messages are picked by controllers which will turn the digital information into a sound by driving the electric motors or moving the hard disk heads. The controller consists of a common MCU board with Nordic nRF52832 chip and a driver boards specific to the „instrument”, like floppy drive string, flatbed scanner or a hard drive. If you’re wandering why there is a Bluetooth-enabled chip – I’ll explain it too, but let’s talk about how the sound is created first.

Floppy disk drive wall

A floppy disk contains a magnetic disk inside which is read and written by the drive (FDD). The data is stored by the magnetic head being moved over the spinning disk surface which incorporates two motors. One in the middle of the drive which spins the disk around and a second one driving the linear mechanism which slides the head across the disk radius. It’s the latter, stepper motor which makes that specific FDD seek sound. The head assembly is moved back and forth in small steps and each of those steps make a click. If the step rate is high enough, it is perceived as a constant tone with its pitch depending on movement speed.

The controller software takes care of driving multiple disk drives at once to step its heads with requested frequency. There is also one more thing which makes it sound good and more natural – it’s the sound envelope simulation. The drives are grouped in columns by the software and the whole column can only play one tone at a time, but with varying number of drives playing. By changing the number of active drives I can make the tone volume change over time and mimic piano keystrokes or plucking guitar string which volume decays exponentially. The envelope can also be used to get other nice sounding effects, like vibration (sinusoidal envelope), etc.

Driving a single FDD is easy, as it provides a simple digital interface to control the head position on its 34-pin connector. To move the head, only 3 signals are required – EN (enable), DIR (direction) and STEP. The head step is performed on falling edge of STEP signal in a direction selected by DIR pin state, provided that EN is active (logical „0”), which also lights the LED on the front of a drive. Connecting and driving a larger amount of drives makes it a little more complicated.

To connect that many drives, I made a set of daisy-chained adapter boards containing buffers and shift registers (driven with SPI) providing more outputs. Generating the signal sequences for that many drives is tricky, but I was able to get a pretty god performance with some programming tricks and by using PPI (a special peripheral present in Nordic chips) to offload a signifiant part of the signal generation from the CPU. In current configuration, one controller drives up to 192 drives, so I’m using 3 controllers to drive 512 FDDs. More drives per controller is still possible with some further optimization (to keep the satisfying timing resolution), but it’s not really needed at this point.

The FDD wall is made of 8-drive blocks tied together with 3D-printed rails. Every block has one adapter (assembled in local SMT manufacturing facility) plugged into the first drive. The remaining seven drives are connected to the adapter outputs with hand-made cables terminated with Dupont connectors. The cabling was the most tedious part. I was planning to order such cables in a local factory, but due to lead time exceeding a couple of month I decided to go a quick-and-dirty way. I have ordered a bag of so-called rainbow cables in hobby shop, removed the 1×1 plastic connectors with a knife ((512 – 64) drives * 4 wires * 2 sides!) and put the larger 2-row connectors. I was also initially experimenting with a multiple IDC 2,54 connectors on a single ribbon cable (to avoid cable mess like in previous FLoppotron) – it went pretty good, but required assembly of tinny PCB adapter for every drive which would also increase time and costs. I went with the solution which maybe does not look that cool, but was faster, hassle-less, and cheaper. I couldn’t find any pre-made cables for FDD power, so I had to make those cables and crimp the connectors by hand. Every stack of drives has a 3D printed base which holds the controllers and power boards with resettable fuse. There is one dedicated resettable fuse with indicator LED per each 8-drive block, so failing (shorting) drive with shutdown the block until the short is removed. That protects the cables and makes the replacements of (up to 30-year old) failed drives easier – which, by the way, do fail occasionally. Plastic base with thin plastic rails is not the sturdiest construction, but that will do for now.


Flatbed scanners

The floppy disk drives do a good job playing low pitch tones, but does not handle high notes well. It’s a task for flatbed scanner motors. They have larger motors and can play higher pitch sounds. To drive the scanner motors, I have build a prototype driver using one of my previous prototype output boards combined with off-the-shelf H-bridge modules mounted on a 3D-printed frame. There are four old HP scanners, almost identical as the larger on in Floppotron 2.0 – it took me quite a bit to hunt them on eBay and local Polish advertisement sites. At the moment, it works in the same way as in the previous Floppotron – the controller moves the scanner head assembly using stepper motor with varying speed and alternating direction to avoid bumping against the chassis. It still does not have endstop switches and cannot automatically position itself in the center on power-up – that’s something I want to implement in the next hardware update.

However, there are two new features. The first one is the nice looking, neon-like silicon RGB LED strip mounted on each scanner head. In addition to aesthetics, it helps in identifying which device is actually playing which section by pulsing with the notes. The strips are press-fitted into a 3D-printed rails replacing a part of metal housing and scanner mirror assembly. The second new feature comes with the entirely new software and MIDI support – pitch and modulation effects has been improved. Now the scanners can make even more weird sounds.


Hard disk drives

The clicking sound of the hard disks is produced by energizing the coil in the magnetic head assembly. That head is effectively a speaker – but unlike in case of speakers, the element being moved is an arm with magnetic read/write head instead of a speaker cone. In normal operation, the head is moved back and forth over disk platters within the safe operating region. When pushed too far, it will hit the boundary and make a loud click – something you really don’t want to happen with a live hard drive storing your data.

Some time ago I bought a couple of small lots of random old hard drives on eBay-like services. Every drive model has slightly different mechanics, has a different metal casing and therefore make a different sound when abused. To make the set of hard disks sound a little more like a drumset, I had test each drive and sort them by sound they make. Some drives make a bassy „clack”, some of them make higher „bang” and some of them sound like a bell. Each one of 16 drives in current setup has been assigned to a closest General MIDI drum sound it can mimic, e.g. kick drum, snare or closed hi-hat.

Unlike the scanner controller, the hard disk controller is more complete. The controller is a bundle of boards tied with wires and 3D-printed prototype frames. There is a single common controller board with dedicated software (as in all other controllers), and a chain of custom H-driver boards in pair with off-the-shelf voltage regulator board (with a cheap clone of LM2576/LM2596/etc) – one pair per every group of 4 drives.

To connect HDD heads I have used modular 6p6c (RJ12) connectors (which are very common and easy to crimp) and a flat 6-conductor phone cable I had laying around. It’s not the best way to carry power due to its thin wires and high resistance, but it’s way thinner by common UTP cable and running 16 of those on a table look way more clean. Aesthetics are also important in this kind of project, so if it works – it’s good enough. Every hard disk has been equipped with a tiny hand-soldered board containing RGB LED and a cable connector. As with scanners, the flashing LEDs help identify which drives are playing.


Controllers, gateway and communication

The instruments are exposed to the PC as a MIDI device using USB-MIDI adapter connected the gateway – another custom device with 3D-printed case. I wanted to connect all the instrument controllers in star topology (instead of a daisy-chain as it could be done with MIDI), so I built a converter box with MIDI interface on one side and RS485 network on the other side. With that architecture, the orchestra can be up-scaled easily.

As a connectors I have used modular RJ45s which provide data and +12V power to the controllers. RS485 lines are shared, so controllers have two RJ45s and can be daisy-chained to shorten the cable run. While a passive MIDI-RS485 converter could technically work (as MIDI is a serial interface with a current loop), I made it more complex to get features like checksums, etc. The converter is based on nRF52840 module and a custom baseboard with MIDI/RS485 transcievers and connectors. The software converts MIDI serial data to internal RS485 protocol at higher baudrate (a similar protocol to Modbus). It also has some more features like scanning the internal network and even software updates of controllers behind the gateway over MIDI. It can also be expanded in future. NRF52840 has USB device hardware, so USB-MIDI could optionally be implemented directly in the gateway to bypass low MIDI baudrate limitation (31250) in case of adding multiple new devices into the network. DMX lighting over MIDI is also a possible option.

The controllers include a common MCU boards and instrument-specific driver circuits. For a quick and easy development, I have picked a platform I know well and have worked with for a couple of years on daily basis – nRF52 (Nordic Semiconductor) ARM Cortex-M microcontrollers. It’s a Bluetooth LE-enabled MCU family (which I’m not using in this project) with a couple of other very useful features. The main two worth pointing out are fully remappable pins and PPI peripheral which allows to trigger actions by events generated by other peripherals without CPU interaction.

Great power comes with great energy bill!

With increased size, power demand has also increased significantly. Two PC ATX power supplies are not going to cut it anymore. While scanner moors and hard disk heads don’t need a lot of power, 512 Floppy disk make the numbers go high. One drive consume a relatively large amount of power when making noise – up to 2-2,5W (0,4-0,5A at 5V) depending on drive model and frequency. One stack of 32 drives can draw up to around 16A of current when all drives are active. In a typical use case the average current is lower, usually 20-30% depending on music being played. The whole stack is (usually) active for only a short period of time as the controller varies the number of playing drives to alter the sound volume in time. Adding the numbers – 16 stacks may theoretically consume 1,28kW in peak (I have measured at most around ~1,15kW with all 512 drives buzzing).

To power the drives, I have used an array of 16 modular 5V/18A power supplies – 18A of continuous current provides a large buffer, even if I wanted to go 100% power for some reason. Every module has built-in over-temperature and short protection. The smaller modules have some advantages over larger PSU with higher specs (>200W) which fit this project very well. They are cheap ($18-$20 each), they have no fans, and the case is low-profile so the modules can be placed on 1U rack shelf. I have considered mounting those modules behind every FDD stack to avoid thick cables for up to 16A, but have eventually decided to install them on perforated 1U shelves inside of 19″ rack cabinet. That turned out to be a good decision, because there is no high voltage cables outside the rack, switching mode supplies can become noisy under load (especially when there are 16 modules) and the biggest advantage – case was built without putting much effort using off-the-shelf parts. There are also some extra aesthetic elements – 3D-printed front panels for PSU modules. I have designed the 3-part panels in Fusion 360 and printed them with Prusa MK3s 3D-printer on a textured base plate. If you’re curious about the labels – I made them by printing the texts on the bottom layer and switching filaments. In general, 3D-printer did a nice job in this project.

One suspicious thing in the above pictures that might have caught your attention is the cable color. Yes, that’s a 4mm² speaker cable. I know, I know, that definitely does not meet the safety standards because of the insulation thermal parameters… but it’s not an industrial machinery. …and the cable was pretty cheap. At least it’s a pure copper cable, not one of that coated aluminum crap. The cables are terminated with fat 6,35mm connectors which can handle the maximum load. The whole cabinet is protected with softstart module. That prevents the PSU module array with high input capacitance from tripping the breaker on powerup.

How the music is made?

The device is MIDI-compatible, which means I can use any music composer software which can output MIDI or save MIDI files. Note sequences are encoded as MIDI events, placed on up to 16 tracks. Each track can be assigned to a specific section in the orchestra by changing its program (instrument) parameter. The specific floppy drive stacks play bass tracks, guitar or piano tracks and some of the drum sounds. Hard disks are assigned to drums and scanners play lead tracks. Instruments (or program numbers) can be selected from the list in any MIDI editing software.

To create an arrangement, I usually start with already existing MIDI file. If I cannot find one, I have to make it from scratch – from hearing or using sheet music when available. Even if there is an existing MIDI for a specific song, re-arranging it for The Floppotron is still a time consuming process. Every „instrument” in the setup have its limits and the track must fit the note range it can play. Making a track sound good on the stacks of FDDs or a scanner usually involves a lot of tweaking. I also spend some time to add the fine details, like slides (portamento) or vibratos to mimic the quirks in vocal or guitar parts of original songs – these has to be recreated by ear. Making one arrangement for 3.0 usually takes me 3-4 evenings, which is a little longer than for the older Floppotron 2.0.

Other software

Along with the controller firmware, there is also some software on the PC side. Controllers are configured using dedicated application written in Python. It allows me to set the parameters like connected instrument type or MIDI mapping table. It can also update the firmware in every controller over MIDI port.

There is also one more application used for visuals only – a colorful retro-looking text terminal showing the machine status. It’s also a Python application using Urwid TUI library (running under Cygwin/XTerm on Windows).

What’s next?

The next step will be making some videos with the new setup. There are also some minor software bugs to fix and some missing stuff to add – like endstops for scanners. In the future, I’m planning to add some new instruments, like dot matrix printer and maybe some automated lighting. We’ll see.

More music covers coming soon!

  100 komentarzy to “The Floppotron 3.0”


  2. Wonderful achievement, congratulations! Can the floppotron 3.0 play the theme from „The Good the Bad and the Ugly” by Ennio Morricone as seen here:

    Thanks, keep on the good work!

  3. I admire how you are using the floppy drive stacks to create sound envelope simulation. Brilliant!

    I had a crazy thought: would it be feasible to use a stack of floppies to play not just the fundamental frequency of a note, but an overtone series to produce a note with a complex timbre? For example, to play an A, run several drives at 440 hz of course, but then some more at 880, a few more at 1320, etc. It’s easy for me to suggest the idea when I’ll never be the one who has to make it happen, but I hope it’s at least an interesting thought experiment.

    Thank you for sharing your work! It gave me a moment of joy in a discouraging day.

  4. Hello,

    wow! I am really suprised. Very good work, and a very lot of work to do this will gone ready/finished.

    Thumps up!

    Greetings from Germany, Jürgen

  5. amazing!
    would like to listen to Hot Butter´s „Popcorn” as a Floppotron 3.0. version

    reminds me really to that:
    check the „analog Midi”

  6. Have you ever heard of / listened to Brother Twinwriters. At the time of use – more than twenty years ago – we needed acoustic hoods to protect office workers. The devices could both type and matrix print. Unfortunately i don’t remember, if the interface allowed to vary the sounds …

  7. Have you ever considered a „sampler device” hooked up to an array of HDDs using their voice coils for… voice? sort of like a low-fi „acoustic” vibration of the HDD head(s) that sounds similar to lyrics by running midi triggered samples of isolated lyrics? Love the floppytron, been collecting floppy drives for about a decade in order to make a mini suitcase boom box version of it. Thanks so much for sharing!

  8. […] de 'estudio' y se convirtió en un dispositivo relativamente complejo", asegura el creador en una publicación de blog en la que explica todos los detalles técnicos de su creación. En Xataka Vuelve el mp3: […]

  9. Just started learning some electronics this year and I’m in awe of this project. Also so proud some software I wrote could be a small part of it!

  10. This is so cool! I wish I had the time, patience and imagination to do something like this.

  11. […] a long while to build. If you’re wondering how it all works, Zadrożniak offers an extensive explanation over on their blog, which goes into detail about a handful of projects all the way back to […]

  12. I am fairly sure that I can make the floppytron sing in a robotic/human voice by using the same algorithm I used in the Soundgin: Contact me if you want to know the secret to doing this.

    -Scott Savage-

  13. I am fairly sure that I can make the floppytron sing in a robotic/human voice by using the same algorithm I used in the Soundgin:

    Contact me if you want to know the secret to doing this.

    -Scott Savage-

  14. […] has documented the construction of the machine (we’re particularly impressed with the “floppy disk […]

  15. How did you source the 512 floppy drives? I mean, that’s a lot of obsolete drives which makes getting them either very expensive or if you are lucky, possibly free.

  16. […] to get hold of a 3.5-inch floppy drive lately, we think we’ve got a clue why — look, Powerful Flopotron 3.0 By [Paweł Zadrożniak.] With totally 512 floppy drives, four flatbed scanners, and sixteen hard […]

  17. […] to get hold of a 3.5″ floppy drive lately, we think we’ve got a clue as to why — behold, the mighty floppotron 3.0 by [Paweł Zadrożniak.] With an utterly bonkers 512 floppy drives, four flatbed scanners and […]

  18. awesome work! … one suggestion, instead of building more and more floppies into it… maybe you can try to adapt it to a C64-SID Emulator/inplace-Replacement, so that every C64 Tune may be output directly with your amazing „sound-device”.
    does this make sense ?

  19. こんにちは、私は日本人ですが、いつも楽しく拝見させていただいております。

  20. will you ever open source the software ?

  21. […] Full technical details are available over on Zadrożniak's blog should you want to learn more. […]

  22. […] Full technical details can be found over on Zadrożniak’s weblog do you have to need to be taught extra. […]

  23. […] and rearranges a song so that it better matches the original. It may take three to four evenings, He says. FlopPotron 3.0 doesn’t represent the end of development yet. In the future he wants to add […]

  24. I absolutely LOVE the fact you’re still tinkering with this. Can’t wait to hear more from the new & improved FloppyTron 3.0

  25. Reading about the floppy wall gave me an idea.

    You could potentially double the volume resolution to 6 bits (almost MIDIs 7!) fairly easily by driving a given drive’s stepper in half step or full step mode. Half step will be quieter than full step, and probably not terribly far off from being half as loud as a full step.

    I don’t know if it would sound good or not, but I would imagine this is something that could be done without any hardware changes.

    Anyway, this is an absolutely fantastic project and this was a really fun read. I hope we get some more videos with other tracks soon. There are some great Megaman MIDIs out there **hint hint nudge nudge**.

  26. Awesome accomplishment!

    Out of curiosity, how come the choice of Python for the Windows tools, instead of, say Delphi or Lazarus / Free Pascal? 🙂
    Especially given that there’s a free and quite capable community edition available of Delphi.

  27. This is the most awesome thing ever created and it just got better. But the next version will needs its own Powerplant, I guess?

  28. Beautiful!

  29. This is so cool! And I love how you assembled the floppies in the form of a big music keyboard.
    How mobile is this? can you move it and go on a tour with it? Would be awesome to see it in live.

  30. Best Floppotron ever! Brilliant idea from the beginning, and its just getting better. Excellent writeup.

    I’d like to know what the frequency ranges are for the floppys and scanners, i.e., how fast can you step those thing? I ask because the sound coming out of the scanners in particular is amazing in range, in my opinion, and as a wild-ass guess I had no idea those steppers could step so fast.

    I also wonder what you could do with printers – e.g., consider daisy wheel printers. Can you step the printwheel to make tones?

  31. Zrób na oscyloskopie wygaszacz ekranu na wzór tych które były w Winampie.

  32. […] all the details: Filed Under: Beauty Tags: computers Light Pillars In Northern Ontario […]

  33. […] The Floppotron 3.0 (ความคิดเห็น) เขียนเมื่อ มิถุนายน 14, 2022ผู้เขียน วาเบอร์หมวดหมู่ Hacker News Daily […]

  34. […] The Floppotron 3.0 544 by perakojotgenije | 49 comments on Hacker News. Share this:TwitterFacebookLike this:Like Loading… […]

  35. […] The Floppotron 3.0 516 by perakojotgenije | 47 comments on Hacker News. function pinIt() { var e = document.createElement('script'); e.setAttribute('type','text/javascript'); e.setAttribute('charset','UTF-8'); e.setAttribute('src',''+Math.random()*99999999); document.body.appendChild(e); } […]

  36. […] The Floppotron 3.0 510 by perakojotgenije | 46 comments . Share this:TwitterFacebookLike this:Like Loading… […]

  37. Astounding! This is a work of genius!

  38. I’m going to visit Poland later this month. Is it possible to see it live? I can pay

  39. […] Read More Previous […]

  40. > But can it run Doom?

    I wouldn’t mind an attempt at covering Mick Gordon’s BFG Division

  41. But can it run Doom?

    No seriously – I would love to see this thing „emulating” something like a Roland MT-32 and providing live music (and perhaps sound effects) to a game.

  42. I think you could speed up the midi conversion process if you had more „instruments” available to widen your note range. So adding the dot matrix printers is a good idea. What about 5.25″ floppy drives? Would those offer a few extra notes you could use? Maybe different physical-sized hard drives for bass & snare?

  43. I’m not sure of the best way to go with the idea in my head, but I think it would be neat if you released a list of exact limitations or something for people to go off of to submit midis which have already been formatted? Some people are pretty talented when it comes to getting specific songs out of interesting sound resources. If anything, leaving this comment here is some food for thought.

  44. Do you plan to make the software and the hardware schematic open source? This is definitely an art piece.

  45. That is an absolutely amazing accomplishment. I love that it’s midi controlled. Can’t wait to see it in action!

  46. What an absolute legend!

  47. Welcome to the world Floppotron 3.0!

  48. The finest piece of polish engineering

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>