Close

Hack Chat Transcript, Part 1

A event log for Floppy Interfacing Hack Chat with Adafruit

Floppies and CircuitPython, together at last

dan-maloneyDan Maloney 02/02/2022 at 20:480 Comments

Dan Maloney12:00 PM
Let's get started everyone. Welcome to the Hack Chat, please pardon my typing -- sprained my finger yesterday. I'm Dan, I'll be modding today along with Dusan as we welcome Adafruit for their first Hack Chat of 2022!

pt12:00 PM

https://youtu.be/KQvzZKNvRM0

YOUTUBE ADAFRUIT INDUSTRIES

Dan Maloney12:01 PM
We've got a livestream setup on YT - there it is ^^^

limor12:01 PM
💾💾💾

Dan Maloney12:02 PM
So the setup is to ask questions here, and they'll answer over on the live stream, plus they'll text answers here too

Dan Maloney12:02 PM
A multimedia extravaganza!

Dusan Petrovic12:02 PM
wow!

limor12:02 PM
hi its ladyada! if you can't get parts, why not get ones that are no longer even made anymore! so ... retro tech :)

limor12:03 PM
floppy disks! both simpler and more complicated than you may think

Dan Maloney12:03 PM
Can you even find floppies in e-waste anymore?

Frank Palazzolo joined  the room.12:03 PM

limor12:03 PM
a LOT of floppy disks were manufactured

deʃhipu12:03 PM
there is nothing electric about floppiesw

Jeff Epler12:03 PM
Hi! I'm Jeff, and I work with Adafruit mostly on CircuitPython. Limor pulled me into this floppy project, and I'm having a blast getting back into the retro computing aspect of it.

Yannick (Gigawipf)12:03 PM
More likely than getting new microcontrollers @Dan Maloney

limor12:03 PM
and computers pretty quickly removed floppy drives, i think the market was a little 'shocked'

Dan Maloney12:03 PM
Sorry -- floppy drives

limor12:04 PM
yes often folks who toss our computers have delicious floppy drives in there

limor12:04 PM
rescue them :)

Jeff Epler12:04 PM
PT gets the best stuff like signed "hackers" floppies

Yannick (Gigawipf)12:04 PM
But getting more rare. I am currently on the search for (a lot of) drives and it is getting harder to get them.

landerosmaster joined  the room.12:04 PM

pt12:05 PM
goodwill, flea markets, and ebay are pretty good

Yannick (Gigawipf)12:05 PM
Some time ago you could get them anywhere computers were replaces. Schools mainly. But now known good drives can get quite expensive

deʃhipu12:06 PM
try to get an usb floppy drive

Mark Morgan Lloyd12:06 PM
Extracted a drive from an old system the other day, but it's getting increasingly difficult to know that they're in alignment. I remember there was a Hackaday article discussing a Yamaha Disklavier with its floppy out of alignment.

limor12:06 PM
a looooooooot of disk drives were made. they are out there

Evan Allen12:06 PM
I'm doing stuff with vintage media that's a little more esoteric. Hard sectored 5.25" and 8" drives are my focus right now. Looking to image disks and emulate the drives.

pt12:06 PM
why don't usb floppy drives always work? limor is answering ...

Jeff Epler12:07 PM
Limor's showing on the stream what's in a USB floppy

pt12:07 PM
for example, the prince floppy can't be read with a USB floppy drive (mac)

Jeff Epler12:07 PM
drive

Jeff Epler12:07 PM
There's a laptop floppy drive + a USB controller (no name, no datasheet)

landerosmaster12:08 PM
What I'm using is an old compaq 34 pin floppy drive

Jeff Epler12:08 PM
the connector is a (semi) standard, the folks who make usb floppy drives get standard laptop floppies and repackage them with the controller

Jeff Epler12:08 PM
it only works with 1.44MB and only for IBM format floppies in MFM format

Jeff Epler12:08 PM
You couldn't, for instance, read a Mac 800kB mac "GCR" floppy disk

Nick Tonn12:08 PM
The slim drives in the usb ones are quite noisy and inferior to the full size drives, also the flex cable connector isn't easy to interface for diy.

Jeff Epler12:08 PM
if you remove the extra board, you can hook into the USB floppy disk with your own controller, like what we've been working on

