Hello, this is my first project with Arduino. I try to read data from weight indicator using Arduino.
I have confirmed that the indicator send the data correctly by connecting to PC. I get this data on PC "=25.14000" means 41.25 kg.
After that, I try to read it using Arduino and print the data into Serial Monitor, but i get unreadable character like below image. If I get on the scale, this values also changed. So i'm sure this should be the correct data. But i get '?' if I try to convert it to readable character.
#include <SoftwareSerial.h>
SoftwareSerial MySerial(10,-1); // RX, TX
void setup() {
Serial.begin(9600);
MySerial.begin(9600);
Serial.println("<Arduino is Ready>");
}
void loop() {
int val;
if (MySerial.available() > 0) // if serial port data is available
{
val = MySerial.read();
Serial.print(val);
Serial.println(" ");
}
}
If you can read the output using a PC then it sounds like the output from the weight indicator is using RS232 signal levels. The Arduino, however, uses TTL signal levels and is not compatible with RS232 unless you use a converter between the two
that is the code to read data from indicator. I use different code when do a loopback test.
All i want to know is that correct to wire Max232 TX to Arduino RX (pin 10 in my case) ?
Why buy parts that don't have operating instructions?
What good do the other four converters do for you? This RS232 converter is made by a reputable company, is guaranteed to work, and comes with detailed operating instructions.