Thermal Printer driver
Well well. ESC POS command eh? Doesn’t seem that hard, does it?
I got my hands on a 3inch thermal printer from Fujitsu Siemens.
That would be the FTP-628DSL600 Series controller board and an FTP-638MCL101 Printer.
Initially nothing worked. Took some time before I found out that you had to connect not only Rx and Tx for the serial communication but the three /INPRM, /ATF and /SLCTIN, wires according to a time diagramm to actually initialize the printer. In our case that would be /SLCTIN to GND and /INPRM and /ATF to 5V.
Make it work:
Up to now we have problems finding the right power supply unit. The Voltage starts to drop off when the print ratio is high (eg printing 3inch by 3inch pictures). What happens is that the heater wont be warm enough and the motor wont move fast enough resulting in bad print quality fist repetitive voids and grayish areas.
(gray printing would be cool though :-])
Setting the printer to speedMode 5 (less power consumption) stabilizes the print quality. But the printing process on higher ratios is dam slow for a thermal printer.
myPort = new Serial(this, Serial.list(), 19200,’N’,8,1);
//TALK TO PRINTER
myPort.write(“Print that!”);//line Feed