Jeff Epler12:09 PM
(or boards like greaseweazel if you can get 'em)

Adam Katalak joined  the room.12:09 PM

Jeff Epler12:09 PM
Limor has found that the floppy controller can be flaky, and it's not good at reading damaged diskettes.

Jeff Epler12:09 PM
But if you have perfect 1.44MB DOS floppies that you want to read, go for it.

Jeff Epler12:10 PM
One that's important to us is the "Prince Floppy", which is a Mac 800kB floppy. The mac floppy drive could rotate at different speeds, and stored a varying amount of data on each track. That's how they stored 800kB when DOS could only store 720.

Greg Chabala12:10 PM
I've read 720KB MFM disks with USB floppy drives just fine.

Will S Merkens joined  the room.12:10 PM

George joined  the room.12:10 PM

pt12:10 PM
we posted the contents of the prince floppy here - https://archive.org/details/prince_floppy

Nick Tonn12:11 PM
Question: Have you been able to identify the chip on those usb drives? If its a mcu it would be nice to reprogram it with a firmware which can read at fluxlevel.

PixelDud12:11 PM
Q: Are there any places/people making *new* floppy drives/disks? How difficult would it be to make a floppy disk?

Jeff Epler12:11 PM
@Nick Tonn No, Limor didn't successfully identify the chip

DrG12:11 PM
cli tool was mentioned?

limor12:12 PM
you cannot reprogram it - its almost certainly an asic

deʃhipu12:12 PM
@Nick Tonn they said it's an ASIC

Thomas Shaddack12:12 PM
Could the fluxlevel thing be done with an oscilloscope? DS1054Z has 20 megs of RAM. 20 megasamples.

Dan Maloney12:13 PM
Those were optical right? The sector sensors, I mean

Jeff Epler12:13 PM
I think you could, you can download the full trace within the DS1054Z using USB or network .. you'd have some coding to do!

deʃhipu12:13 PM
@PixelDud you can buy new floppies, I know because some medical devices still use them

deʃhipu12:13 PM
it costs a lot and takes a lot of time to certify a new medical device

Mark Morgan Lloyd12:14 PM
Chris Fenton's Cray archaelogy is relevant to the flux-level issues.

anfractuosity12:14 PM
@deʃhipu cool, do you know the brand of them?

deʃhipu12:14 PM
@anfractuosity no, sorry

Mark Morgan Lloyd12:14 PM
Dan, 8" had hard- and soft-secto

Jeff Epler12:15 PM
@Dan Maloney yes they're optical on 5.25s at least, we're actually debating about 3.5 since there's no visible hole

Dan Maloney12:15 PM
I thought that was a drive sprocket on the 3.5"

Evan Allen12:15 PM
This shugart interface is basically the same all the way back to 8" drives, isn't it? It should be do-able to image thoae drives almost exactly the same way, right?

limor12:15 PM
you can buy sealed packs of floppies on ebay

anfractuosity12:16 PM
@limor are they NOS though?

deʃhipu12:16 PM
it's where it grabs, so it also knows the position

Dan Maloney12:16 PM
Yeah, that makes sense

Mark Morgan Lloyd12:16 PM
Sorry. Older discs (8 and 5.25) came in two variants some with one index pulse/hole per revolution and some with one pulse/hole per sector.

Nick Tonn12:16 PM
I doubt its an asic, if it was an asic, there would be no reason for the asian manufactures to sand down the markings on the chip. Also i've seen usb-floppy pcbs with an unpopulated place for flash memory.

Jeff Epler12:16 PM
@deʃhipu ah yeah that makes sense now

Jeff Epler12:16 PM
it didn't at first

Vincent joined  the room.12:17 PM

Thomas Shaddack12:17 PM
the 3.5" floppies have that tab to which the rotor grabs. I think it can be synced to the physical position of the rotor itself.

Dan Maloney12:18 PM
Is it like a legacy thing?

Mark Morgan Lloyd12:18 PM
Index pulse needed to get the formatting right: all the tracks aligned.

Will S Merkens12:19 PM
Does the DD floppy's read both sides at the same time when reading data

Nick Tonn12:19 PM
yes

Mark Morgan Lloyd12:20 PM
Will: no. Side-select signal

Nick Tonn12:20 PM
or do you mean parallel, then no

M Nord joined  the room.12:21 PM

limor12:22 PM
DD is double density - it how close the magnetic flux pulses can be written/read

Bharbour12:22 PM
The apple II did calibrate the speed based on the motor control chip. It was a Shugart SA400 drive with a custom analog board.

Will S Merkens12:22 PM
I have only seen double sided reading drives was in IBM land, older apple drives you had to manually flip the disc and put it back in to read the other side.

limor12:22 PM
DS is doublesided - theres' two 'heads', top and bottom

limor12:22 PM
and you select which you want using a digital line

Will S Merkens12:22 PM
How about the Apple 2 spiral tracks for copy protection

Jeff Epler12:23 PM
@Will S Merkens that'll be a challenge!

Thomas Shaddack12:23 PM
microstepping of the head stepper?

Thomas Shaddack12:23 PM
could also help with restoring data from misaligned floppies.

Jeff Epler12:23 PM
Yeah despite having just ~35-40 tracks, the apple ][ drive can be stepped to about ~160 positions, while a PC drive can only hit ~80 positions

Will S Merkens12:23 PM
MS flight sim on apple had that protection method and boy the drive sure made horrible sounds

Jeff Epler12:24 PM
The way an SD card looks to a PC is very much like a floppy - a sequence of 512-byte sectors.

Jeff Epler12:25 PM
So we re-purposed USB Storage to create an Arduino sketch that can act as a USB floppy drive

Thomas Shaddack12:25 PM
could be also done with a raspi zero, in usb gadget mode.

Jeff Epler12:26 PM
We tested it with the 360k (5.25) drives, try buying a USB 5.25" drive on amazon :wink:

Will S Merkens12:26 PM
Roman roads developed ruts based on the carts so people in Britain simply based carts and later trains on the same size the ruts in the road were in size

Nick Tonn12:26 PM
As far as i know does the floppy drive do not care if the data is mfm or gcr encoded, the floppy controller is the part thats cares about the encoding. for example the floppy controller of the Amiga could read and write MFM and GCR encoding with the same floppy drive.

limor12:26 PM
nick - you'd think so but thats not truuuuuuuuuuuuuue :)

Thomas Shaddack12:27 PM
could that be done with a DSP? directly interface the head? then we have ALL the encodings we please. software-defined radio works at orders of magnitude above the needed data rates, I think.

pt12:27 PM
playlist here as well, that has 1 min vids from each step / progress - https://youtube.com/playlist?list=PLjF7R1fz_OOWexf2WmY8cgM65ltPaAvyT

Jeff Epler12:28 PM
Some of the electronics in the floppy are optimized for MFM, in a way that can give problems when you read other formats... if you rip of even more of the electronics, you might be able to fix it(?) but that'd be a lot more work.

Will S Merkens12:29 PM
I have the Epson SMD1300 looking for tech docs on what it can do.

Jeff Epler12:29 PM
Very short & very long pulses that exist in the mac format can't be read because of details of the on-drive electronics

Jeff Epler12:29 PM
sony drives work pretty good though

hamslabs12:30 PM
I'm psyched about this work. I have code I wrote in college on some floppies. I implemented RSA encryption when I was a senior in '86 when I was a C newbie and ran it on a Vax 11/780 (yep VAX MIPS are based on this machine). I'd really like to see how fast it runs on an my M1 Mac Mini.

DrG12:31 PM
+! for tee-ack

Jeff Epler12:32 PM
The best day to copy your data off a floppy is today

deʃhipu12:33 PM
yesterday

hamslabs12:33 PM
Ha, I think you folks are calling me old.

pt12:33 PM
"how long is the data likely to be good" ? ...

M Nord12:34 PM
Old is relative.

Erlend Ervik12:34 PM
"baking" the disks to make them work for a while, is it tested? I have seen it mentioned about audio tapes

Will S Merkens12:34 PM
I stored all my 5.25 in floppy boxes and those are stored away

deʃhipu12:35 PM
what would currently be the most durable format for storing data at home?

Thomas Shaddack12:35 PM
how does the stored signal degrade? can the oscilloscope approach give better chances of recovering old data?

deʃhipu12:35 PM
cdrs tend to disintegrate too

Mark Morgan Lloyd12:36 PM
Baking will only work if the problem is water adsorbtion into the Mylar. It is likely to make things worse if the oxide is starting to come off.

Discussions