Hi... I Connect thermal printer reciept model xp-v320m to arduino UNO through module rs232....
Connect RX from module to TX arduino
And TX module to RX arduino
And VCC module to 5 V
And GND module to GND
You have got your Tx to Rx interconnections made wrongly.
The Transmit signal from your Arduino needs to pass through your TTL to RS232 converter (where it is level shifted/inverted) and on to the Receive pin of the printer.
You need to connect the Tx pin of the RS232 adapter module to the Tx pin on your Arduino, and Rx to Rx.
It is at the 9 pin D connector side where you need to make the cross connection between Tx and Rx.
#define TX_PIN 6 // Arduino transmit  YELLOW WIRE  labeled RX on module rs232
#define RX_PIN 5 // Arduino receive  GREEN WIRE  labeled TX on module rs232
The Arduino Transmit signal needs to go to the pin on the RS232 module labelled TX
and
The Arduino Receive signal needs to go to the pin on the RS232 module labelled RX.
farg:
Hi ,,my rs232 module convert to TTL , it have 4 pin only TX,RX,GND,VCC
sorry but i don't understand this
Connect: pin 2 of one D connector to pin 3 of the other pin 3 of one D connector to pin 2 of the other pin 5 to pin 5 (Gnd)
Sorry, that might have been a red herring.
I had assumed that you were connecting the printer to the RS232 interface module using a lead with 9 pin D-connectors on each end.
Now that I have seen a picture of the printer, I can see that it doesn't have a 9 pin D connecter on it, unless it doesn't show up in the photographs.
How do you connect the printer to the RS232 interface module?
Do you use a ready made lead, or did you make one of your own?
It is in this lead that the crossover from Arduino TX to Printer RX needs to be made, not as you have it between the Arduino and the RS232 interface module.