Mini Thermal printer SCI

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
samabed
 
Posts: 16
Joined: Fri Jul 05, 2013 11:21 am

Re: Mini Thermal printer SCI

Post by samabed »

Hello,

Maybe I did not state the question clearly. I know, "LF" will print the buffer and starts the new line. How do I position the cursor in the current line other than the start of line. i.e. I print something than I want to place the cursor at position 10, 15, and 20. or any other position.

How can I contact the printer engineers regarding the "HT" command?

Thanks,
Sam

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Mini Thermal printer SCI

Post by adafruit_support_rick »

samabed wrote:I print something than I want to place the cursor at position 10, 15, and 20. or any other position.
Print a bunch of spaces:

Code: Select all

void indent(int spaces)
{
  for (int i=0; i < spaces; i++)
    printer.print(" ");
}
Any contact information for the printer company would be in the user manual or user guide.

User avatar
samabed
 
Posts: 16
Joined: Fri Jul 05, 2013 11:21 am

Re: Mini Thermal printer SCI

Post by samabed »

Let me try this question again.

I have differnt strings such as "Yes", "No", "Short", "Open", and ... All of this start from 1st position on the line. Please note that these are diffrent sizes. I want to start next string from char position 10 to line up with the above and/or below line(s) and print these or other strings starting from position 10. and next strings from position 20 on the same line. This means that putting fix number of spaces between words does not work.

There is no email or phone contact information in the data sheet or any other documents. I thought you are our connection to the manufacturer. Why getting technical information is like pulling teeth?

Thanks,
Sam

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Mini Thermal printer SCI

Post by adafruit_support_rick »

I've escalated this to see if it's possible to contact the manufacturer. Meanwhile, you can get the same effect with this function:

Code: Select all

void printWithTab(char* printStr)
{
  int spaces = 10 - strlen(printStr);
  printer.print(printStr);
  for (int i=0; i < spaces; i++)
    printer.print(" ");
}
So you would call it as follows:

Code: Select all

  printWithTab("Yes");
  printWithTab("No");
  printWithTab("Short");
  printWithTab("Open");
  . . . etc . . .

User avatar
samabed
 
Posts: 16
Joined: Fri Jul 05, 2013 11:21 am

Re: Mini Thermal printer SCI

Post by samabed »

Thank you very much for helping me and contacting the manufacturer.

I will try your suggestion, but it will be much cleaner if we get the cursor position and/or the "HT" command to work.

Thanks again,
Sam

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Mini Thermal printer SCI

Post by adafruit_support_rick »

I've been told that our policy is to not release manufacturer information. I think you'll have to make do with the workaround I supplied

User avatar
samabed
 
Posts: 16
Joined: Fri Jul 05, 2013 11:21 am

Re: Mini Thermal printer SCI

Post by samabed »

Maybe you can ask them why the Horizontal Tab, "HT" does not work?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Mini Thermal printer SCI

Post by adafruit_support_rick »

Unfortunately, these people are not very communicative. And even if they had a firmware fix, how are you going to apply it? Just use the routine I gave you.

User avatar
samabed
 
Posts: 16
Joined: Fri Jul 05, 2013 11:21 am

Re: Mini Thermal printer SCI

Post by samabed »

Do you know the manufacturer and part number of the mating connectors )2 pins and 3 pins) which are used by the printer?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Mini Thermal printer SCI

Post by adafruit_support_rick »

I think they are JST connectors. I don't know any details:
http://www.jst-mfg.com/product/detail_e.php?series=277

tecnicesar
 
Posts: 4
Joined: Sat Apr 19, 2014 10:04 pm

Re: Mini Thermal printer SCI

Post by tecnicesar »

samabed wrote:I hope, this is the right place for this topic. If not please direct me to the right location.

I am interfacing Mini Thermal Printer with PIC18F4455.

1. What is SCI technical data such as Number of start bit(s), stop bits, Parity, ....
2. Do you have a basic "C" liberary for this printer? Where is the liberary?
3. Do you have some sample code for this?

Thanks,
Sam
Hi.
I do not know if this is the correct place to ask some questions. I Hop.

I want to know if I can use the microprinter with aPIC 16F877.
and if you supply the technical data and BANNED to conect the printer with PIC.
I want to know if the connection is made betwen the microcontroller and the printer whith out any other device?
sorry my english is not good enough .
Thanks

Cesar

tecnicesar
 
Posts: 4
Joined: Sat Apr 19, 2014 10:04 pm

Re: Mini Thermal printer SCI

Post by tecnicesar »

Hi.
I do not know if this is the correct place to make some questions about the microprinter adafruit. I hope.
1. Can I connect the printer with a Microcontroler PIC 16F877 ?
2

tecnicesar
 
Posts: 4
Joined: Sat Apr 19, 2014 10:04 pm

Re: Mini Thermal printer SCI

Post by tecnicesar »

Sorry i could not complete my question.

Can I connect the Microprinter with a Microcontrller PIC 16F877?
do you sale the printer with the data shet and the BANNED to send information PIC microprinter ?
Do you have any kind of xample with Assembler ( is the only one that I know) ?
Thanks a Lot

Cesar

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Mini Thermal printer SCI

Post by adafruit_support_rick »

You can connect the printer to any mocrocontroller that has a serial output port. I presume the PIC has a serial port.

We don't have any assembly-language examples. All we have is our C-language library:
https://github.com/adafruit/Adafruit-Th ... er-Library
and our python library:
https://github.com/adafruit/Python-Thermal-Printer

The datasheet and user manual are linked on the product page, under "Downloads":
https://www.adafruit.com/product/597

User avatar
samabed
 
Posts: 16
Joined: Fri Jul 05, 2013 11:21 am

Re: Mini Thermal printer SCI

Post by samabed »

I have been trying to find the matching connectors for my PCB for the printer's connector to no avail.
could you please give the connectors manufacturer and part numbers for both 2-pin and 3-pin connectors.
better yet iif you could give me the mating connectors part number.

Thanks,
Sam

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”