This handy printer interface started out as a request on our very own forums when forum member [victorf] needed some output via thermal printers. He had scored a number of HP82240B thermal printers intended for use with HP calculators, but of course they used the somewhat arcane HP protocol first drafted in the 1960’s and needed some help.
Fellow forum member [wireb] started to look into it, found out it uses a standard 32KHz carrier signal, and started asking questions about its use. Grabbing a pdf of the manual he was able to find out all the details to what the printer was expecting in the form of communications.
After a few weeks, [wireb] was able to make a convenient, logic level serial to HP-IR adapter based around a PIC16F1824 who’s firmware supports 9600 8N1 or 2400 8N1 speeds, ASCII text, and the printer’s “advanced” graphical modes via escape sequences.
If you have not checked out our forums yet we suggest you do!