2023-04-09 05:20:57 +00:00
# Keyboard Converter: Consul 262.5 & VDX 52600
![Terminal with keyboard and the converter ](overview.jpg )
Arduino project for a keyboard converter between a Zbrojovka Consul 262.5 terminal keyboard and a Videoton VDX 52600 terminal.
2025-01-05 09:11:09 +00:00
Why? Because the VDX 52600 terminal doesn't use the AT or XT keyboard protocol. And neither does the Consul 262.5.
This converter aims to translate between the two non-standard protocols, making these devices usable!
2023-04-09 05:20:57 +00:00
## Keyboard: Consul 262.5
2025-01-05 09:11:09 +00:00
Terminal keyboard from 1980s built in Brno, Czechoslovakia.
2023-04-09 05:20:57 +00:00
It uses a DB25 connector with UART TTL data lines, clock line, +5V primary power and -12V auxiliary power.
2025-01-05 09:11:09 +00:00
The -12V voltage alone makes in unusable with the current computer hardware, so a converter is necessary.
2023-04-09 05:20:57 +00:00
## Terminal: VDX 52600
2025-01-05 09:11:09 +00:00
VT52 terminal from 1987 built in Hungaria.
The serial interface is an RS-232 on a DB25 connector.
It features a DIN5 keyboard connector that does not use the standard AT/XT keyboard protocol.
2023-04-09 05:20:57 +00:00
## Converter
Interfaces the keyboard and the terminal, optionally a USB. These modes of operation are supported:
1. Keyboard and terminal connected: primary standalone mode. Everything is powered from the terminal.
2. Keyboard and USB connected: USB keyboard mode. Powered from the USB which acts as a HID keyboard.
3. Terminal and USB connected: Serial keyboard over USB mode. Powered independently. Allows sending keystrokes to the terminal over USB serial.
![Converter box ](box.jpg )
## Parts needed
- Arduino Leonardo
- Symmetrical boost converter, 5V to +/- 12V
- Piezo speaker
- red and green LED + 470 ohm resistors
- connectors
- project box
- (among others)
2023-04-09 05:22:36 +00:00
2023-04-09 05:20:57 +00:00
## Connections
### Terminal DIN5
Device | Controller | Description
2023-04-09 05:22:36 +00:00
---|---|---
2023-04-09 05:20:57 +00:00
GND | GND | Ground
+5V | +5V | Power
Data | 6 | Keyboard data to terminal
2025-01-04 19:29:24 +00:00
Status | 7 | Status (LEDs) and Clock from terminal
![DIN5 connector pinout ](DIN5_pinout.jpg )
2023-04-09 05:20:57 +00:00
2023-04-09 05:22:36 +00:00
2023-04-09 05:20:57 +00:00
### Keyboard DB25
Device | Controller | Description
2023-04-09 05:22:36 +00:00
---|---|---
2023-04-09 05:20:57 +00:00
GND | GND | Ground
+5V | +5V | Power
-12V | -12V | via a symmetrical boost converter
Serial out | 3 | UART out from keyboard
Serial in | 4 | UART in to keyboard
2023-04-09 05:22:36 +00:00
2023-04-09 05:20:57 +00:00
### Box Interface
2023-04-09 05:22:36 +00:00
| Controller | Description |
| ---|--- |
| 10 | Offline LED |
| 9 | Online LED |
| 8 | Speaker |
2023-04-09 05:20:57 +00:00
2025-01-04 22:26:59 +00:00
2025-01-05 09:11:09 +00:00
## VDX 52600 keyboard protocol
Since I didn't have any compatible keyboard, I tried reverse-engineering the protocol. Following are my findings:
- on the Status pin, the terminal periodically sends out a status "packet" with the state of LEDs
- on the Data pin, the keyboard sends 8-bit key codes
- it seems to rely on a shared baud rate, expecting the keyboard to synchronize on the periodic status messages sent by the terminal
- the terminal is not listening for key codes while it is transmitting the status packet
2025-01-04 22:26:59 +00:00
2025-01-05 09:11:09 +00:00
## Terminal's DB25 connector
The VDX 52600 terminal uses the standard RS-232 serial link through a DB25 connector. It is enough to connect pins (2) TX, (3) RX and (7) GND.
2025-01-04 22:26:59 +00:00
See [RS-232 over DB25 connector ](http://www.nullmodem.com/DB-25.htm ) for more.
2025-01-05 09:11:09 +00:00
Beware that this is an RS-232, so the voltages are not safe for a standard USB-to-serial module. Use an RS232-to-TTL converter such as the MAX232 chip.
By default the serial port configuration is 9600– 8-N-1 (i.e. the standard baud rate of 9600).
Connecting it to a serial port of a Linux machine works nicely and you get a vintage console experience.
## Links
- [Videoton VT terminal family (in Hungarian) ](https://itf.njszt.hu/termek_hardware/vt-videoterminal-csaladok )
- [Consul 262.5 technical details and manual (in Czech) ](http://www.sapi.cz/prislusenstvi/c262-5.php )
2025-01-04 22:26:59 +00:00