How to Make Musical Floppy Drives

407,660

319

102

About: I love internet reading. I think I have acquired more knowledge from the internet than I have and probably ever will from a standard institution of learning.

My brother posted a video about this on facebook almost a year ago. Some old floppy drives playing Bach's masterpiece Toccata & Fugue and it got me really interested. So I read about it when the author posted a how-to on his blog and did a couple of tweaking using SammyIAm's Musical Floppy program when the project gained a lot of attention.

WHAT YOU NEED

1) Arduino - Ideally, you need the Arduino UNO but any Arduino would work. You just need to tweak something in the program with the pin assignments. In this mini-project however, I used Duemilanove. It works almost accurately as Arduino UNO and I didn't have to tweak anything.

2) Floppy Drives/Disks - Any floppy drive would work but it's a lot easier to use the 34-pin simply because it's common. Other than that, you would only be needing to determine 3 pins from your floppy. Pin assignments are available online, particularly here. Furthermore, I was trying to acquire a 5.25 floppy drive but to no avail, and ebay sells them around $20 so I said never mind about that. As a result, this project is composed only of the 3.25 floppy disk drives. You also need some floppy diskettes for this project.

3) Power Supply - Again, it depends on you. You can use any 5-volt power supply available but since an ATX power supply is just lying around at home, I conveniently used it instead.

4) CAT5 UTP Cable - Only because of the wires. I want my wires to be color-coded.

5) Breadboard - If you want a solderless-free project.

6) Soldering Iron/Lead - For soldering the pins you would need to connect your CAT5 UTP cable to, but if you still have the flat ribbon cable then good for you. Might as well use that to make it easier.

7) Cutter, Phillips/Flathead screwdrivers - For dismantling purposes.

Step 1: Prepare Your Power Supply.

Again, it depends on you. You can use any 5-volt power supply available but since an ATX power supply is just lying around the house, it would be pretty convenient to use it here. However, if you just have the power supply (without a motherboard), to activate it you need to short two wires, BLACK and GREEN as shown on the image. Connect these two wires and your power supply is then activated.

Step 2: Determine the Needed Pins for Your Floppy Drives.

Like what I said earlier, you only need to determine 3 pins to make the floppy drive sing. If you look at the back of your floppy drive you would see these 34 pins. Just check on the image to determine which is pin 1 and so on. The top pins are the even pins the bottom pins are the odd pins which is the ground. The even-numbered pins are activated by grounding them. Basically, computers have up to two floppy drives A and B. Doesn't really matter which drive you connect your wires to. If you want to set your floppy drive to drive B, then connect wires to pins 12, 11 for the ground. If you want to set your floppy drive to drive A, then connect wires to pins 14, 13 for the ground. But to avoid further complications, just select drive B, pin 12 and 11.

Another pin that we are interested in is the direction pin 18, 17 for the ground. Direction pin determines which direction to move, forward or backward. This movement is actually the one causing the low-note and high-note sound coming out of the floppy drive.

Finally, the last pins we need to connect wires to is the step pin 20, 19 for the ground which basically activates the stepper motor to move.

NOTE: If you still have the flat ribbon cable then I suggest that you use it instead of soldering wires directly to the pins of your floppy drive. Soldering them could fry the boards of your floppy but since I don't have any flat ribbon cables and connector I soldered mine. Solder at your own risk.

Step 3: Test Your Floppy Drives.

Connect your floppy to your power supply and test the stepper motor. Notice that if you connect your floppy drive to the power supply nothing is happening, that is because you need to connect pins 11 and 12 to activate it. To activate your floppy, you need to permanently connect the drive select pins 11 and 12, so you can go on twist those wires or solder them. You can easily determine if you have the wires connected. Once you connect the wires attached to pins 11 and 12, the light of the floppy drive should turn on.

Next thing you need to do is check on the direction and step pins. Connecting the green wires together pins 17 and 18 would make your stepper move forward. To activate the stepper motor you just need to tap the blue wires which is connected to the step pins. Moving the stepper motor backward, all you need to do is disconnect your green wires then activate your stepper by tapping the blue wires.

