NGHỆ THUẬT
LÀM ĐẸP VÀ SỨC KHỎE
THỦ CÔNG
VĂN HÓA VÀ LỊCH SỬ
GIẢI TRÍ
MÔI TRƯỜNG
THỰC PHẨM VÀ ĐỒ UỐNG
KỸ THUẬT NGƯỢC
KHOA HỌC
THỂ THAO
CÔNG NGHỆ
THIẾT BỊ ĐEO

FM and MFM: Making the Data Clock Itself
A read head is a differentiator. It produces a voltage proportional to the RATE OF CHANGE of flux, which means a stretch of uniform magnetisation produces exactly nothing no matter how long it is. Record a thousand zeros and the head is silent; record a million and it is equally silent. The drive cannot tell them apart.
It could count them with a clock, but it has no clock worth trusting. The spindle wanders by a percent or two with temperature and supply voltage, the disc was probably written in a different drive on a different day, and a percent of error accumulated over a few hundred bits puts everything in the wrong place.
So the clock is built into the data. Frequency Modulation recording puts a transition at every cell boundary as a clock, plus one in the middle of the cell for a 1 — self-clocking, completely reliable, and it spends half of every transition on saying nothing. Modified FM noticed that the clock transition is only NEEDED between two consecutive zeros, dropped it everywhere else, and doubled the density of every floppy disk in the world without touching the head or the medium. That is what the labels single density and double density meant.
FULLY BUILDABLE, and the exercise is the point: encode, decode, then walk the clock error up until the decoder fails. The error at which it breaks IS the detection window, and that number governs everything about how dense a drive can be.
Trung cấp
4 hours
Hướng dẫn
1
1
Do it once by hand
Do it once by hand
Take the byte 10100011 and write out its FM cell stream on paper: for each data bit, a clock cell that is always 1, then a data cell equal to the bit. Sixteen cells.
Now MFM the same byte. Same layout, but the clock cell is 1 only when the PREVIOUS data bit and this one are both 0. Count the 1s in each stream — those are flux reversals, and they are what actually gets written.
Then draw both as waveforms, flipping the line up or down at every 1. Two pictures of the same byte. The MFM one has fewer corners in it, and that difference is a doubling of the capacity of every floppy disk ever sold.
Công cụ cần thiết:
Notebook and Pencil2
2
Encode, decode, and break it
Encode, decode, and break it
Flash the sketch and open the serial monitor at 115200. It encodes five bytes to MFM, turns the cell stream into transition TIMES, applies a deliberate clock error, and recovers the data with a software phase-locked loop.
It then walks the error from 0 to 30 percent and prints where the decode fails. Watch what happens around the failure point: it does not degrade gently, it goes from perfect to garbage within a percent or two. A run of zeros is where it breaks first, which is exactly why the maximum run length matters.
Put an LED and a 330 ohm resistor on GPIO19 so each recovered transition blinks, and a second on GPIO18 for the raw flux waveform. At a slow data rate you can watch the code working before you ever reach for the scope.
Change the message to all 0x00 and re-run. MFM's clock cells save it. Then disable the clock cells in `encodeMFM` and re-run: it fails immediately, at zero error.
mfm_codec.inocpp
Vật liệu cho bước này:
LED Assortment1 cái
Resistor Kit (1/4W, E12 Series)1 cáiCông cụ cần thiết:
ESP32 Development Board
Desktop Computer
Digital Oscilloscope
Jumper Wire Set
Breadboard - Classic3
3
Density ratio, and the drift budget
Density ratio, and the drift budget
Loading Jupyter Notebook...
Công cụ cần thiết:
Desktop Computer4
4
Compendium: three constraints, one code
Compendium: three constraints, one code
DC BALANCE, WHICH MFM IGNORES. A read channel is AC-coupled, because the head makes no DC. A code that allows long stretches at one polarity makes the baseline wander and the detector's threshold with it. EFM on the compact disc spends three merging bits per symbol almost entirely on this; MFM does not bother, and floppy drives paid for it with finicky read amplifiers.
THE SIBLING, ANNOUNCED. RLL(2,7) is blueprint 7: same rate 1/2, minimum run raised from 1 to 2, density ratio 1.0 to 1.5. The whole difference is what the decoder must remember.
AGAINST PARITY. The parity blueprint adds redundancy to DETECT an error. A channel code adds redundancy so the signal can be READ at all. Different jobs, and they stack — real drives do both.
Công cụ cần thiết:
Notebook and PencilVật liệu
2- LED AssortmentHoa hồng 10%1 cáiTạm thời
- Tạm thời
Công cụ yêu cầu
6- Notebook and PencilHoa hồng 10%Tạm thời
- ESP32 Development BoardHoa hồng 10%Tạm thời
- Desktop ComputerHoa hồng 100%Tạm thời
- Tạm thời
- Jumper Wire SetHoa hồng 10%Tạm thời
- Breadboard - ClassicHoa hồng 10%$10.00
Blueprint liên quan
Các blueprint này chia sẻ kiến thức — kỹ thuật, vật liệu hoặc nguyên tắc
CC0 Phạm vi công cộng
Bản thiết kế này được phát hành theo CC0. Bạn tự do sao chép, sửa đổi, phân phối và sử dụng cho bất kỳ mục đích nào mà không cần xin phép.
Hỗ trợ nhà sáng tạo bằng cách mua sản phẩm qua bản thiết kế, nơi họ nhận Hoa hồng nhà sáng tạo do nhà bán hàng đặt, hoặc tạo phiên bản mới và kết nối trong bản thiết kế riêng để chia sẻ doanh thu.



