CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 152 users online: 8 members, 108 guests and 36 bots.
Members: Apprentice, geekboy1011, qazz42.
Bots: MSN/Bing (1), VoilaBot (12), Spinn3r (1), Magpie Crawler (2), VoilaBot (12), Yahoo! Slurp (1), Googlebot (7).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page 1, 2  Next
» View previous topic :: View next topic  
Author Message
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59261

Posted: 30 Nov 2011 12:43:21 am    Post subject: Floppy Drive Music with a TI-83+

Continuing to stretch the boundaries of graphing calculator hacking, hardware, and software, Christopher Mitchell and Cemetech Labs are proud to present music played on a floppy drive... controlled by a calculator. Inspired by other projects such as the Star Wars Imperial March played on two floppy drives and Bach's Toccata and Fugue in D Minor, BWV 565 on four floppy drives, I hoped to implement this concept on a much more limited control device: a TI-83+ graphing calculator. While microcontrollers such as those used in the projects above have dozens of GPIO pins for interfacing with external hardware, the TI-83+ graphing calculator has only two I/O lines, both bidirectional. I did a bit of research on controlling floppy drives, and discovered that if I held pin 16 (Motor Enable) and pin 12 (Drive Select) of the floppy drive low, I need only pulse the Direction In and Step pins (18 and 20) to control the floppy drive's read/write head stepper motor. I put together the circuit, discovering in the process that previous projects had incorrectly identified pins 10 and 14 as the necessary lines to hold low, and then modified my mobileTunes 3.1 media player for calculators to output the necessary control signals to modulate the floppy drive's motor. Other than the floppy drive, the calculator, and a breadboard for making interconnects, the only hardware used is a standard 5/12V power supply for the floppy drive. Enjoy the results as demonstrated by Coldplay's "Clocks" in the video below!

More Information
Floppy Drive Music with a Calculator project page
Floppy Drive Music from a TI-83+ demo video


Link

_________________




Last edited by KermMartian on 30 Nov 2011 04:44:11 pm; edited 1 time in total
Back to top
TheStorm


NOU!


Joined: 26 Mar 2007
Posts: 2453

Posted: 30 Nov 2011 01:17:51 am    Post subject:

Friggin Awesome Kerm!

How much modification did it take to MT3 to get it to work this way?

And dammit now I wanna listen to that full song.
_________________

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

<Michael_V> or create a Borg collective and call it The 83+
<Michael_V> Lower your slide cases and prepare to be silent linked. Memory clears are futile.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59261

Posted: 30 Nov 2011 01:26:05 am    Post subject:

I had to modify the routine that counts notes to figure out the length of the song, of course the core of the sound-playing routine, and of the course the accepted filetype (0,2,4 for "FloppyTunes" songs instead of 0,1,4 for mobileTunes songs). I tried to make the head change direction every one pulse, but it would miss the direction change because of timing, hit the end of the track, and not make any more music from being stuck. Therefore, I unrolled the playTone loop (which has an inner delay loop followed by a toggle of the link lines) into four pieces, two of which toggle with the direction set forward, two with the direction set backwards. I did that instead of just adding logic to the single so that I didn't need to re-calculate my note values and durations, since they're based on cycle-counting for that specific loop.
_________________


Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 728
Location: Somewhere out there

Posted: 30 Nov 2011 09:02:36 am    Post subject:

WOW, cool! Nice work Kerm!
_________________

Click here to give me an internet!
Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 3457

Posted: 30 Nov 2011 09:03:01 am    Post subject:

This is great! But why'd you choose such a bad song Wink
_________________
Shaun
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59261

Posted: 30 Nov 2011 09:20:41 am    Post subject:

merthsoft wrote:
This is great! But why'd you choose such a bad song Wink
Because back in the day I spent a week or two painstakingly sequencing it by hand, so it was in a proper format for monophonic playback and would therefore work well with this. Smile
_________________


Back to top
Travis


Advanced Member


Joined: 03 Feb 2011
Posts: 289
Location: Kansas, USA

Posted: 30 Nov 2011 05:16:45 pm    Post subject:

Nice! Sounds like sawtooth waves. Reminds one of classic 80s chiptune music. Smile

I wonder how much wear and tear that puts on the stepper motor.
_________________
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59261

Posted: 30 Nov 2011 05:17:59 pm    Post subject:

Travis, quite a bit, I'd think; I wouldn't trust the drive to read any disks after this. Wink Late in the night I found it was starting to skip on certain frequencies, but I tracked that down to just a loose jumper from my breadboard.
_________________


Back to top
Ashbad