Step 4: Connect Your Floppy to Your Arduino.

Connect pins 11 and 12 (Drive Select) to activate your floppy drive. Connect pins 17 and 19 (ground pins for the direction and step of your floppy drive) to the ground of your Arduino. Connect direction pin 18 to pin 3 and step pin 20 to pin 2 of your Arduino.

For the second drive, all you need to do is connect the direction pin 18 to pin 5 and step pin 20 to pin 4. Third drive's pin 18 to pin 7 and step pin 20 to pin 6 and so on...

Step 5: Prepare the Sofwares.

WHAT YOU NEED

1) Arduino Software - You can download the software on their website.
2) Timer1 - You can download the following here. Once done with the download, you need to copy this to the library folder under Arduino.
3) JDK 7u4 with NetBeans 7.1.2 - You can download the following here.
4) Moppy Software (Java/Arduino Code) - Program developed by SammyIAm. You can check it out here.
5) RXTXcomm Serial Driver - Download the following here.

Step 6: Establish a Connection to Your Arduino.

Once you're done downloading and installing everything, especially the Arduino software, Java with Netbeans, establish a communication between your Arduino and computer. You may also need to set-up everything on the hardware side. Connect your floppy drives and power supply.

Before copying the code, make sure that the Timer1 file is saved to the library folder of your Arduino.

Step 7: Open NetBeans.

Open your NetBeans and load-up the MoppyDesk project developed by SammyIAm. You can choose to open it through his github or just download the file below. Just make sure that once you download the following file, copy the file to the NetBeansProjects folder usually located at My Documents for Windows. Once you have the MoppyDesk project open, run it by clicking on the green play button. This is where you would encounter the RXTX problem, if not then good for you a new window should appear. However, if you do encounter it, download the RXTXcomm,jar and the rxtxParallel.dll / rxtxSerial.dll files via this website. After downloading, just be sure that you copy the following to its respective folders:

RXTXcomm.jar goes in \jre\lib\ext (under java)
rxtxSerial.dll goes in \jre\bin (under java)

If you still encounter the problem, just message me and we'll try to sort it out or you could just google rxtx issues. I'm sure you'll find solutions on this online.

If all goes well, a new window will appear. The MoppyDesk window will then ask for the Arduino port. Just choose the correct port for your Arduino, load the midi file and hit on START.

Congratulations!!! You have now a musical floppy...

Some tips on midi file:

Choose the simplest midi file as possible. It would be ideal to choose something which is moderate at speed and something that does not sustain a note for too long.

Also, you may want to remove the cover of your floppy drives to make it a bit louder. Some latest manufactured floppy drives designed to make less noise, so if you encounter such, I suggest that you remove the cover or set-up a microphone. You may also choose to edit the audio and amplify it a bit and reducing the background noise helps too.

3 People Made This Project!

Recommendations

  • Make it Glow Contest 2018

    Make it Glow Contest 2018
  • PCB Contest

    PCB Contest
  • Big and Small Contest

    Big and Small Contest

102 Discussions

0
None
CalebF16

9 months ago

All I get when I connect the floppy disk to the arduino is the drive spinning the disk, and the read head doesn't move at all.

1 reply
0
None
Hunter J.SCalebF16

Reply 1 hour ago

Not sure if you have had any luck since this, but you can email me or text me and id be glad to help you out. pcwizard321@gmail.com 251-295-1799 took a bit for me to figure it all out so ill be glad to help anyone whos having trouble

0
None
PixelGeek

2 years ago

Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Duemilanove or Diecimila, ATmega328"

sketch_jun20b.ino:1:22: fatal error: TimerOne.h: No such file or directory

compilation terminated.

Error compiling.

This report would have more information with

"Show verbose output during compilation"

enabled in File > Preferences.

please help... where is it supposed to go?

Also, NOTHING WORKS. (except the drive) i started this project about a year ago, and i still cant make it work. nothing on the software side is working, and im sure its my fault. ive never done anything like this before. and a bought the Arduino board just to do this project. Please, SEND HELP!

