Hi guys,
I've got an old brookfield viscometer & temperature sensor that has a 3 pin sensor output for RS232. (RX, TX, and GND.) I'm trying to get data from this sensor and read it with an arduino as my company has lost the controller for this device many moons ago. I'm currently wired to the box with a DFRobot RS232 Shield. On this shield you can see there are 4 pins, RX R232, TX RS232, VCC, and GND. I currently have the TX line from the sensor wired to the RX line on the sheild, the RX line from the sensor wired to the TX line on the sheild, and the GND from the box wired to the GND on the sheild. (I'm unsure of what the role of the VCC pin is in this scenario).
I'm using the following code:
The baud rate from the sensor box is set at 9600 as well, per the old manual I have that I've discovered. There are no parity bits or handshakes. I am able to get some bursts of numbers in the serial monitor but I'm not sure what they mean or how I can correctly read the sensor.
The numbers will repeat with minimal change with something like the following:
57
65
46
15
32
100
78
45
13
Repeat....
Is there something I can improve on that would make sense for this to work?
I've got an old brookfield viscometer & temperature sensor that has a 3 pin sensor output for RS232. (RX, TX, and GND.) I'm trying to get data from this sensor and read it with an arduino as my company has lost the controller for this device many moons ago. I'm currently wired to the box with a DFRobot RS232 Shield. On this shield you can see there are 4 pins, RX R232, TX RS232, VCC, and GND. I currently have the TX line from the sensor wired to the RX line on the sheild, the RX line from the sensor wired to the TX line on the sheild, and the GND from the box wired to the GND on the sheild. (I'm unsure of what the role of the VCC pin is in this scenario).
I'm using the following code:
Code:
int temp = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available() ) {
temp = Serial.read();
Serial.println(temp);
}
}
The numbers will repeat with minimal change with something like the following:
57
65
46
15
32
100
78
45
13
Repeat....
Is there something I can improve on that would make sense for this to work?