Em5820 not receiving commands
My thermal printer cant seem to receive commands
Here is the code
#include <SoftwareSerial.h>
SoftwareSerial Printer(5, 6); // RX, TX
void setup() {
delay(2000);
Printer.begin(9600);
Printer.write(27); // ESC
Printer.write(64); // @ initialize
delay(100);
Printer.println("Hello Printer!");
}
void loop() {}
Here are connections
Arduino Pin 6 - Printer RX
Arduino Pin 5 - Printer TX
Arduino GND - Printer GND
Printer VCC 9V - positive from external supply
External 9V negative - Arduino GND & Printer GND


20 Replies
Can you show the connections on the Arduino?
TTL is not shown on printout.
Link to printer info ?
Mini Thermal Receipt Printers
Produce receipts from a little printer
Tryu it with that setup and code/library
Vcc connected to 9v 2a power
Same ground arduino and printer
Printer rx to pin 5 tx
Printer led is on

Did you hook up tx to tx and Rx to rx? Your code is a bit unclear
tx is pin 5
The correct connections are rx to tx. Make sure they are correct
yes they are correct
Do you need to use inverse logic with that printer? It's an option with softwareserial
@Ashuremu did you bother to try the working setup and library?
Yes i tried adafruit still the same
Is it a hardware issue?
The printout shows rs232 and usb
Are you sure it has ttl ?
Work with USB ?
i cant try with usb cuz it didnt came with a cable
Uses a mini b usb.
@Ashuremu no store nearby ?
stores nearby dont sell those any more
is the EM5820 like the one on the Adafruit page?

theyre similar
just wondering about the "not power here" caution
i also tried that