DIY Microcontroller Drive Emulators (SIO2Arduino, SIO2MicroSD, Little Atari 810, SDrive-ARM, sio2flip)

Year
2011
Type
DIY project
Category
SD-card disk drive emulators
Manufacturer
Homebrew projects (Dan Noguerol, Don Peruski, Rossum, alsp/fintros, cepetr)
A real Atari 810 disk drive with a 5.25-inch floppy disk lying on top, and beside it a tiny scale model of an 810 connected by a thin SIO cable

Overview

An Atari disk drive is an intelligent peripheral on a serial bus. Anything that can watch the SIO command line, read the five-byte command frame at 19,200 bit/s and answer with the right acknowledgements and data can stand in for a drive. Any small microcontroller with a UART and an SPI port for an SD card can do this. This entry gathers the hobby projects that took that route outside the main SDrive and SIO2SD families. They are good first projects: a handful of wires, a board you may already own, and open-source firmware.

For the protocol itself, see the SIO serial bus.

The projects

Project Hardware Highlights
SIO2Arduino (Dan Noguerol / Farb, 2012) Arduino + SD card module Emulates one 1050 (D1:). Single- and enhanced-density ATR, XFD, XEX and many PRO and ATX images. Needs the SdFat library to compile. Open source, from whizzosoftware.com
SIO2MicroSD (Don Peruski / Diskwiz, 2011–2015) Arduino (ATmega328P) + microSD + 16×2 LCD + 4 buttons Four drives, SD/ED/DD ATRs, subdirectories, high-speed SIO up to about 56 kbit/s (limited by the Arduino's 16 MHz crystal), SDrive-compatible functions, and SDrive's XEX loader. A "game mode" simplifies the menus
A Little Atari 810 (Rossum) NXP LPC1114, microSD slot, 3.3 V regulator, LED A working miniature 810 in a 3D-printed case. Up to 8 drives, ATR, XFD and XEX, and 57,600 baud high speed
SDrive-ARM (alsp / fintros, 2017) Cypress CY8C4245AXI ARM (48 MHz, 32 KB flash) The C.P.U. SDrive rebuilt on ARM: capacitive buttons, six LEDs, SDHC and FAT32, update from SD, Hias's high-speed patches, 8 drives. Every SIO pin goes to an ARM I/O pin
sio2flip (cepetr) a Flipper Zero gadget plus an Atari SIO cable Four drives (90K–720K ATRs and hard-disk images up to 16 MB), PERCOM, US Doubler (up to 127 kbaud) and XF551 high-speed modes, XEX loading, and Atari 850 emulation bridged to a USB virtual COM port

How they're built

Wiring is minimal. Only four SIO lines matter for a drive: Data Out (pin 5, computer to drive), Data In (pin 3, drive to computer), Command (pin 7) and ground (pin 4 or 6). SIO pin 10 can supply about 50 mA at +5 V on most models, but not the 1200XL. For example:

  • SIO2MicroSD: SIO 5 to Arduino digital pin 0, SIO 3 to pin 1, SIO 7 to pin 8, ground to GND. The SD card's CS, DI and SCK lines must be level-shifted to 3.3 V. Peruski also published a single-sided PCB you can etch at home, and an OSH Park board.
  • sio2flip: Flipper pin 13 (TX) to SIO Data In, pin 14 (RX) to Data Out, pin 16 (C0) to Command, and pin 18 to ground. The Flipper's inputs tolerate 5 V, but the author warns that miswiring can damage the Flipper or the Atari. He also designed a dock.

Choosing images. With no display, the Little 810 "inserts" a menu program, BOOT.RUR (written in C with cc65), into D1: at power-on. On the Atari you pick an image with the cursor keys, press 1–8 to mount it, the space bar to eject, or RETURN to boot. XEX files are wrapped in a generated boot disk. SIO2MicroSD uses its LCD and buttons instead. sio2flip reads ATRs from /apps_data/sio2flip/atr/ and XEX files from .../xex/ on the Flipper's SD card.

Programming the chip.

  • SIO2MicroSD: flash the published HEX file with AVRDUDE. The author built it on Arduino IDE 0022.
  • Little 810: the board's header matches an FTDI cable, so FlashMagic can load the first firmware.
  • SDrive-ARM: needs a Cypress KitProg, for example on a CY8CKIT-043.
  • sio2flip: a normal Flipper app. Its 850 emulation needs the 4 KB Atari 850 ROM, which you must supply yourself.

Pitfalls

  • Daisy-chaining: a device that always drives the Data In line will fight real drives on the bus. SDrive-ARM added a switching diode on Data In to fix exactly this. Keep a homemade device at the end of the chain until you've checked.
  • 3.3 V parts such as SD cards and many ARM chips need level shifting from the Atari's 5 V signals.
  • Speed: stock 19,200 baud works with any DOS. High-speed modes need a DOS or loader that supports them, such as MyPicoDos.

Today

These projects are mainly worth building for fun or learning. For everyday use, the SDrive-MAX (also Arduino-based), FujiNet and the Raspberry Pi Pico-based A8PicoSIO (see Unocart and A8PicoCart) are more complete.

Credits