CAM00386

Remember the famous floppy drives? They’re back… with multiplied force (yes, THAT „force”) and some friends!

I have bought some more drives in order to expand the previous project back in 2012, which spent four years in a carton box. Together with new floppy drives, some more hardware has arrived: hard disk and optical scanners. Now I have the whole computer hardware orchestra – 64 floppy drives, 8 hard disks and 2 scanners – The Floppotron.

How does it work? The principle is simple. Every device with an electric motor is able to generate a sound. Scanners and floppy drives use stepper motors to move the head with sensors which scans the image or performs read/write operations on a magnetic disk. The sound generated by a motor depends on driving speed. The higher the frequency, the greater the pitch. Hard disks use a magnet and a coil to tilt the head. When voltage is supplied for long enough, the head speeds up and hits the bound making the „drum hit” sound. The disk head coil can also be used as a speaker to play tones or even music, but… that would be too easy and too obvious.


    
Every column of 8 floppy drives is connected to one 8-channel controller built on ATMega16 microcontroller. One controller acts as one voice with envelope simulation – the higher the volume, the more drives are playing. This allows to make ADSR-like shape and simulate a musical instrument, like a piano (exponential decay) or string instrument (sine, „vibrato”). The boards which were made a few years ago, were designed as a stand-alone „players” with optional USB-to-UART bridge and was not intended to be chained. My goal was to re-use old stuff and get the job done as fast as possible, so I used the on-board ISP (which in fact is a SPI interface) connector to link 8 drivers in a SPI chain. Long SPI chain with unidirectional communication is not an example good and reliable design, but it did not require any hardware modification and took a minute to build a controller network, so let’s call it… good enough for this kind of project.


        
Scanner and disk head controllers share the same base with floppy controllers, but have a different „instrument interface”. For driving the coils, I used 2 push-pull outputs (H-bridge) built with discrete SMD MOSFETs. Scanner head controllers were built using of-the-shelf boards – an Arduino Uno (firmware also builds for ATMega328 using AVR-GCC / Atmel Studio; none of this Arduino crappy software and libraries was used) and L298 breakout to save time needed to draw and etch the boards. PC interface (another Arduino board) receives the data over UART (USB-UART), buffers the messages and keeps the timings while passing packets to „musical instruments” over SPI interface, so a Windows hiccup will not affect the playback. It can also be driven by anything else like Raspberry Pi, Android smartphone (with USB-UART or UART-over-Bluetooth adapter) or another microcontroller.

Host application was written in Python 2.7. I wrote it mostly on some boring lectures when I was still studying at the university, so it’s a one big mess, but… at least it does the job. It parses the simple language used for writing note sequences arranged in tracks tied to a specific controller / channel and merges those parallel tracks into one command list which is transferred over COM port. It can also partially generate „song script” from MIDI file which speeds up the „song porting” process.

Like the project? Here’s some another records.

168 Responses to “Return of the Floppies”

  1. [...] a while now, Paweł Zadrożniak has been treating us to some classic tunes played on his Floppotron— a musical instrument built from 64 floppy disk drives Frankenstein-ed together. His latest work [...]

  2. [...] a while now, Paweł Zadrożniak has been treating us to some classic tunes played on his Floppotron— a musical instrument built from 64 floppy disk drives Frankenstein-ed together. His latest work [...]

  3. [...] a while now, Paweł Zadrożniak has been treating us to some classic tunes played on his Floppotron— a musical instrument built from 64 floppy disk drives Frankenstein-ed together. His latest work [...]

  4. [...] a while now, Paweł Zadrożniak has been treating us to some classic tunes played on his Floppotron— a musical instrument built from 64 floppy disk drives Frankenstein-ed together. His latest work [...]

  5. [...] a while now, Paweł Zadrożniak has been treating us to some classic tunes played on his Floppotron— a musical instrument built from 64 floppy disk drives Frankenstein-ed together. His latest work [...]

  6. [...] a while now, Paweł Zadrożniak has been treating us to some classic tunes played on his Floppotron— a musical instrument built from 64 floppy disk drives Frankenstein-ed together. His latest work [...]

  7. [...] some time now, Paweł Zadrożniak has been treating us to some traditional tunes performed on his Floppotron— a musical instrument constructed from 64 floppy disk drives Frankenstein-ed collectively. His [...]

  8. [...] a while now, Paweł Zadrożniak has been treating us to some classic tunes played on his Floppotron— a musical instrument built from 64 floppy disk drives Frankenstein-ed together. His latest work [...]

  9. Klaus L. pisze:

    Im doing this as an independent study for cs in university! Much harder and more tedious than poster takes credit for!

  10. MojoJojo pisze:

    Hi Pawel,
    for when a Jean-Michel Jarre / Daft Punk / Kraftwerk song ?

    Love your work,
    keep-up :)

  11. Anastasia pisze:

    Hi!
    Pavel, we are organizing Java Day event in Ukraine, 4-5 november and want to invite you with your installation on our event.
    We are interested in music on hard disks.
    How much will cost your performance in Kiev?
    Best regards, Anastasia

  12. Good dayy I am so grateful I found your webpage, I really found you by error, while I was browsing on Google ffor something else, Regardless
    I am herre now and would just like to say many thaks for a inmcredible post and a all round
    entertaining blog (I also love the theme/design),
    I don’t have timne to read it aall at the minute but I have book-marked it and alsdo added your
    RSS feeds, so when I have time I will be back to read a lot more, Plese do keep up the awesome jo.

  13. [...] some background: How does it work? The principle is simple. Every device with an electric motor is able to [...]

  14. Anonymous pisze:

    Can you do a tutorial about how to code these I found a matrix printer and some disk drives in my grandmother’s hour and would like to attempt music
    On it

  15. Carlos Robinson pisze:

    Do you take requests? I would love to hear Bizarre Love Triangle by New Order on the floppotron!

  16. Michiel Valcke pisze:

    Could you mimic a talking voice with this setup?

  17. Michiel Valcke pisze:

    I think you’re a genius for coming up with using hardware in this fashion, I’ve know about the floppotron since early on and I’m very glad to see you’re still going on.

    Have you thought about doing art exhibits with it (or a TEDx)

Leave a Reply

(required)

(required)

*
© 2010 Silent's Homepage Administracja Suffusion WordPress theme by Sayontan Sinha