keirf / greaseweazle

Tools for accessing a floppy drive at the raw flux level
The Unlicense
989 stars 100 forks source link

GW Floppy Disk drive alignment uses #495

Open crestr1 opened 1 month ago

crestr1 commented 1 month ago

Floppy Disk drive alignment uses of Greaseweazle. Need to rebuild some 8" YE data floppies by swapping parts and heads around Do you have any utilities for GW to support the disk head alignment adjusting. I have alignment disks from various makers that have track pairs adjacent to tk40 or 44 these are normally used looking at an oscilloscope but because the L and R patterns are sine-wave based i thought you my have some clever stuff that can work out the incoming wave peaks in a GW and report when the L&R alternate peaks are the same level for alignment purposes. My understanding of the alignment tracks is that there is no on-center track. The center has a sine wave track slightly offset on either side to accommodate the scope alignment measurement made on the L and R read head amplifiers in the service manuals. The sine wave in each track is oppositely phased. There are also other tests on alignment disks for track zero etc, If you have code that supports any of this I would greatly appreciate being able to use it..

keirf commented 1 month ago

These alignment disks require use of analog test points on the drive, to which gw doesn't have access. I do plan to implement a much simpler alignment test which will simply report the current sectors that are readable, in a continual read-ans-report loop. Very useful but in no way as precise as a proper analog test disk.

crestr1 commented 1 month ago

My gut feeling on this is because of the way the alignment track is constructed perfect alignment (reading the alignment track normally) would be a true flux-null since the alignment off-track sine waves would be out of phase and cancel. misalignment maybe would produce outputs but at what state of misalignment this would occur depends on the head quantization levels for the zero and one discrimination. We need some R&D here. I'd suggest all we need is a GW setup routine that parks the read head on the alignment track and looks results of single track seeks in and out which generally yield a slight under-seek misalignment on the "TO" track after single track seeks. Long seeks generally have the slight misalignment in the over-seek direction because of greater inertia. These are effects i came to use writing disk driver error recovery software in the 1970's for WD floppy controller chips when they first arrived on the market.

crestr1 commented 1 month ago

I attach some DYSAN Digital diagnostic disk info: these were a diagnostic aid for technicians encountering disk reading problems in the 1970's I have an unused 808-100 that will probably need an oven cycle and 24 Hour Cool and acclimatization before use. It is only single sided.:

Dysan DDD Brochure.pdf Dysan Digital Diagnostic Disk.pdf And some Alignment disk use pages: Dysan Alignment Disk.pdf Pertec Alignment Disk.pdf

screwtop commented 2 weeks ago

It would be great to have functionality for aligning drives without an alignment disk or oscilloscope too. I recently aligned a couple of 3.5" drives using Greaseweazle hardware and software and a small set of original commercial diskettes: I'd rotate the track stepper during reading to find the limits of readability, and then fix it at the midpoint. I used some shell one-liners to read the same track repeatedly, but it occurred to me that a gw ... --loop <n> option would be handy for this (and perhaps more generally). Values of n less than 1 could mean continuous.

Adjusting the track 0 sensor was trickier. I used a pad of small post-it-style flags as an adjustable spacer between the sensor PCB and the drive frame - each leaf is about 0.09 mm or about half a track, which seemed to be adequate resolution. A mode for stepping back and forth continuously between two specified tracks (it's not always 0 and 1, apparently) reporting the track 0 sensor state (without re-zeroing?) would help here. Perhaps another use case for a --loop option?

crestr1 commented 2 weeks ago

using the DDD alignment disk (see specs above) I get the following indication of the ability to reliably read +- 10 thou misalignment on my 8" disk recovery system: DDD Disk Read.txt A track zero sensor setup that cycles a restore and a track 1 seek would be useful to use setting/checking the T0 sensor. On some 8" drives there is no adjustment if it is wrong you need to replace the entire sensor/emitter module.

screwtop commented 2 weeks ago

With the 3.5" DD drives, I found I could adjust the radial head alignment about +/- 0.03 mm (about 1.2 thou) before read errors occurred. I believe the track width on these is about 0.115 mm (track pitch is 0.1875 mm).

Thanks for posting the Dysan PDFs. When I was getting started I'd found the Dymek guide, which was incredibly helpful for understanding the principles, even if the alignment disks themselves are now virtually unobtainable!

crestr1 commented 2 weeks ago

what brand and model 3.5 drive are you using ST my 8" is YE data YD180 - 1601 this is a half height DS 8". (has external 50 way connector converter to GW)

screwtop commented 1 week ago

I've mostly been working on Amiga drives: some Chinon FZ-354 and Panasonic JU-253-043P units, a Mitsumi D357T2, and a Chinon FZ-357 that was easy to modify for Amiga use. Most were working just fine as they were, but it was one of the Panasonics that got me started on the alignment track (pardon the pun). I think there was terrible backlash in the leadscrew due to hardened grease, and it was skipping steps. After cleaning, lubricating and aligning I ended up with the stepper pretty much exactly where it was from the factory!

At work we have a Mitsubishi M2896-63-02U 8" drive which shows signs of life on the bench power supply but we'll need a 50-pin adapter to use it.

crestr1 commented 1 week ago

that Mitsubishi M2896-63-02U 8" is very similar to my YE data's construction the 50 way converter is available on eBay for about $30, i think it comes from France, I have several of them, There are some very cheap mains to +24v +5v power supplies around for about $60