Skip to the content
4 layers47 × 62.2 mmTTL2ANALOG, the printed circuit board in 3D

This board converts CGA/EGA/MDA/Hercules TTL signals into analog RGB signals that can be fed into a compatible monitor

Size
47 × 62.2 mm
Copper layers
4
Thickness
1.6 mm
Parts
33
Nets
54
Pads
172
Tracks, vias
694, 118
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
30 Nov 2021
Updated
6 Jul 2026

Overview

TTL2ANALOG is an open-source printed circuit board by hkzlab, from the hkzlab/TTL-to-RGB repository on GitHub. It is a 4-layer board of 47 × 62.2 mm with 33 parts on 54 nets, routed with 694 tracks and 118 vias.

It is built around the AMS1117-5.0. Its parts include 9 capacitors, 9 resistors, 6 connectors, 4 ICs and 2 diodes. It belongs with the lEDs and displays and retro computing and games boards of this library.

Main components

1

README

README.md

MDA/CGA/EGA/HERCULES TTL-to-ANALOG Converter

Introduction

This board converts CGA/EGA/MDA/Hercules TTL signals into analog RGB signals that can be fed into a compatible monitor.

Depending on jumper settings, it can automatically detect MDA/Hercules and Hi-res EGA modes (uses vsync polarity detection), can be forced into low-res 64 colors EGA and can perform the "brown-fix" for CGA.

Rev. 1.4 Board

The board uses a GAL20V8 PLD to implement the conversions, sync polarity detection, brown-fix, etc.

The PLD is sandwiched between two '244 buffers to protect it from shorts and allow the user to experiment with different logic families to better handle the input. It is recommended to use an 'LS244 as the output buffer, an LS or an HCT is fine for the input.

This board does NOT perform any frequency conversion. You will need a monitor capable of syncing to 15, 18 and 21Khz.

Pics!

Example of an hi-res EGA game Block Out

Example of a low-res EGA game, with palette choosen between the 64 EGA colors (instead of the 16 CGA colors) GODS

Disclaimer

I take NO responsibility for what happens if you decide to build and use this card. Your computer might crash, catch fire or be destroyed in other nasty ways. You're encourauged to take what you deem fit from this, and use it in your projects!

Functionalities

✅ means I tested the functionality and it works, ❌ means I tested the functionality and found issues, ? means that the functionality has yet to be tested.

  • [✅] CGA
  • [✅] EGA, low-res
  • [✅] EGA, low-res, 64 colors
  • [✅] EGA, hi-res
  • [✅] MDA
  • [?] Hercules

Bill of Materials

TODO

Known Issues

Rev 1.4

While this revision of the board is basically the same circuit of the previous revisions with some reorganization, the board has not been tested yet!

Rev 1.2

  • Optional power is connected to pin 15 of the HD15 connector, which is not ideal, as the best option would be pin 9. This will be fixed in a later revision (1.4)

Rev 1.1

  • Pin 13 of the GAL is tied to GND, and is currently used to switch between detection modes (CGA/MDA/HERCULES vs CGA/EGA). It can be fixed by a mod
  • The board does not provide an option for power output on the HD15 connector. This can be fixed by a mod. Note that the mod will connect power to pin 15, which is not ideal (best would be pin 9), but connecting to the proper location requires desoldering the HD15 and cut more traces.
  • With a 12v PSU the regulator gets hot. Use a PSU between 7 and 9v.

Rev. 1.1 Board Mods

Parts

33
QtyValueFootprintReferences
4470Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR2, R4, R6, R10
3100nFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC4, C5, C6
310uCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC7, C8, C9
322pCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC1, C2, C3
3680Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR3, R5, R7
274LS244Package_DIP:DIP-20_W7.62mm_SocketU2, U3
11-4.7kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR11
110kResistor_THT:R_Array_SIP6RN2
110kResistor_THT:R_Array_SIP9RN1
110kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR12
11N4001Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
15V on videoConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP1
1AMS1117-5.0Package_TO_SOT_SMD:SOT-223-3_TabPin2U5
1Analog OutConnector_Dsub:DSUB-15-HD_Female_Horizontal_P2.29x1.98mm_EdgePinOffset3.03mm_Housed_MountingHolesOffset4.94mmJ6
1Barrel_JackConnector_BarrelJack:BarrelJack_HorizontalJ7
1CSync Inv.Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1GAL20V8Package_DIP:DIP-24_W7.62mmU1
1OptionsConnector_PinHeader_2.54mm:PinHeader_2x05_P2.54mm_VerticalJ2
1PowerLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD2
1Sync TypeConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ4
1TTL InputConnector_Dsub:DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset4.94mm_Housed_MountingHolesOffset7.48mmJ5

Similar boards

  • 2 layers100 × 100 mmHeatplate v1.1, the printed circuit board in 3D

    Heatplate v1.1

    DerSpatz/PCB-reflow-solder-heat-plate

    hardware design for a PCB reflow solder heat plate

    57 parts179MIT
  • 2 layers20.3 × 110 mm4HPico, the printed circuit board in 3D

    4HPico

    rheslip/2HPico-Eurorack-Module-Hardware

    2HP Eurorack module based on Raspberry Pi Pico 2

    73 parts84
  • 2 layers36 × 43 mmAsac fc rev a, the printed circuit board in 3D

    Asac fc rev a

    victorhook/asac-fc

    asac fc is an rp2040 based flight controller made for FPV drone flying

    119 parts52GPL-3.0
  • 2 layers73 × 113 mmFT817 buddy v4, the printed circuit board in 3D

    FT817 buddy v4

    g7uhn/ft817_buddy

    A companion display & controls for the FT-817

    76 parts28CC-BY-SA-4.0
  • 2 layers30 × 110.5 mmKicad main, the printed circuit board in 3D

    Kicad main

    johannesstrueber/dots

    DOTS eurorack module pcb schematics and code ATMega328 based

    72 parts28
  • 2 layers139.7 × 88.9 mmCharge Controller, the printed circuit board in 3D

    Charge Controller

    jharvey/Charge_Controller

    MPPT hardware which uses FUGU firmware

    163 parts24
  • 2 layers135 × 100 mmHotPlate V1.0, the printed circuit board in 3D

    HotPlate V1.0

    aitesam961/Reflow_Hotplate

    A reflow Hotplate for DIY SMD assembly

    89 parts23GPL-3.0

Questions

How big is the TTL2ANALOG PCB?

It measures 47 × 62.2 mm and has 4 copper layers, 1.6 mm thick.

What parts does the TTL2ANALOG use?

33 parts, built around the AMS1117-5.0. 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 TTL2ANALOG KiCad files?

From the hkzlab/TTL-to-RGB repository on GitHub, at the commit this page was made from: the board is PCB/TTL2ANALOG.kicad_pcb and its schematic PCB/TTL2ANALOG.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the TTL2ANALOG design in my own project?

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