Hi everyone , I’m trying to connect my Arduino Uno Q with my waveshark barecode-Scanner , I found the problem in the softwareSeriel library it doesn’t exist on Arduino App lab so how to use the rx and the tx pins to communicate cuz now i make the rx of the barecode with tx to the arduino Q and also with ra tx de barecode with rx arduino and also i configure my barcode well in Uart mode output but it’s doesn’t work
You should be able to use pins 0 and 1. They are not connected to the USB port like they are on legacy Arduino UNO boards. This port corresponds to Serial. If you want to send output to the computer via the USB serial port then use the monitor object instead of Serial.
Remember when using the latest versions of everything pin 0,1 now corresponds to Serial1.
Okay i’m trying to give more details about my project : The project consists of an autonomous Point of Sale (POS) kiosk capable of handling NFC card payments and product identification via barcodes. The user interface is managed through a tactile TFT screen featuring a page-based navigation system (Calibration, Home, Menu, Scan, Payment). Data is transmitted in real-time to a Python application via a Bridge protocol.
- Hardware Architecture and Pinout
A. Main Controller
Model: Arduino Uno Q (STM32U585 Microcontroller).
B. TFT Screen & Touch (Hardware SPI)
Driver: ST7796 / ILI9488
SCK: Pin 13
MOSI: Pin 11
MISO: Pin 12
TFT_CS: Pin 10
TFT_DC: Pin 9
TFT_RST: Pin 8
TOUCH_CS: Pin 7
C. NFC Reader (PN532 - Software SPI)
SCK: Pin 6
MISO: Pin 3
MOSI: Pin 5
SS (CS): Pin A0
D. Barcode Scanner (Waveshare - Software Serial)
RX (Arduino): Pin 2 (Connected to scanner TX wire)
TX (Arduino): Pin A2 (Connected to scanner RX wire)
Baud Rate: 9600 bps (Configured via setup barcodes)
So : The Current Issue (Technical Analysis)
Symptom: The scanner is correctly driven (the laser activates), and the Arduino successfully detects an incoming electrical signal on Pin 2 (confirmed by real-time audio diagnostics). However, the data stream is not being translated into readable ASCII characters on the screen.
That means the data not available to my Arduino Uno Q
Hi @izinm. Please provide the contents of the App's sketch/sketch.ino file. I'll provide instructions you can follow to do that:
- Open the App in Arduino App Lab.
- Click the ▸ icon next to the "sketch" folder item under the "Files" section of the left hand panel in the Arduino App Lab window.
The item will expand to show the contents of thesketchfolder. - Select "sketch.ino" from the list of contents of the folder.
sketch.yamlwill open in the editor panel of the Arduino App Lab window. - Click on the editor panel.
- Press the Ctrl+A keyboard shortcut (Command+A for macOS users).
The contents of the editor panel will be selected. - Press the Ctrl+C keyboard shortcut (Command+C for macOS users).
This will copy the selected text to the clipboard. - Open a reply here on this forum topic by clicking the "Reply" button.
- Click the
<CODE/>icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the content is correctly formatted.
- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the copiedsketch.yamlfile content into the code block. - Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to publish the post.
