Post Reply 
aftermarket IR printer
05-27-2017, 04:30 AM (This post was last modified: 05-27-2017 04:32 AM by nsg.)
Post: #5
RE: aftermarket IR printer
My 82240b printer stopped working and I considered making a hardware simulator for it. Today my considerations started to take shape as this contraption.

[Image: ir-overview.jpg]

IR sensor is TSOP38233-ND. It is a 33 Khz sensor. While HP protocol specifies 32768, this turned out to be close enough — oscilloscope shows something that looks like a valid frame(s) when I send printing commands from my infrared modded WP 34s.

The printer is CSN-A2 thermal printer with TTL serial interface. It is not exactly compatible with HP's printing unit but I hope it is close enough to emulate. I've got my from Adafruit. They sell it as a kit with a 5V 2A power supply and a connector. I was having whole lot of weird unpredictable behavior until I realized that printing in graphic mode (bitmaps) and printing block characters drains too much power for this power supply. Oscilloscope showed that voltage drops as low as 2 volts, which sends printer in reset midprint. To be fair, the kit power supply works ok with normal text printing. Anyway, I've searched my bin of power supplies that need home and found a 9V 4A one which works much better. I still have some weird behavior when trying to print bitmaps, but Adafruit sample programs (QR code, logo, etc) print normally, so, I assume, I just need some more figuring out to do.

The controller for now is RPi1B. I installed lirc and only use hardware driver (lirc_rpi) to get pulse/space timings, which I process myself with a perl script. Maybe there is a way to teach lirc to do the parsing, but I have not figured it out right away, so went with a perl script. This is a good thing, since I will not be able to use lirc in the decoding layer of the final product. RPi is ok for prototyping, but it takes 60-90 seconds to boot up and I would prefer faster availability. So, I will not be able to run linux and, by extension, lirc.

The parsing still has some glitches, but it correctly parses 99% of the frames.

(from here)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
aftermarket IR printer - c785 - 04-07-2017, 09:26 AM
RE: aftermarket IR printer - TomC - 04-07-2017, 02:30 PM
RE: aftermarket IR printer - c785 - 04-07-2017, 05:53 PM
RE: aftermarket IR printer - nsg - 05-27-2017 04:30 AM



User(s) browsing this thread: 1 Guest(s)