Interfacing with scales rs232, GM Series scales, Bonita labs GMB, FLB Forelibra, solved

Try the following hardware setup (Fig-1) and the test sketch to see if there appears anything on the Srial Monitor at 9600 Bd.

rs232xy
Figure-1:

Tset Sketch:

#include<SoftwareSerial.h>
SoftwareSerial SUART(2, 3); //SRX = DPin-2, STX = DPin-3

void setup()
{
  Serial.begin(9600);
  SUART.begin(9600);
}

void loop() 
{
  byte n = SUART.available();
  if(n != 0)
  {
    char x = SUART.read();
    Serial.print(x);
  }
}
1 Like