Adding floppy disk support to CircuitPython, step 2

Subscribers:
458,000
Published on ● Video Link: https://www.youtube.com/watch?v=frnJ7pWr5Zg



Duration: 1:00
3,565 views
156


OK now that we've gotten the motor up and running, and the drive selected in step 1 - we know our wiring is correct. step 2 is getting data out! unlike almost all protocols we're used to, there's no clock pin on floppy data. it comes out in MFM format (at least, this floppy disk format does) which means we get a series of ~500kHz open-drain pulses with short negative widths, and varying positive widths that indicate flux transitions. now the *proper* thing to do here is use a PLL to sync up with the pulses since the motor speed can vary a few %, then convert the pulse widths to bits of data. but we're gonna do it dirty to start, and just busy-poll the pin using a fast register gpio read and collect pulse widths, then maybe decode and bitpack them on the fly. not sure if this is workable yet, but it looks OK so far: just started collecting the data pulses and they seem to be binnable.

part 1 is here:
https://youtu.be/ceyM6vYpT74

#floppy #python #arduino

Visit the Adafruit shop online - http://www.adafruit.com

-----------------------------------------
LIVE CHAT IS HERE! http://adafru.it/discord

Adafruit on Instagram: https://www.instagram.com/adafruit

Subscribe to Adafruit on YouTube: http://adafru.it/subscribe

New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
-----------------------------------------




Other Videos By Adafruit Industries


2022-01-01low cost and easily available floppy interface hardware, part 9! pico power
2022-01-01click ... click ... click ... that is the sound of a Raspberry Pi Pico RP2040 + floppy drive
2022-01-01Cross-platform interfacing hardware for floppy disks, part 8 - PINK TIME!
2022-01-01YAY! floppy disk interfacing part6, a floppy flux milestone! part 7
2022-01-01reading floppy disk data part 6, MFM sector decoding
2021-12-31reading raw floppy disk data part 5, at night the greaseweazles come
2021-12-31from the (kitchen table) desk of ladyada & pt ... new year's hackin' 2021
2021-12-30interfacing with floppy disks at low level, part 4
2021-12-29Reading floppy disk data, part 3! itsa pulse party
2021-12-282021 3D Printing Project @adafruit #3DPrinting
2021-12-28Adding floppy disk support to CircuitPython, step 2
2021-12-28The Great Search: A Tool-Tastic Holiday! #TheGreatSearch #DigiKey #Adafruit @adafruit @DigiKey
2021-12-27Adding floppy disk support to CircuitPython, step 1
2021-12-27Gyarados #Timelapse #3DPrinting #adafruit
2021-12-27CircuitPython Weekly Meeting for December 27, 2021 @circuitpython #circuitpython #adafruit
2021-12-26Desk of Ladyada - Cozy Holiday Chillax Time
2021-12-23New Products 12/22/2021 Featuring #Adafruit QT Py ESP32-S2 WiFi Dev Board with STEMMA QT!
2021-12-23THIS SMELLS LIKE APPLE TV - FOUNDATION ....
2021-12-23EYE on NPI - TDK BCS Series Low Illumination Film Solar Cells #EyeOnNPI @DigiKey @TDK_Corporation
2021-12-23Adafruit Top Secret! December 22, 2021 #Adafruit #AdafruitTopSecret @Adafruit
2021-12-23Python on Hardware weekly video 162 #CircuitPython #Python #MicroPython @Adafruit



Tags:
adafruit
electronics
diy
arduino
hardware
opensource
projects
raspberry
pi
computer
raspberrypi
microcontrollers
limor
limorfried
ladyada
STEAM
STEM
python
microbit
circuitpython
neopixel
neopixels
raspberry pi
circuitplaygound
nyc
make
makers
micro:bit
adafrit
adafruit promo code
ada fruit
adafruit coupons
raspberry pi zero
micropython
machine learning
ai
tensorflow