Musical Floppy (Moppy) Drive Control Software

As I was researching the Musical Floppy Project, I noticed the control software was quite complicated to setup. It required installation of NetBeans IDE on your computer, which some people wouldn’t want to do. Also, you’d have to run the control software from within NetBeans and not as a portable Java JAR application. I did some tinkering with the program and was able to integrate all required Java libraries into the application itself. Feel free to grab a copy of the pre-compiled application and/or source code.


MoppyDesk Musical Floppy Control Software

MoppyDesk Project Files (.ZIP)


Arduino MIDI Player

Ever wanted to make your Arduino play music? This project will show you how to do just that. Let’s get right to it…

What do you need?

  • Windows Computer
  • Arduino Integrated Development Environment
  • Arduino UNO Microcontroller
  • Speaker
  • THESE project files


Import Playtune Arudino Library

We’ll need to import an Arduino library that can interpret our MIDI file.

  1. Extract the project files



2. Open the Arduino IDE



3. Click Sketch > Include Library > Add .ZIP Library

Untitled drawing

4. Select the file from the selection dialog


Convert the MIDI file

  1. Move your MIDI file to the project folder or use the one provided.

2. Open a Windows Command Prompt and navigate to the project directory.

3. Execute the following command (be sure to omit the extension .mid from the input fileanme)

miditones -t3 <MIDI Filename without extension HERE>


Back to the IDE

  1. Open a new sketch in the Arduino IDE



2. Paste the code from song.c file into the new sketch and save it.

3. Replace the C source comment:

// Paste code _HERE_ from converted MIDI file

with the code from the converted midi file

4. Connect your Arduino, upload the sketch, and disconnect it from your computer.


Connect the connections


Connect pins 10, 11, and 12 into the positive wire of the speaker, and ground into the negative wire of the speaker. Once connected properly, connect power to your Arduino and you should hear music.

C Tutorials – Print text to console

Let’s print some text to the console!

  • Ensure you have a C compiler and text editor installed on your computer.
  • I recommend GCC Compiler as it has been ported to Windows, OS X, and Unix-based and Unix-like (Linux) systems.
  • My favorite Windows port of GCC is MinGW


Gimme some code!

#include <stdio.h>

int main (void) {

printf(“Hello World!”);

return 0;



Let’s walk through this!

Line 1: #include <stdio.h>

The first line of code tells the compiler that we’re using code from the Standard I/O library. In technical terms, we’re including the stdio.h header file as apart of the program. This is where the printf function is defined. More on printf later.


Line 2: int main (void) {

This line of code is the main function. This is the entry point of your program.


Line 3: printf(“Hello World!”);

This line of code will print text to the console.


Line 4: return 0;

This line of code return code zero. Code zero tells the Operating System that the program did not crash and was successfully executed


Please note: Most common C compilers should be able to compile the above code as-is (e.g. GCC, Microsoft Visual Studio, Borland C/C++, etc.)