Guru-in-Training


Joined: 01 Dec 2010
Posts: 2498

Posted: 30 Nov 2011 05:37:27 pm    Post subject:

Pretty awesome Smile great job! Now this, is true hacking and 1337ness.
_________________
R O F L M A O
O
F
L
M
A
O
Back to top
juju2143


Member


Joined: 16 Aug 2010
Posts: 134
Location: Québec (Canada)

Posted: 30 Nov 2011 05:42:41 pm    Post subject:

That's awesome! I'm so messing with my own unused floppy drive tonight.
_________________



Last edited by juju2143 on 30 Nov 2011 05:43:57 pm; edited 1 time in total
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59261

Posted: 30 Nov 2011 05:43:47 pm    Post subject:

juju2143 wrote:
a that's awesome! I'm so messing with my own unused floppy drive tonight.
You should stop by HCWP; I'd be happy to answer any construction questions. Smile

Ashbad: Many thanks, that's what I aim for. Wink
_________________


Back to top
juju2143


Member


Joined: 16 Aug 2010
Posts: 134
Location: Québec (Canada)

Posted: 30 Nov 2011 05:45:09 pm    Post subject:

KermMartian wrote:
juju2143 wrote:
a that's awesome! I'm so messing with my own unused floppy drive tonight.
You should stop by HCWP; I'd be happy to answer any construction questions. Smile

Ashbad: Many thanks, that's what I aim for. Wink
Oh right it's Wednesday, I'll come for sure Smile
_________________

Back to top
_player1537


Guru-in-Training


Joined: 25 Nov 2009
Posts: 2983

Posted: 30 Nov 2011 08:23:53 pm    Post subject:

I'm curious how you did this. I remember that MT3 used, basically, macros for the entire thing, does that mean you can just change what macros it uses, and instantly get a song compatible with floppy drives? Either way, very well done Very Happy Now you just need to get some Nightwish on that thing Razz
_________________
http://tanner.myserverathome.com
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59261

Posted: 30 Nov 2011 09:18:56 pm    Post subject:

I do indeed, except that MT3 songs are all quadraphonic. They would sound very bad if I stripped out all but one channel, so I used an old song I had made for MobileTunes 1.0, which was a monophonic player. Smile
_________________


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59261

Posted: 01 Dec 2011 10:45:40 am    Post subject:

*bump* Huzzah, another Hack-a-Day feature! From the first two comments, looks like a pretty positive response:

http://hackaday.com/2011/12/01/making-sweet-floppy-drive-music-with-a-calculator/
_________________


Back to top
Dapianokid


Advanced Member


Joined: 05 Nov 2011
Posts: 195
Location: Right... Here.

Posted: 01 Dec 2011 06:42:45 pm    Post subject:

WE need to make a national anthem to the country you will clearly once rule.
_________________
What if we all got together and did something ridiculous?
Well?
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59261

Posted: 01 Dec 2011 06:44:19 pm    Post subject:

Dapianokid wrote:
WE need to make a national anthem to the country you will clearly once rule.
Haha, you flatter me, good sir. Wink Glad you enjoyed this.
_________________


Back to top
Dingus


Newbie


Joined: 24 Feb 2011
Posts: 33

Posted: 04 Dec 2011 07:53:35 am    Post subject:

You might want to call your new music device ipod.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59261

Posted: 04 Dec 2011 10:07:24 am    Post subject:

Dingus wrote:
You might want to call your new music device ipod.
I might? And why would that be, exactly?

Also, I need to post up the floppyTunes program and better instructions on how to replicate this soon; two people requested it so far.
_________________


Back to top
1980sand512k


Newbie


Joined: 22 Sep 2013
Posts: 1

Posted: 22 Sep 2013 08:32:44 pm    Post subject:

interesting... could it be done with an apple 800k internal 3.5" floppy drive it is actually made by sony and the sony model number is: MODEL MP-F51W-23. so yeah i'd like to try to make floppy drive music with a calculator, but i don't have a compatable calculator ,or a pc floppy drive, but I do have a powermac g5, an arduino uno board, and an apple floppy drive.
and all of my pc's have ubuntu 12.10 or windows me and before or they're broken Laughing
_________________
the SE and 512k will never die (although Steve is dead) Steve Job's creations will live forever!!! and as usaul i am nerdy about pc history so i will probably make a lot of noobs cry intel core is just a revision of pentium 3 death to pentuim 2. that is all.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2  Next
» View previous topic :: View next topic  
Page 1 of 2 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2014 Cemetech & Kerm Martian :: Page Execution Time: 0.042365 seconds.