# How can i receive data from a RS232 barcode reader to Arduino

**URL:** <https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392>\
**Category:** General Guidance\
**Created:** [February 10, 2025, 1:08pm UTC](https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392 "2025-02-10T13:08:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senuda9](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/senuda9/32/1195251_2.png) [@Senuda9](https://forum.arduino.cc/u/Senuda9)\
**Post date:** [February 10, 2025, 1:08pm UTC](https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392/1 "2025-02-10T13:08:39Z")

</div>

Hi, im trying to trying to connect an RS232 barcode reader to an Arduino UNO using a RS232 Serial to TTL Converter (MAX3232 module). I’ve set up SoftwareSerial on pins 6 (RX) and 7 (TX) to receive data from the barcode reader, but I’m not receiving anything.

The barcode reader im using is a Honeywell IS3480. i have tested the barcode reader by connecting to the pc via a RS232-to-USB adapter using putty and and it successfully transmits data to Putty terminal.

```arduino
#include <SoftwareSerial.h>

SoftwareSerial mySerial(6, 7); // RX, TX

void setup() {
  Serial.begin( 9600 );                   
  Serial.println("USB Serial is ready");
  mySerial.begin( 9600 );

}

void loop() {
  // put your main code here, to run repeatedly:
   if (mySerial.available() > 0) {
    // Read the incoming data
    String data = mySerial.readString();

    // Print the received data to the Serial Monitor
    Serial.print("Received: ");
    Serial.println(data);
  }
}

```

Thank you for reading.

---

<div class="post-metadata">

**Author:** ![anon95813201](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@anon95813201](https://forum.arduino.cc/u/anon95813201)\
**Post date:** [February 10, 2025, 1:12pm UTC](https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392/2 "2025-02-10T13:12:41Z")

</div>

> [@Senuda9](#):
>
> MAX3232 module)

With that module, you need to connect RX to RX and TX to TX.  
You also need to use a crosover (null modem) cable between the converter and barcode reader.

Does your module look like this?

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/d/7/2/d727d1bc4818123c3ef442f369959e84c4520d6d.jpeg)

---

<div class="post-metadata">

**Author:** ![Senuda9](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/senuda9/32/1195251_2.png) [@Senuda9](https://forum.arduino.cc/u/Senuda9)\
**Post date:** [February 10, 2025, 5:01pm UTC](https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392/3 "2025-02-10T17:01:07Z")

</div>

Yes. That's what i have i tried connecting RX to RX & TX to TX.

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [February 10, 2025, 5:28pm UTC](https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392/4 "2025-02-10T17:28:41Z")

</div>

Did you remember to connect the grounds, and power the barcode reader?

More sensible code might look like this, especially if you set the serial monitor baud rate to 115200.

```arduino
void loop() {
  // put your main code here, to run repeatedly:
   while (mySerial.available() > 0) {
    // Relay the incoming data
    Serial.write(mySerial.read());
  }
}

```

---

<div class="post-metadata">

**Author:** ![Senuda9](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/senuda9/32/1195251_2.png) [@Senuda9](https://forum.arduino.cc/u/Senuda9)\
**Post date:** [February 11, 2025, 5:59am UTC](https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392/5 "2025-02-11T05:59:57Z")

</div>

Yes, I have connected the grounds and the barcode reader is powered using a 5V power supply that comes with the barcode reader. The barcode reader uses a 9600 baud rate, which I confirmed using the PuTTY terminal during testing. Additionally, I use a Serial RS232 DB9 to DB9 male cable, where the RS232 port from the barcode reader is a female port, and the MAX 3232 module also has a female port. Therefore, I use a male-to-male connector.

---

<div class="post-metadata">

**Author:** ![Senuda9](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/senuda9/32/1195251_2.png) [@Senuda9](https://forum.arduino.cc/u/Senuda9)\
**Post date:** [February 11, 2025, 7:58am UTC](https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392/6 "2025-02-11T07:58:25Z")

</div>

Using a crossover worked. I used jumper cables to build a crossover between the barcode reader and the TTL converter since I couldn't find a null modem. Additionally, I had to connect TX to TX and RX to RX from the TTL converter to the Arduino board. Thanks to your solution, it worked perfectly. I really appreciate your help.

---

<div class="post-metadata">

**Author:** ![anon95813201](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@anon95813201](https://forum.arduino.cc/u/anon95813201)\
**Post date:** [February 11, 2025, 9:38am UTC](https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392/7 "2025-02-11T09:38:06Z")

</div>

It can be some what confusing when using that particular module.  
Glad it worked  
Have a nice day!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [August 10, 2025, 9:38am UTC](https://forum.arduino.cc/t/how-can-i-receive-data-from-a-rs232-barcode-reader-to-arduino/1352392/8 "2025-08-10T09:38:16Z")

</div>

Closed on August 10, 2025, 9:38am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
