Hurray!
It can become very confusing when making all the RS232 connections.
It's not always TX->RX and RX<-TX as may people think.
Have a nice day!
maybe i should bought the cable cuz its not showing again as i though the soldering was dirty
If you plan on having a permanent set-up, then buying a cable will be a good idea.
I tried testing your code and can confirm that it does not work.
Nothing gets printed in the Serial Monitor whilst the two Arduinos are connected.
However when I disconnect the lead between the two Arduinos I get the following:
It prints the data multiple times in quick succession (can be over 100 times, it depends on how long the code was running) before just repeating 'Weight:'.
Edit, You might want to go straight to the next post. (post #28)
Try this code:
#include <SoftwareSerial.h>
SoftwareSerial scaleSerial(3, 2);
void setup() {
Serial.begin(9600);
scaleSerial.begin(9600);
}
void loop() {
if (scaleSerial.available()) {
Serial.write(scaleSerial.read());
}
}
It works for me (with the SoftwareSerial pin numbers adjusted for my set-up).
If you want to read in a String, then I think that you need to use the function Serial.readStringUntil( ).
That way you can stop reading when you come to a line feed character (ASCII 0x0A).
#include <SoftwareSerial.h>
SoftwareSerial scaleSerial(3, 2);
void setup() {
Serial.begin(9600);
scaleSerial.begin(9600);
}
void loop() {
String data = scaleSerial.readStringUntil(0x0A);
Serial.print("Weight: ");
Serial.println(data);
}
Or you can use:
String data = scaleSerial.readStringUntil('\n');
thanks bro i already finished thanks to all of you, i used this after i got success to connect the pin
Glad to hear that you now have it working.
maybe for the next later i need help about ToF sensor but its not for now ![]()
OK, see you later.


