#2753 Thermal Printer Power Problem!

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ChrisKwon
 
Posts: 8
Joined: Sat Feb 10, 2018 9:36 am

#2753 Thermal Printer Power Problem!

Post by ChrisKwon »

I have a question about the method of use this product #2753.
i set Baudrate in 9600, and RX, TX lines are all normal.
I used 5V 2A adapter in Arduino to provide power to the printer through Vin pin, but still the test page cannot be printed.
When I pressed the small button (there is only one button) on the printer board, it works a litte. (meaning, it just prints a little.) But still no texts coming out from the page.

Can you teach me how to solve this problem?
If not, can you give me any instruction on Power problem?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: #2753 Thermal Printer Power Problem!

Post by adafruit_support_mike »

Try using a power supply that can provide more than 2A of current. Sometimes the printers want 3A to work.

User avatar
ChrisKwon
 
Posts: 8
Joined: Sat Feb 10, 2018 9:36 am

Re: #2753 Thermal Printer Power Problem!

Post by ChrisKwon »

It prints the test page well through pushing the button. but there is no response of printer when I use Adafruit's libraries' "A_Pintertest" example. As the thermal printer I bought has 9600 transmission speed, I set 9600 Baudrate of Library and also the example's transmission speed as same, still no respones has come.


RX, and TX have no problem
I tested another hypothesis wondering Arduino Uno's problem might disturb. But no.

How should I deal with it?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: #2753 Thermal Printer Power Problem!

Post by adafruit_support_mike »

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

User avatar
ChrisKwon
 
Posts: 8
Joined: Sat Feb 10, 2018 9:36 am

Re: #2753 Thermal Printer Power Problem!

Post by ChrisKwon »

1.jpg
1.jpg (114.67 KiB) Viewed 541 times
As I mentioned above, the test page gets printed well.
2 hardware.jpg
2 hardware.jpg (158.6 KiB) Viewed 541 times
The Hardware connection part

User avatar
ChrisKwon
 
Posts: 8
Joined: Sat Feb 10, 2018 9:36 am

Re: #2753 Thermal Printer Power Problem!

Post by ChrisKwon »

3.jpg
3.jpg (168.85 KiB) Viewed 540 times
4.jpg
4.jpg (149.26 KiB) Viewed 540 times

The source codes.

There is no response when I set this Library example "A_printertest"
So I thought it might be the Arduino's fault, thus I tried I / O test with everything after setting them in LED.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: #2753 Thermal Printer Power Problem!

Post by adafruit_support_mike »

It looks like you have the RX and TX connections swapped.

Serial connections go RX to TX both ways. TX talks, and RX listens.

User avatar
ChrisKwon
 
Posts: 8
Joined: Sat Feb 10, 2018 9:36 am

Re: #2753 Thermal Printer Power Problem!

Post by ChrisKwon »

4.jpg
4.jpg (135.9 KiB) Viewed 498 times
5.jpg
5.jpg (127.72 KiB) Viewed 498 times
I already have tested as your recommend by switching Rx, and TX, but still no respones coming out from the printer while uploading.

I know this is very annoying question for you.. Lastly, I would like to ask you to check Arduino coding..

Thanks! T.T



#include "Adafruit_Thermal.h"
#include "adalogo.h"
#include "adaqrcode.h"

// Here's the new syntax when using SoftwareSerial (e.g. Arduino Uno) ----
// If using hardware serial instead, comment out or remove these lines:

#include "SoftwareSerial.h"
#define TX_PIN 6 // Arduino transmit YELLOW WIRE labeled RX on printer
#define RX_PIN 5 // Arduino receive GREEN WIRE labeled TX on printer

SoftwareSerial mySerial(RX_PIN, TX_PIN); // Declare SoftwareSerial obj first
Adafruit_Thermal printer(&mySerial); // Pass addr to printer constructor
// Then see setup() function regarding serial & printer begin() calls.

// Here's the syntax for hardware serial (e.g. Arduino Due) --------------
// Un-comment the following line if using hardware serial:

//Adafruit_Thermal printer(&Serial1); // Or Serial2, Serial3, etc.

// -----------------------------------------------------------------------

void setup() {

// This line is for compatibility with the Adafruit IotP project pack,
// which uses pin 7 as a spare grounding point. You only need this if
// wired up the same way (w/3-pin header into pins 5/6/7):
pinMode(7, OUTPUT); digitalWrite(7, LOW);

// NOTE: SOME PRINTERS NEED 9600 BAUD instead of 19200, check test page.
mySerial.begin(9600); // Initialize SoftwareSerial
//Serial1.begin(19200); // Use this instead if using hardware serial
printer.begin(); // Init printer (same regardless of serial type)

// The following calls are in setup(), but don't *need* to be. Use them
// anywhere! They're just here so they run one time and are not printed
// over and over (which would happen if they were in loop() instead).
// Some functions will feed a line when called, this is normal.

// Test inverse on & off
printer.inverseOn();
printer.println(F("Inverse ON"));
printer.inverseOff();

// Test character double-height on & off
printer.doubleHeightOn();
printer.println(F("Double Height ON"));
printer.doubleHeightOff();

// Set text justification (right, center, left) -- accepts 'L', 'C', 'R'
printer.justify('R');
printer.println(F("Right justified"));
printer.justify('C');
printer.println(F("Center justified"));
printer.justify('L');
printer.println(F("Left justified"));

// Test more styles
printer.boldOn();
printer.println(F("Bold text"));
printer.boldOff();

printer.underlineOn();
printer.println(F("Underlined text"));
printer.underlineOff();

printer.setSize('L'); // Set type size, accepts 'S', 'M', 'L'
printer.println(F("Large"));
printer.setSize('M');
printer.println(F("Medium"));
printer.setSize('S');
printer.println(F("Small"));

printer.justify('C');
printer.println(F("normal\nline\nspacing"));
printer.setLineHeight(50);
printer.println(F("Taller\nline\nspacing"));
printer.setLineHeight(); // Reset to default
printer.justify('L');

// Barcode examples:
// CODE39 is the most common alphanumeric barcode:
printer.printBarcode("ADAFRUT", CODE39);
printer.setBarcodeHeight(100);
// Print UPC line on product barcodes:
printer.printBarcode("123456789123", UPC_A);

// Print the 75x75 pixel logo in adalogo.h:
printer.printBitmap(adalogo_width, adalogo_height, adalogo_data);

// Print the 135x135 pixel QR code in adaqrcode.h:
printer.printBitmap(adaqrcode_width, adaqrcode_height, adaqrcode_data);
printer.println(F("Adafruit!"));
printer.feed(2);

printer.sleep(); // Tell printer to sleep
delay(3000L); // Sleep for 3 seconds
printer.wake(); // MUST wake() before printing again, even if reset
printer.setDefault(); // Restore printer to defaults
}

void loop() {
}

User avatar
ChrisKwon
 
Posts: 8
Joined: Sat Feb 10, 2018 9:36 am

Re: #2753 Thermal Printer Power Problem!

Post by ChrisKwon »

Please give us little help ..

I know this is an annoying for you but we really need help....

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

Return to “General Project help”