i have max 2323 device rs232 port connected gps device , ttl output uart 2 of arduino mega.
i'm using sketch simple test ensure data coming in:
void setup() {
// initialize both serial ports:
serial.begin(9600);
serial2.begin(4800, serial_8n1);
}
void loop() {
// read port 1, send port 0:
if (serial2.available()) {
char in = serial2.read();
serial.write(in);
}
}
initially data being output garbled after leaving running hour data became 98% after 10 mins returned garbage.
i've connected gps mac , data flawless i'm beginning suspect max2323 device. have tried same setup on arduino due also.
can recommend rs232 ttl adapter known work? 1 have made lc technology inc
many thanks.
i'm using sketch simple test ensure data coming in:
void setup() {
// initialize both serial ports:
serial.begin(9600);
serial2.begin(4800, serial_8n1);
}
void loop() {
// read port 1, send port 0:
if (serial2.available()) {
char in = serial2.read();
serial.write(in);
}
}
initially data being output garbled after leaving running hour data became 98% after 10 mins returned garbage.
i've connected gps mac , data flawless i'm beginning suspect max2323 device. have tried same setup on arduino due also.
can recommend rs232 ttl adapter known work? 1 have made lc technology inc
many thanks.
have connected ground of adaptor ground of arduino?
Arduino Forum > Using Arduino > General Electronics > RS232 to UART Converter.
arduino
Comments
Post a Comment