Skip to the content
2 layers140.3 × 51.9 mmXirtam, the printed circuit board in 3D

MOVED to code.netzhansa.com/hanshuebner/xirtam. This GitHub mirror is archived.

Size
140.3 × 51.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
29
Nets
114
Pads
1,886
Tracks, vias
592, 110
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
28 Apr 2021
Updated
2 Aug 2021

Overview

Xirtam is an open-source printed circuit board by hanshuebner, from the hanshuebner/xirtam repository on GitHub. It is a 2-layer board of 140.3 × 51.9 mm with 29 parts on 114 nets, routed with 592 tracks and 110 vias.

It is built around the AT90USB1287-AU and MT093APR1. Its parts include 8 capacitors, 7 connectors, 4 resistors, 3 ICs and 1 switch. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

Synopsis

xirtam is a an interface device to connect a USB keyboard to a computer with a matrix keyboard interface, i.e. an 8 bit home computer.

The repository contains the AT90USB1287 firmware source code and KiCAD schematic/PCB design for the xirtam project. It is a fork of the SmallyMouse2 project that implements a similar device for realy computer mice.

Motivation

8 bit home computers interface to their keyboard through a matrix style interface. The main CPU periodically scans the keyboard matrix for key presses converts them to characters or control information as required. This is in contrast to more modern machines, where a separate microcontroller performs the keyboard scanning task and interfaces to the main CPU using a serial interface.

Being able to use an USB interface with an 8 bit home computer is often desireable because of the bad quality that home computer keyboards typically have. Some don't even have physical keys, but most use cheap mechanical switches. Furthermore, the keyboard is always integrated into the system unit, and a detachable keyboard is much desireable.

Implementation

Interfacing a modern keyboard to a computer with a matrix interface is slightly tricky because of the way how the scanning is typically implemented. The keyboard is organized as a matrix of switches, with each switch connecting a particular pair of a vertical and horizontal line of the matrix. It does so by sending a high signal to one of the row lines of the matrix, and then reading back the value sent by the keyboard on the column lines. For each key pressed in the particular row, the respective column bit will be high.

The scanning of the keyboard is a rapid process, with little time between when the row was selected and the column being read. Typically, there will only be a few hundred nanoseconds between when the CPU selects a row and when it reads back the column data. Hence, software based solutions to emulate a keyboard matrix, while they exist, require a very fast microcontroller or additional hardware or software running on the micro to work.

xirtam approaches the timing problem by using a matrix switch chip that works the same way as a physical keyboard. The physical switches of the keyboard are replaced by semiconductor switches inside of the chip which can be controlled by a host interface. When one of the switches is turned on by the host, it connects the row and column at its intersection until the host turns if off again. Hence, the scanning of the keyboard by the home computer can be done at arbitrary rate, like with a physical keyboard.

Matrix switch chips are used in video and audio crossbar applications and have been around for a long time. They are available in various configurations and sizes and are reasonably priced. The chip chosen for xirtam is the MT093.
It was developed by Zarlink (now Microchip) and provides for 96 switches in an 8x12 configuration. It provides an easy to use interface for control, allowing the microcontroller to address one of the switches on a parallel address bus and sending the desired switch state on a separate data bit.

xirtam supports both JTAG and USB bootloader programming. The AT90USB1287 is pre-programmed by Atmel with the (FLIP) DFU bootloader; this bootloader is recognised by Atmel Studio as a programming device and can be used to flash the firmware to the board.

Installation

Note: This is an Atmel Studio 7 project that can be loaded and compiled by the IDE

Please see http://www.waitingforfriday.com/?p=827 for detailed documentation about SmallyMouse2

Authors

SmallyMouse2 was written and is maintained by Simon Inns. It was adapted to xirtam by Hans Hübner.

License (Software)

text
SmallyMouse2 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SmallyMouse2 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with SmallyMouse2. If not, see <http://www.gnu.org/licenses/>.

License (Hardware)

Both the schematic and the PCB design of xirtam (i.e. the KiCAD project and files) are covered by a Creative Commons license; as with the software you are welcome (and encouraged!) to extend, re-spin and otherwise use and modify the design as allowed by the license. However; under the terms of the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license you are required to release your design 5.(or redesign) under the same license. For details of the licensing requirements 6.please see https://creativecommons.org/licenses/by-sa/4.0/

Parts

29
QtyValueFootprintReferences
5100nFCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC3, C5, C6, C7, C8
210KResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR3, R4
222RResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR1, R2
222pFCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC1, C2
116 MHzCrystals:Crystal_SMD_5032-2pin_5.0x3.2mm_HandSolderingY1
11uFCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC4
14066Package_SO:SO-14_5.3x10.2mm_P1.27mmU3
1AT90USB1287Housings_QFP:TQFP-64_14x14mm_Pitch0.8mmU2
1BootloaderConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalJ5
1Conn_01x28_FemaleConnector_PinSocket_2.54mm:PinSocket_1x28_P2.54mm_HorizontalJ2
1Conn_01x28_MaleConnector_PinHeader_2.54mm:PinHeader_1x28_P2.54mm_HorizontalJ1
1DebugConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ6
1JTAGConnector_IDC:IDC-Header_2x05_P2.54mm_HorizontalJ4
1MT093APR1Package_LCC:PLCC-44U1
1MatrixInterconnectMatrixJumper:matrixinterconnectmatrixM1
1PowerConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalJ3
1ResetButton_Switch_SMD:SW_SPST_FSMSMSW1
1USB_ASimonsFPLibrary2017:Amphenol_87583-2010BLFP1

The 25 most common of 29 parts.

Similar boards

  • 2 layers52.3 × 42.2 mmSmallyMouse2, the printed circuit board in 3D

    SmallyMouse2

    Domesday86/SmallyMouse2

    Universal USB to quadrature mouse adapter

    37 parts115
  • 2 layers447.8 × 139.3 mmA500KB, the printed circuit board in 3D

    A500KB

    HenrykRichter/A500KB

    Amiga 500 Custom Mechanical Keyboard

    250 parts46
  • 2 layers65.5 × 50.8 mmBeebSCSI, the printed circuit board in 3D

    BeebSCSI

    Domesday86/BeebSCSI

    SCSI-1 Emulator for 8-bit Acorn computers such as the BBC Master and BBC Model B

    60 parts29
  • 2 layers101.6 × 76.1 mmTeensylu, the printed circuit board in 3D

    Teensylu

    syntetyczny/KOS

    Another RepRap controller based on teensylu/printrboard and more.

    141 parts3
  • 2 layers52.3 × 10.5 mmStackLink, the printed circuit board in 3D

    StackLink

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    29 parts5.1kGPL-3.0
  • 2 layers56 × 20 mmHallEffectXY Endstop, the printed circuit board in 3D

    HallEffectXY Endstop

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    29 parts1.1kGPL-3.0
  • 2 layers50 × 23.2 mmAnalog, the printed circuit board in 3D

    Analog

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    29 parts1kGPL-3.0

Questions

How big is the Xirtam PCB?

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

What parts does the Xirtam use?

29 parts, built around the AT90USB1287-AU and MT093APR1. 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 Xirtam KiCad files?

From the hanshuebner/xirtam repository on GitHub, at the commit this page was made from: the board is KiCAD/xirtam.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Xirtam design in my own project?

Its repository states no licence, so its author keeps all rights: ask hanshuebner before reusing the design.