Label printer datasheet - Page 1
Forum section: electronics / beginners

author: Vindhyachal.takniki
author_rank: Frequent Contributor
timestamp: April 18, 2019, 02:25:22 pm
content: I got this cheap label printer from market. Need to be interface with arduino.Any idea where I can find its datasheet. Seller didnt have it, asked to download from internet.Found some link, but no further info:https://shop.aftabrayaneh.com/LPM_261_Thermal_Label_Printer__AFTAB.html

author: austfox
author_rank: Regular Contributor
timestamp: April 18, 2019, 03:35:26 pm
content: Checkout Adafruit’s TTL printer:https://core-electronics.com.au/tiny-thermal-receipt-printer-ttl-serial-usb.htmlWhilst not the same brand, it has the same serial inputs and might help you at least get started.

author: johnkenyon
author_rank: Regular Contributor
timestamp: April 18, 2019, 05:26:49 pm
content: Have you tried using the USB port and seeing what VID/PID is shown? (my money is on a CH34x serial chip., but you never know...)

author: Vindhyachal.takniki
author_rank: Frequent Contributor
timestamp: April 19, 2019, 05:42:51 am
content: 1. I have sent data serially from arduino like Serial. print("text"). Have been able to print without issue.2. this is label printer, as in attached picture, how to identify the cut in sticker so that data gets printed on label only, now as there is no detection command I know, data gets printed out of label too.3. connected usb port to PC, it comes out to unidentified harware in device manager.

author: austfox
author_rank: Regular Contributor
timestamp: April 19, 2019, 07:50:56 am
content: Quote from: Vindhyachal.takniki on April 19, 2019, 05:42:51 amNot having written software for a data label printer, I am guessing that your software determines how much data is printed so that it fits within the label, and then a particular ‘ESC’ code is sent to advance the roll to the next label (which it does optically with the use of the black bars on the label roll).Grab a manual for another label printer because chances are the ESC codes are common amongst most label printers.

author: kjr18
author_rank: Regular Contributor
timestamp: April 21, 2019, 07:26:41 am
content: First thing, get yourself some thermal receipt paper that fits this printer, it will be useful in the beginning. Printers like these supposed to be able to print basic info like codepage, character table, serial port speed, and many other things. Try powering it while holding one of these buttons. If it won't print anything try another one. It might help you get proper serial port settings. My printer is only 9600 baud, but yours is supposed to be 9600 to 115200 baud.As for usb port, followanswer to this question,and tell us what it shows there. We might be able to find maybe drivers or other useful for you information.Quote from: austfox on April 19, 2019, 07:50:56 amThese might be not black bars but holes, as this printer supposed to have optical end-of-paper detection. I think that printer firmware will send some codes after detecting empty space, and software treats this data as "end of label, repeat printing" or something like that.

author: Vindhyachal.takniki
author_rank: Frequent Contributor
timestamp: May 05, 2019, 06:53:25 am
content: 1. Here is pic of paper I found by taking printout on selftest (paper is not label, otherwise label printer is used)2. Selftest pic is attached3. label paper pic is attached4. Printer has these pin on it : VH, Gnd , Tx, Rx, DTR, GND.5. One thing I found on selftest pic, is that hardware flow control is enabled. Now how to do that in arduino?6. I wam able to print text on printer by normal command: serial1.println("text") . But this print only of label printer is correctly placed i.e side hole is properly detected.7. Now I want to that whenever I power on system, I send command to align label properly so thAT i can print on it.I have tried all commands by this loop:for(cnt = 0U ; cnt < 255U ; cnt++){Serial1.write(cnt);}only cnt = 14 takes to next label , but only if previous label was properly placed, otherwise this dont work either.

author: stevelup
author_rank: Regular Contributor
timestamp: May 06, 2019, 10:19:30 am
content: A great many thermal printers support Epson's ESC/POS command set.To test this, send:-ESC (0x1B) @ (0x40) (this resets everything)ESC (0x1B) ! (0x21) 8 (0x38) (this should set double height, double width, bold)SOME TEXT followed by LF (0x0A) followed by FF (0x0C)If your text comes out big and bold, you know it's ESC/POS compatible and can do some more reading.

author: Vindhyachal.takniki
author_rank: Frequent Contributor
timestamp: May 20, 2019, 06:51:15 am
content: solved,1. send only 14, moves the lbel to next label i.e to start of new label. I was sending 14,10 together, which created issues.2. Rest print text is normal & for barcodes, adafruit library comes handy