Categories
Archives
- June 2026
- June 2025
- December 2024
- November 2023
- August 2022
- June 2022
- November 2021
- October 2021
- September 2021
- April 2021
- February 2021
- December 2020
- October 2020
- September 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- January 2020
- July 2019
- May 2018
- November 2015
- July 2015
- June 2015
- April 2015
- March 2015
- August 2013
- December 2011
- December 2010
- September 2010
- July 2010
- March 2010
- February 2010
- December 2009
- January 2009
- August 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- July 1999
Links...
Other
Meta
AVR USB printer device and teletype
I have old teletype printer T-63 (it is made by RTF in Eastern Germany, clone of old Siemens Teletype). And the idea is about connecting it as USB printer to our-days computer. Easiest way is to connect it using RS232 port, configured to 50bod speed and 5 data bits. But I was thinking about real USB printer.
Somehow I didn’t managed to program old AVR Atmega16 series MCU with V-USB library as printer. Windows is detecting as “printer”, but “cannot start”. Next device available was ATMEGA32U4 board from China, for about 2€. It is more modern chip, with build in USB hardware. I selected LUFA library (latest version, downloaded with git).

This is very small board with everything already soldered for testing. For electrical compatibility I used SSR (solid state relay)- I need to link TTL level with 40mA (50…120V) current loop.

I wrote all stuff on windows 10 Pro computer. I managed to emulate “text only”, “generic” printer. Windows downloaded drivers and installed them automatically, but I encountered some weird problems: windows can print only few hundreds of symbols. After it printing stalls, and after few minutes print spooler reports error.
I switched computer to old Apple Air with old Mac OS X (10.6?). Mac OS detected printer, but there was no downloadable drivers. After playing with CUPS, I installed RAW printer driver. But there is problem with modern computers- even if I was printing plain text file (‘The Call of Cthulhu’), apple “text editor” was sending PDF formated data to printer.
Next computer was Linux Mint (also very old version). Linux detected and installed text only printer driver. But when printing same text from some type of text viewer the output was nill. Why? When switched to raw printer driver, output was same PDF signature and binary data. Same shit… why modern software make all jobs so complicated?
But there was good news- all that binary data was sent to printer without any problems. So, printing in Windows 10 was the windows drivers problem, not AVR device.
Thanks to all gods (and the older ones), but there is old school command prompt (shell) in linux. And only few lines of commands and that dark text appeared on paper with 50+ years old teletype printer.

All source code is free and available for download:
USB printer device on AVR ATMEGA32U4 source code LUFA. With ‘The Call of Cthulhu’ testing text included.
To compile, please download latest LUFA library from github.
Lithuanian, extended version. Hardware (Lithuanian).
Building 8bit ATARI test ROM in easy way
I was experimenting with damaged Atari 800XL and I need to test it in low level. I wrote several lines in machine code and it was pain in the ass to fill data to ROM chip. After entering HEX data in binary editor with several errors, I decided to write some “visual ROM linker” to merge asembler output with ROM chip buffer.
In attached archive there is third party 6502 asembler, test program source, asembler output, ROM binary file and my visual linker executable for windows .NET system. There is installer too, but software is not signed.

Some of 6502 asembler…

My ROM linker….

Atari emulator running my new ROM.
All software to download:
Atari ROM visual linker
Feel free to use.