Skip to the content
2 layers60 × 60 mmXum1541, the printed circuit board in 3D

An OpenCBM compatible interface for the 1541 disk drive that can be used to backup and restore floppies.

Size
60 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
28
Nets
27
Pads
98
Tracks, vias
195, 0
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
4 Apr 2022
Updated
4 Apr 2022

Overview

Xum1541 is an open-source printed circuit board by Beaupre-Circuit-Design, from the Beaupre-Circuit-Design/c64-xum1541 repository on GitHub, published under the MIT licence. It is a 2-layer board of 60 × 60 mm with 28 parts on 27 nets, routed with 195 tracks and 0 vias.

Its parts include 7 resistors, 2 ICs, 2 diodes, 2 connectors and 1 capacitor. It belongs with the interfaces and adapters boards and the AVR (ATmega, ATtiny) boards of this library.

README

xum1541/README.md

XUM1541

Introduction

An OpenCBM compatible interface for the 1541 disk drive that can be used to backup and restore floppies.

Components and assembly

Component selection isn't terribly critical, whathever you have in hand that fit the values will probably work just fine. Values for the led resistors will drive them at around 18ma which may be quite bright, increase the values if it's the case. R1 to R5 can be anything between 1KΩ and 100KΩ. The decoupling capacitor C1 should be at least 10v or more.

As alway, when assembling, start with the smallest components (resistor and capacitor) and grow in size as you go.

QtyRefValueDescription
1C1100nFCeramic Disc Capacitors 100nF 2.54mm Radial Leads (10v or more)
1D1Red LedLight Emitting Diodes Red Diffused 5mm 20mA/1.9V
1D2Green LedLight Emitting Diodes Green Diffused 5mm 20mA/2.2V
1J1Conn_02x06_Odd_EvenPin Headers Righ Angle 2.54mm 2x6 Pin
1J2DIN-453226 pin Female DIN connector (240°) DIN 45322/60130-9 IEC-17
5R1-R5100kΩResistors 100kΩ Axial Leaded Through Hole
1R6180ΩResistors 180Ω Axial Leaded Through Hole
1R7150ΩResistors 150Ω Axial Leaded Through Hole
1SW1SW_PushMicro-Switch 6x6mm
1U1Arduino_Pro_MicroSparkFun Arduino Pro Micro ATmega32U4
1U274LS06DIP-14 Inverters

Firmware

The firmware source code is available in the OpenCBM repository if you want to compile it yourself but since the code is stable and mature, it is not really needed and we can use a precompiled version. At the time of release, the current version is V08.

Theses instructions are for Windows, but all the needed softwares are available for about any other platforms.

Install WinAVR and open Device Manager, then connect the Arduino Pro Micro. A new Serial Port should appear after a few seconds.

Monitor Serial Port

This is the monitor serial port, but not the one we want, to put the Arduino into programming mode, reset it twice, you should see the Com Port number change, which tell you that we are in Firmware Update mode.

Firmware Serial Port

The Arduino will stay in this mode for about 8 seconds then revert back to the monitor serial port mode. So you need to be a little bit fast. First, note the Com Port number when the device is in Firmware Update mode (In this case, COM4), then open a command prompt and go to the bin directory of WinAVR. Once there, enter the following command but do not press enter (Adjust the path and filename of the firmware as needed):

text
avrdude -p m32u4 -c avr109 -P com4 -U flash:w:xum1541-PROMICRO_7406-v08.hex

Then, reset the Arduino twice to put it in programming mode and press enter. If everything goes well you should get a result like this:

text
C:\WinAVR-20100110\bin>avrdude -p m32u4 -c avr109 -P com4 -U flash:w:xum1541-PROMICRO_7406-v08.hex

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "xum1541-PROMICRO_7406-v08.hex"
avrdude: input file xum1541-PROMICRO_7406-v08.hex auto detected as Intel Hex
avrdude: writing flash (9026 bytes):

Writing | ################################################## | 100% 1.29s

The Arduino will reset after the Firmware Upload and a new device should appear in device manager:

Firmware Serial Port

Driver installation

Next, we need to install the driver for the new device, start Zadig and select the xum1541 floppy adapter (PROMICRO_7406) device, next change the driver to libusp-win32, finally click Install Driver and wait for the confirmation message.

Firmware Serial Port

OpenCBM Installation

Unzip OpenCBM into a temporary directory and open a Command Prompt in Administrator mode, switch to the temporary OpenCBM directory and type the following command:

text
install.cmd xum1541

Install will start, check for a previous installation and advice that it will request elevated privileges, press any key to start installation or CTRL-C to abort.

