GM72 barcode/qr scanner TTL 232 configuration

Hello,

I have a GM72 scanner for my small project. The USB configuration/factory default can read inputs as it should be, however configuring the scanner to TTL 232 does not display/read any inputs on the serial monitor.

Manual Used: GROW GM72 Scanner Manual

Code for testing inputs:

//how2electronics.com sample qr input code
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
 
void setup()
{
  Serial.begin(9600);  
  mySerial.begin(9600); // set the data rate for the SoftwareSerial port
}
 
void loop()
{
  if (mySerial.available()) // Check if there is Incoming Data in the Serial Buffer.
  {
    while (mySerial.available()) // Keep reading Byte by Byte from the Buffer till the Buffer is empty
    {
      char input = mySerial.read(); // Read 1 Byte of data and store it in a character variable
      Serial.print(input); // Print the Byte
      delay(5); // A small delay
    }
    Serial.println();
  }
}
}

I guess my real question is, does anyone have the same model of barcode/qr scanner (GM72), and how does one configure it for arduino ttl 232 connection? Thank you in advance!

Arduino set up (sorry for my haphazardness):

You appear to have Tx hooked to Tx, and Rx hooked up to Rx. Transmitters need to be connected to receivers, and receivers to transmitters. Swap your green and blue wires and try again.

1 Like

If that is truly RS232, it could potentially damage your Arduino. RS232 operates at higher voltages that can fry the Arduino’s inputs. To be safe, check the voltages on the wires with them disconnected first, then reconnect them as suggested by @van_der_decken. Keep in mind that when a port is listening, it needs something to communicate with, so ensure that Tx (Transmit) is connected to Rx (Receive).

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