About a year ago I made an Arduino board that worked with old MFM/RLL (“Winchester”) drives by utilizing a Western Digital controller chip. As this was limited to a particular format (WD), I decided to revisit this project, make it more generic and move the disk data handling part to software:
Project Sentinel: swapping the Arduino+WD42C22 (right) for a Raspberry Pi Pico 2 (left).
The PCB, schematic, binaries and source code can be found on GitHub.
The top plug-in boards (data separators) were reused from the previous project.
This also meant ditching the 8-bit AVR to a more recent platform; I’ve chosen the RP2350 on a Raspberry Pi Pico 2 board. These are cheap and fast enough for this purpose.
From a hardware standpoint, the “data separator” PCBs were reused from the previous project: two 75176s convert between differential disk data signals and TTL, and a WD10C2x (C20, C22, C23) separates composite data to jitter-free RCLOCK and RDATA, while also providing write precompensation. These chips can still be obtained online.
On the main board, two 7438s are used to drive the interface lines, a 74HC595 is used to extend the output GPIO count and a MC34063 as a 12 volt supply for the VCO of the data separator. This can be omitted if a WD10C23 is used in the data separator board.
Software-wise, this is a C++ project that can be built with VS Code using the Raspberry Pi Pico extension. As an alternative, the pre-built .uf2 binary can be downloaded directly and flashed to the board by holding the BOOTSEL button and resetting the board. Afterwards, the Pico 2 presents itself as a “USB drive” and will automatically flash the binary with a simple file copy.
As with the previous project, the interface is controlled through a terminal session. There’s a couple of low-level format options, an autodetect option, and “raw disk” access which reads and writes raw MFM/RLL bitstreams which can be then analyzed further.
Option 1 emulates a generic WD controller similar to Winchesterduino; options 2 to 5 are implementations of 512-byte PC formats – XT and AT controllers that I had laying around.
Options 6 and 7 were Iron Curtain implements of PDP-11 and HP-1000, respectively. For example, the SM1040 was a controller that used data on MFM disks to emulate PDP-11 RK07 disk drives.
Writing an MFM bitstream to file
Apart from pre-defined formats, tracks can be sampled to files for further analysis, or written back.
An average track length from INDEX to INDEX is computed once (this can be overridden). Then, RDATA is sampled each RCLOCK edge of the data separator (for MFM this means both C/D transitions); from the beginning of the track, until its end or when the overridden maximum byte count is reached. This can be executed between specified cylinders, or on the whole disk.
Writing a bitstream applies appropriate precompensation and reduced write current, if configured. Write starts from leading INDEX up to the specified bytecount, or to the next INDEX if it comes first (this check can be disabled). This is still a highly experimental feature, and should not be relied upon.
The bitstream is packed into bytes MSB-first. The git repository contains scripts that can convert this bitstream to David Gesswein’s “transition file” for use with mfm_util:
Running mfm_util on a transition file, generated from the MFM bitstream by one of the scripts
(mfm_to_tran.py)
Windows build of mfm_util available here (version 4.47)
The rest of the features, such as analyzing sector ID fields, verifying data fields, formatting the disk, creating image files and inspecting a DOS primary partition, if present – were taken from the previous Winchesterduino project.
Last but not least, an idea to try out the “recovery mode” of certain Seagate drives came later to mind. This is because after all those years, the head stepper motor may read off-track of the original recording, causing sector not found or CRC errors. Affected drives will read and write normally after a reformat, but that kills the old data on them.
When enabled with an appropriate jumper on drive, pin 16 of the disk control cable can be pulled low, when required, to change the STEP line into a microstep function. And, with this option enabled from the main menu, up to 8 different microstep algorithms will be tested, before reporting a disk error.
As this option came in later, and both 7438s and the output shift register were already occupied, disk control cable pin 2 (/HDSEL3) was chosen for the recovery mode signal. Bridging this pin with pin 16 enables microstepping.
For drives that use more than 8 heads, unused Pico GPIO1 can be configured to output the Recovery Mode signal. However, since the ST506 interface can sink up to 48 mA of current, a transistor needs to be put in place. To enable this behavior instead of /HDSEL3, apply the following patch file. Or, you can also download the pre-compiled uf2 binary here.
Testing microstepping in the Recovery Mode (Seagate ST225, pin 16)

Oh man this is fantastic! I remembered about your Winchesterduino, decided to add it to my resources section for sigrok-disk and there is this grand prize waiting for me here :o)
When reading your blog there is no indication about new posts 🙁 no “click here to read previous titled XXX, click here to read next titled YYY” at the top or end of article like on os2museum Blog, no Recent Posts list of article titles on the side like on goughlui Blog 🙁 I barely noticed there is a new post by mere chance of curiosity getting the better of me and clicking Homepage at the top. And oh boy am I glad I did!
With your project we now have a full combo – MFM (and maybe soon also RLL) disk emulator based on BeagleBone, half finished MFM/RLL Pico based disk emulator, Pico based MFM disk dumper, and now a Pico based MFM disk controller, how cool is that? 🙂 I highly encourage you to experiment with my decoding routines, it should be quite trivial to incorporate PLL/Separator/Endec into Pico too. You might even try to combine Matts unfinished RTmFM disk emulator to make your project an universal all in one disk Controller/Emulator.
>options 2 to 5 are implementations of 512-byte PC formats – XT and AT controllers that I had laying around.
Neat. Would it be possible to bother you to share some sample tracks from disks formatted with controllers you have? I would love to add them to sigrok-disk sample collection, even if they are same format as the ones I already have.
>Options 6 and 7 were Iron Curtain implements of PDP-11 and HP-1000, respectively.
those I definitely dont have!
I will study code and design later, oh what a treat. Thank you for creating this.