text
find: /i: No such file or directory
OpenCBM installation script
===========================

Elevating privileges in order to install OpenCBM.
Please grant the rights on the UAC prompt,
or I will not be able to continue


Your installation will continue in another window.
Press any key to continue . . .

Another window will open and installation will continue, when it ask to install drivers, answer no since they have already been install.

text
Continuing...
24 File(s) copied
5 File(s) copied
2 File(s) copied
3 File(s) copied
Working directory = 'C:\Program Files\opencbm\',
system  directory = 'C:\Windows\system32\',
driver  directory = 'C:\Windows\system32\DRIVERS\'.
Using plugin: 'xum1541' with filename 'opencbm-xum1541.dll'.
++++ Install: 'xum1541' with filename 'opencbm-xum1541.dll'.
Copying '.\opencbm-xum1541.dll' to 'C:\Windows\system32\opencbm-xum1541.dll'

=================================================
=== OpenCBM v0.4.99.104 for  xum1541
=== installation done
===
=== Add C:\Program Files\opencbm to your PATH to use the command line tools there.
=================================================


I could install the necessary USB drivers if you like.
If you want this, then please
1. attach your device, and then
2. answer the following question with "y", without parenthesis:

Testing

First, test without connecting anything, open an OpenCBM Shell Firmware Serial Port and type the following command:

text
cbmctrl detect

You should get the following error:

text
C:\Users\xum1541>cbmctrl detect
error: no xum1541 device found
An error occurred opening OpenCBM, aborting...

C:\Users\xum1541>

Next, connect the XUM1541 but do not connect a drive to it and try the command again, this time your should not see any output. This confirm that the XUM1541 is detected and working correctly.

text
C:\Users\xum1541>cbmctrl detect

C:\Users\xum1541>

Finally, disconnect the XUM1541 from the computer and make sure the 1541 is powered off, connect the 1541 to the XUM1541 with the IEC Cable, connect the XUM1541 to the computer and finally turn on the 1541. You may now try the command again, and this time you should see the device ID and model of the connected disk drive.

text
C:\Users\xum1541>cbmctrl detect
 8: 1541-II

C:\Users\xum1541>

Basic OpenCBM commands

This is definitly not an exaustive guide, but just a few commands to test and do basic tasks.

Reading disk directory

Reading the disk directory can be done with the cbmctrl dir <DISKID> command:

text
C:\Users\xum1541>cbmctrl dir 8
0 ."test/demo  1/85 " 84 2a
14   "how to use"       prg
8    "how part two"     prg
7    "how part three"   prg
4    "vic-20 wedge"     prg
1    "c-64 wedge"       prg
4    "dos 5.1"          prg
9    "printer test"     prg
6    "disk addr change" prg
12   "view bam"         prg
15   "display t&s"      prg
4    "check disk"       prg
11   "performance test" prg
5    "seq.file.demo"    prg
18   "rel.file.demo"    prg
7    "sd.backup.c16"    prg
7    "sd.backup.plus4"  prg
10   "sd.backup.c64"    prg
7    "print.64.util"    prg
7    "print.c16.util"   prg
7    "print.+4.util"    prg
13   "uni-copy"         prg
30   "c64 basic demo"   prg

Backing up disk to PC or restore to disk from PC

Making backup or restoring a disk can be done with the d64copy <SRC> <DST> command:

Backup disk in drive id 8 to disk image 1541-demo.d64:

text
C:\Users\xum1541>d64copy 8 1541-demo.d64
[Warning] growing image file to 683 blocks
 1: *********************
 2: *********************
 3: *********************
 4: *********************
 5: *********************
 6: *********************
 7: *********************
 8: *********************
 9: *********************
10: *********************
11: *********************
12: *********************
13: *********************
14: *********************
15: *********************
16: *********************
17: *********************
18: *******************
19: *******************
20: *******************
21: *******************
22: *******************

Restore disk image 1541-demo.d64 to disk in drive id 8:

text
C:\Users\xum1541>d64copy 1541-demo.d64 8
 1: *********************
 2: *********************
 3: *********************
 4: *********************
 5: *********************
 6: *********************
 7: *********************
 8: *********************
 9: *********************
10: *********************
11: *********************
12: *********************
13: *********************
14: *********************
15: *********************
16: *********************
17: *********************
18: *******************
19: *******************
20: *******************
21: *******************
22: *******************
23: *******************

Format a disk

Format a disk in drive id 8:

text
C:\Users\xum1541>cbmformat 8 XUM1541_FORMAT,01 -c

C:\Users\xum1541>cbmctrl dir 8
0 ."xum1541⌂format  " 01 2a
664 blocks free.
00, ok,00,00

