Good day to everyone, A newbie in Programming in Arduino.
hi guys I am asking for help regarding Dissolved Oxygen meter. We have already established a connection between the DO meter and the Arduino, what we lack is the Program or code for the process we need, Our aim for this is to use the output of the DO meter which is a reading of dissolved oxygen and temp. we not so much concern about the temp. but we concern to the reading of Dissolved oxygen, what we want is to operate a relay On and Off using the a range of reading in the DO meter. for example if DO meter reads between 5-10 mG/L the relay must be ON otherwise if this is not obtain it will stop or off. Thats the only operation we need. I ask for help in other forum and they gave initial codes in order to establish a connection between the meter and the arduino. I attached here the Code that given to us and the picture of the meter.
this is my first topic raise in this forum.
Here it comes, we have a DO meter ( Lutron Oxygen Meter model: DO-5510 to be specific) and it has an RS232 serial connection to computer and we want to connect it to Arduino Uno board. I know how to interface the Do meter to the arduino board, but the problem is how can i use the output of the meter as an input or as a process so that we can make a program that control a relay which turns it on and off.
this meter has a 16 digit data stream in the format of this: D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0,
AND EACH digit indicate the following status:
D15 - Start Word= 02
D14 - Reading polarity for the Display
0 = Both upper and lower display value are "+"
1 = Upper "-", Lower "+"
2 = Upper "+", Lower "-"
3 = Both upper and lower display value are "-"
D13 - annunciator for lower display
0 = no symbol 1= degree celsius 2= degree farenheit
D12 & D11 - Annunciator for upper display
01 :degree celsius 07= mg/L
02 :degree farenheit 06= percent O2
D10 - Decimal Point (DP) for lower display
0 = No DP, 1=1DP, 2=2DP, 3= 3 DP
D10 - Decimal Point (DP) for Upper display
0 = No DP, 1=1DP, 2=2DP, 3= 3 DP
D8 to D5 Lower Display reading, D5=LSD, D8=MSD
D4 to D1 Upper Display reading, D1=LSD, D4=MSD
D0 = End Word =0D
RS232 setting
Baud rate 9600
parity No Parity
data bit no. 8 Data bits
stop bit 1 Stop bit.
MyProgram.ino (2.34 KB)