How-to · Beginner · 3 min read
Barcode and QR Code Scanner Modules
GM65, GM67, GM77 with Arduino, ESP32 and Pi
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Barcode scanner modules such as the GM65, GM67 and GM77 read 1D and 2D codes and send the result over UART (serial) or USB. Power them at the voltage on the label, connect TX to your board's RX, set the trigger mode and enable the symbologies you need by scanning the setting codes in the manual. Good lighting and the right distance matter more than resolution.
Key specs at a glance
- Codes
- 1D (EAN, Code 128) and 2D (QR, Data Matrix) depending on model
- Interface
- UART TTL and USB (HID keyboard or virtual COM)
- Supply
- 3.3 to 5 V; check peak current
- Trigger
- Continuous, level, pulse or command
- Read distance
- About 30 to 550 mm depending on model and code size
- Setup
- Scan setting barcodes from the manual
Which module
Choose by code type and distance.
| Module | Reads | Notes |
|---|---|---|
| GM65 / GM65-S | 1D and QR, general use | Popular and cheap |
| GM66 / GM67 | 1D and 2D | Better 2D handling |
| GM69 / GM73 | Wider code range | Check the datasheet |
| GM75 | Long depth of field (30 to 550 mm) | Good for gates and kiosks |
| GM77 | Small-code reading | Higher resolution |
- GM65 / GM65-S
- Reads:
- 1D and QR, general use
- Notes:
- Popular and cheap
- GM66 / GM67
- Reads:
- 1D and 2D
- Notes:
- Better 2D handling
- GM69 / GM73
- Reads:
- Wider code range
- Notes:
- Check the datasheet
- GM75
- Reads:
- Long depth of field (30 to 550 mm)
- Notes:
- Good for gates and kiosks
- GM77
- Reads:
- Small-code reading
- Notes:
- Higher resolution
Wiring over UART
Connect VCC, GND, TX and RX. The module's TX goes to your board's RX. On an ESP32 or Raspberry Pi use a hardware serial port; on an Arduino UNO use SoftwareSerial or a spare hardware UART. The default baud rate is usually 9600; check the manual. When a code is read, the module prints the text followed by a carriage return. See UART.
USB mode
In USB HID mode the module acts like a keyboard and types the code wherever the cursor is, which is ideal for a Raspberry Pi kiosk or a PC. In virtual COM mode your program reads it from a serial port. Switch modes by scanning the setting barcode from the manual.
Tips for reliable scans
- 1Give the code a quiet margin of blank space around it.
- 2Avoid glare: tilt screens and glossy labels slightly.
- 3Keep the code in the module's sweet-spot distance.
- 4Enable only the symbologies you use to reduce false reads.
- 5For continuous scanning add a delay to avoid reading the same code twice.
- 6Log the read time and connect an RFID reader or a fingerprint sensor when you need other ways to identify people or parts.
Project ideas
- Inventory counting with an ESP32 that posts codes over Wi-Fi.
- A library check-out station with a Raspberry Pi.
- A QR door opener that checks codes against a list.
- Product price lookup on a small display; see OLED displays.
Try it: Uart baud rate error calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Connecting TX to TX.
- Enabling every symbology and getting false reads.
- Scanning a code displayed on a glossy screen with glare.
- Powering from a weak supply and getting resets.
- Skipping the setting codes for mode and baud rate.
Frequently asked questions
Which module reads QR codes?
The GM65 and newer models read QR as well as 1D codes.
Can I use it with Arduino?
Yes, over UART with SoftwareSerial or a hardware serial port.
How do I change settings?
Scan the setting barcodes in the manual or send the serial command.
Does it work on phone screens?
Usually, but reduce glare and screen brightness.
What is the difference between USB and UART?
USB acts as a keyboard or serial port; UART connects directly to a microcontroller.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.