C:\Users\xum1541>

For more information, see the official OpenCBM documentation.

Licence

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

Revision History

RevisionDescription
1.0Initial prototype

Parts

28
QtyValueFootprintReferences
5100kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR1, R2, R3, R4, R5
4MountingHole_PadMountingHole:MountingHole_2.7mm_Pad_TopBottomH1, H2, H3, H4
1100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC1
1150Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR7
1180Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR6
174LS06Package_DIP:DIP-14_W7.62mm_SocketU2
1Arduino_Pro_MicroArduino_Pro_Micro:Arduino_Pro_MicroU1
1BCD_LogoBeaupreCircuitDesign:BCD_Logo_5mmG1
1BDC_QRBeaupreCircuitDesign:BDC_QR_10mmG9
1ChickenLipsBeaupreCircuitDesign:ChickenLips_5mmG2
1Conn_02x06_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x06_P2.54mm_HorizontalJ1
1CreativeCommonsCreative_Common:CreativeCommons_5mmG5
1CreativeCommons_AttributionCreative_Common:CreativeCommons_Attribution_5mmG6
1CreativeCommons_NonCommercialCreative_Common:CreativeCommons_NonCommercial_5mmG7
1CreativeCommons_ShareAlikeCreative_Common:CreativeCommons_ShareAlike_5mmG8
1DIN-45322DIN_45322:DIN_45322J2
1GREENLED_THT:LED_D5.0mmD2
1OpenSource_HardwareBeaupreCircuitDesign:Open_Source_Hardware_5mmG3
1REDLED_THT:LED_D5.0mmD1
1SW_PushButton_Switch_THT:SW_PUSH_6mmSW1
1SkullBeaupreCircuitDesign:Skull_5mmG4

More from Beaupre-Circuit-Design/c64-xum1541

2
  • 2 layers72 × 25 mmXum1541-parallel adapter, the printed circuit board in 3D

    Xum1541-parallel adapter

    Beaupre-Circuit-Design/c64-xum1541

    An OpenCBM compatible interface for the 1541 disk drive that can be used to backup and restore floppies.

    16 partsMIT
  • 2 layers19.6 × 58.7 mmXum1541-via adapter, the printed circuit board in 3D

    Xum1541-via adapter

    Beaupre-Circuit-Design/c64-xum1541

    An OpenCBM compatible interface for the 1541 disk drive that can be used to backup and restore floppies.

    10 partsMIT

Similar boards

  • 2 layers44.5 × 72.7 mmOSO SWAT C1-jig, the printed circuit board in 3D

    OSO SWAT C1-jig

    joeycastillo/Sensor-Watch

    A board replacement for the classic Casio F-91W wristwatch

    28 parts2.1k
  • 2 layers95 × 54 mmEinkPDA screen, the printed circuit board in 3D

    EinkPDA screen

    TalismanDesign/PocketMage_PDA

    An E-Ink PDA device using the ESP32 S3.

    28 parts2kApache-2.0
  • 2 layers45 × 45 mmSmartbuttons, the printed circuit board in 3D

    Smartbuttons

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    28 parts915
  • 2 layers24.1 × 36.2 mmEsp32miniBT, the printed circuit board in 3D

    Esp32miniBT

    asterics/esp32_mouse_keyboard

    ESP32 implementation for HID over GATT Keyboard and Mouse (Bluetooth Low Energy). Including serial API for external modules (similar to Adafruit EZKey HID)

    28 parts911GPL-3.0
  • 2 layers34.8 × 12.2 mmInfnoise goldfingers, the printed circuit board in 3D

    Infnoise goldfingers

    waywardgeek/infnoise

    The world's easiest TRNG to get right

    28 parts854CC0-1.0
  • 2 layers55.9 × 99.1 mmStm32f0 disco Luos shield, the printed circuit board in 3D

    Stm32f0 disco Luos shield

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    28 parts546MIT
  • 2 layers88 × 25 mmEleLab v2 Frontpanel a, the printed circuit board in 3D

    EleLab v2 Frontpanel a

    Chrismettal/EleLab_v2

    Cheap DIY lab system for hobbyists and the tinkering folk

    28 parts531GPL-3.0

Questions

How big is the Xum1541 PCB?

It measures 60 × 60 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Xum1541 use?

28 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Xum1541 KiCad files?

From the Beaupre-Circuit-Design/c64-xum1541 repository on GitHub, at the commit this page was made from: the board is xum1541/xum1541.kicad_pcb and its schematic xum1541-parallel-adapter/xum1541-parallel-adapter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Xum1541 design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).