Hello everyone, Here I come with the new different issue,
I try to interface the QR scanner module with teensy4.1 through MAX232,
in detail:
in teensy4.1 I am using UART5, this UART connection is given to the MAX232 T1IN and R1out, and the output of MAX232 is connected to the QR scanner module,
I set the baud rate (in the code and serial monitor) as 115200 for both teensy4.1
and the scanner
But I am getting unprintable words in the serial monitor.
Please anyone say how to rectify it
#include <Arduino.h>
#define QR_SERIAL Serial5
void setup()
{
Serial.begin(9600);
QR_SERIAL.begin(115200);
}
void loop()
{
while (!QR_SERIAL.available())
{
Serial.println("Waiting for QR code...");
delay(5000);
}
String qrData = "";
while (QR_SERIAL.available())
{
char c = QR_SERIAL.read();
qrData += c;
delay(2);
}
qrData.trim();
Serial.println("QR Code Data: " + qrData);
}
Here is the product link:
teensy4.1 => teensy4.1
Scanner module => Scanner_module
My output: ��j��i