Hello
I'm trying to communicate with an RS232 flow meter through an Arduino board and Diligent PMOD RS232. I have this code written, but I'm not able to receive anything back.
#include <SoftwareSerial.h>
const byte rxPin = 8;
const byte txPin = 9;
SoftwareSerial bronkhorst (rxPin,txPin);
void setup() {
// put your setup code here, to run once:
pinMode(rxPin,INPUT);
pinMode(txPin,OUTPUT);
bronkhorst.begin(38400);
Serial.begin(38400);
}
void loop() {
// put your main code here, to run repeatedly:
bronkhorst.write(":068004744F744F\r\n");
char c = bronkhorst.read();
Serial.write(c);
delay(1000);
}
Is there any way I could check if the module works without any equipment connected?
Thank you