Screenshot (1).pngScreenshot (2).pngScreenshot (4).pngScreenshot (5).png
2 replies
0
None
Hunter J.SPixelGeek

Reply 1 hour ago

Netbeans isnt used anymore, theres a serperate program along with the moppy code to use

0
None
housamzPixelGeek

Reply 1 year ago

I got the same error, the solution was that you need to create a folder/directory with the name "TimerOne" in "libraries", and then put all the files from the zip file inside that direcoty.

0
None
PatrickA115

1 year ago

Hey, i've got some problem i haven't read of yet. My drives are running just fine, but when the parts get more elaborate and 2 or more drives are running i always get extreme stuttering in some drives. The problem is not the drive itself since i switched them. And can't be the powersource since that is extremely oversized for the task. Does anybody have an idea or discovered the same problem?

1 reply
0
None
Hunter J.SPatrickA115

Reply 1 hour ago

ive got the same issue. ive read somewhere that the data pins to the drive draw some considerable power from the arduino, so if like me the arduino is only being powered by the USB on your computer you might want to purchase a 12v adapter for power on the arduino. i bought one and its gonna be here on monday so ill let you know if it fixes the problem :)

0
None
Botella1

1 year ago

when i go to click the "run" button in netbeans, i cant press it, i can press it only if i set the main project to "moppydesk", and when i press the button nothing happens, and if i set "moppysim" as the main project and press the button a sign appears that says: "select the main class" ans "no main class found". please help me with this

1 reply
0
None
Hunter J.SBotella1

Reply 1 hour ago

I can help as well, if you havent yet figured it out. you dont even need netbeans anymore

0
None
TheFuzzLlama

Question 2 days ago

When I open MoppyDesk in NetBeans, it tels me “swing-app-framework” library could not be found. How do I fix this?

image.jpg
2 answers
0
None
Hunter J.STheFuzzLlama

Answer 14 hours ago

If you could email me, id be more than glad to help. you actually dont even need netbeans anymore lol. the new way is alot simpler and ill help you get through this, i had to learn the hard way. here my email pcwizard321@gmail.com you can also text me as well 251-295-1799 but i will be able to email you links to the software or the files themselves if they are small enough.

0
None
Hunter J.SHunter J.S

Reply 14 hours ago

PS. I also have a folder with a bunch of midi files that work, and i can give you those as well, lots of goodies in there

0
None
Hunter J.S

Question 14 hours ago

So, ive run into a bit of a small dilema. Most songs work perfectly, but others seem to get a bit jittery. What i mean by that is for instance i have 4 drives in my setup, and some songs lets say drives 1 and 2 are doing 2 parts at the same time drive 2 will stop for a second as if it were waiting for drive 1 to finish, ive read somewhere that the data pins to the drives draw a considerable amount of power and i figured that kind of made sense since the arduino is currently being powered by my computer hich with usb is usually just 5 volts, so i went online and bought the correct size 12 volt power supply. Do you think this theory is correct and should having that power supply help out with the power shortage?

20181214_223254.jpg
0
None
ThatRandomGuy908

1 year ago

idk if anyone checks this but I can't get the drive to light up when I tap the orange wire and the orange white wire together, I have tried plugging it into 12 and 13 along with 14 and 15 (for drive a). But the drive doesn't light up on either. They are working as they light up when the computer turns on. Any help?

0
None
DanielkoT

1 year ago

i have a problem with it, it dosent work, im getting serial to my arduino and to the floppy drive and it dosent do anything

please help

3 replies
0
None
DanielkoTDubstepK

Reply 1 year ago

I checked the signals on floppy connector from arduino (i made it to a conector) and there were signals at the correct pins and also the floppy drive led is on

0
None
DubstepKDanielkoT

Reply 1 year ago

Just so you know someone in the comments said the pin diagram was wrong, that might of been the case. read the comment!

0
None
Alex2004

1 year ago

It is 1AM. Now I found my mistake. Where did you get the Arduino code from?

0
None
jackemled

1 year ago

Could I do this using a Raspberry Pi instead of an Arduino?