Call Phone +8618073152920 Hotline: +8618073152920
Call Phone +8618073152920
English
CONTACT US/ CONTACT US
Consumer hotline +8618073152920
Changsha Zoko Link Technology Co., Ltd.

Email:Arvin@niubol.com

WhatsApp:+8615367865107

Address:Room 102, District D, Houhu Industrial Park, Yuelu District, Changsha City, Hunan Province, China

Position:Home >> Blogs >> Product knowledge

Product knowledge

Arduino Dissolved Oxygen Sensor: RS485 Wiring and Data Checks

Time:2026-08-29 09:03:00 Popularity:327

Quick Answer: An Arduino dissolved oxygen sensor installation using NiuBoL NBL-WQ-DO needs a separate 12-24 V DC probe supply, a compatible RS485 interface and Modbus RTU decoding. It is not an analogue oxygen probe connected directly to an input pin. Establish the raw DO and temperature values before adding logging, remote upload or alarms, and test how the controller identifies a failed or stale reading.

NiuBoL NBL-WQ-DO fluorescence oxygen probe for a powered RS485 interface

Choose the electrical interface before the sketch

A development board can read several kinds of oxygen measurement hardware, but their signal paths differ. A bare electrochemical sensing element needs suitable conditioning electronics. An analogue transmitter needs an input that accepts its specified signal. The NBL-WQ-DO is a powered digital probe with an RS485 Modbus RTU output. Treating those arrangements as interchangeable can damage hardware or produce meaningless readings.

Use an RS485 transceiver or supported interface appropriate to the selected board. Confirm both the transmitter input levels and the receiver output voltage. A board using lower-voltage logic must not be exposed to an incompatible interface output. If isolation is required by the installation's grounding and noise conditions, specify an appropriate isolated arrangement rather than assuming a small converter provides it.

Keep the probe's power conductors separate from the data pair. Do not power it from an unverified board output or connect A/B directly to ordinary UART pins. Check the delivered cable identification before energising; a colour convention copied from another sensor is insufficient. Trial the complete supply and interface with one probe before assembling a shared field bus.

Connection layerRequired checkTypical mistake
Probe powerCorrect polarity and 12-24 V DC at the operating probeUsing a low-voltage logic supply as the sensor supply
Board logicTransceiver input/output compatibility with the exact boardAssuming every converter is safe at either logic voltage
RS485 pairDelivered A/B definition, appropriate cable and bus arrangementDirect connection to UART receive/transmit pins
ProtocolModbus RTU client with matching serial settings and device definitionExpecting an analogueRead operation to retrieve a digital measurement

Read one identified device before adding other channels

For the described basic NBL-WQ-DO, the default serial format is 9600 baud, eight data bits, no parity and one stop bit. The default device address is 5. A previously configured instrument may differ, so verify the delivered settings. Start with read-only measurement requests; calibration and factory-reset writes do not belong in the normal polling loop.

Use a maintained Modbus RTU implementation compatible with the board and interface. Configure transmit-enable handling where the transceiver requires it, and give the receiver time to accept the reply. Record the returned status and raw words during development. Printing a plausible concentration is not enough to prove that the software received a new, valid response from the intended probe.

When another probe is added, check its address and serial requirements independently. Two default devices replying to the same request can prevent useful communication. Use an engineered bus topology, appropriate cable and termination for the actual route. Avoid a universal cable-distance promise: transceivers, wiring, topology, grounding and the field environment all affect the usable arrangement.

NiuBoL online oxygen probe with its separate sensor power and data connection

Decode the DO value and temperature independently

For this NBL-WQ-DO register definition, function 03 starting at protocol offset 0x0000 reads four 16-bit registers. The words form two value-and-decimal-count pairs. They are not two IEEE floating-point numbers. Keep the word order and each decimal count attached to the correct quantity.

Protocol offsetQuantityExample word and interpretation
0x0000DO integer258 before decimal conversion
0x0001DO decimal count2; divide 258 by 100 to obtain 2.58 mg/L
0x0002Temperature integer176 before decimal conversion
0x0003Temperature decimal count1; divide 176 by 10 to obtain 17.6 degrees C

These values demonstrate the data definition, not a site acceptance result. A reading of 25.8 instead of 2.58 can arise from using a fixed divisor of ten. A temperature of 1.76 can arise from reusing the DO divisor for temperature. Inspect the raw words before changing sensor calibration.

Host libraries can use different register conventions. The human-readable holding-register label 40001 corresponds here to protocol offset zero; do not pass 40001 to a function expecting a zero-based protocol offset. Check the library's documentation and retain the accepted request configuration with the project.

Saturation is a separate register pair at offset 0x0004. Do not label it mg/L or assume it is interchangeable with concentration. The configured salinity-compensation value is also separate and is not a salinity measurement. Confirm the actual model and firmware before reusing this definition for another oxygen probe.

Check the probe specification against the application

The NiuBoL NBL-WQ-DO fluorescence probe supplies the measurement independently of the development board. Software cannot improve its stated accuracy by showing more digits, and a successful serial read does not establish suitability for every oxygen concentration or process condition.

ItemNBL-WQ-DO detailDesign consequence
Range and resolution0-20 mg/L; 0.01 mg/LKeep resolution distinct from measurement accuracy
Accuracy+/-2% full scale; temperature +/-0.3 degrees CCheck capability at the required oxygen decision band
CompensationPt1000 temperature compensation; configurable salinity compensationRetain the settings used in reference comparisons
Operating limits0-45 degrees C; pressure below 0.2 MPaDo not infer hot-cleaning or unrestricted pipeline suitability
Power12-24 V DC; less than 0.3 W at 12 VInclude board, interface and network loads separately
AssemblyPOM and 316L stainless steel; IP68; standard 5 m cableProtect the controller and external joints independently

For an unattended point, use a suitable enclosure, protected terminals and a stable power arrangement. The probe's IP68 rating does not apply to the Arduino board or converter. Provide strain relief and a holder that permits retrieval without pulling on the lead. Keep the optical cap wetted in representative water and protect it from impact, deposits and scraping.

NiuBoL dissolved oxygen probe body for an accessible monitoring point

Make communication failure different from low oxygen

Store whether the last request succeeded and when that valid acquisition occurred. If a request fails, do not silently reuse the previous number as a new reading. If the display retains it for continuity, show its age or stale state. Do not replace a timeout with zero mg/L; that would make a data fault look like an actual oxygen event.

Check the response address, function, returned data length and CRC through the selected library. Treat an exception response as an error, not as measurement bytes. Set a bounded request timeout and test recovery after reconnection. The program should be able to distinguish a valid low concentration from a failed read without relying on a convenient undocumented sentinel number.

A remote record needs the observation time as well as any upload time. If the board has no dependable clock after a restart, establish how time is obtained and flag records whose time is unknown. A server timestamp assigned later cannot reconstruct exactly when an earlier measurement was made.

Test measurement, acquisition and deployment in that order

First verify the oxygen measurement through a suitable reference procedure under equivalent water conditions. Record temperature and applicable compensation. Then compare the probe's decoded value with the board's logged value. Finally test the enclosure, cable route, power restart and network behaviour in the intended installation.

A useful commissioning sequence includes an authorised sensor disconnection, restoration and controller restart. Check that invalid data are marked, the next valid value has a new acquisition time, and configuration remains correct. Where local storage is required, test how records are committed and recovered; a memory-card slot alone does not establish dependable buffering.

A DO channel does not become a BOD test because a program calculates a difference between readings. Laboratory BOD needs the applicable sample preparation, incubation and quality controls. Likewise, an Arduino oxygen prototype is not automatically a validated aerator controller. Control hardware, fallback behaviour and operating safety require a separate engineered design.

The electrical connector detail below needs protection and strain relief in the field assembly. A locked connector does not establish correct polarity or a valid serial response. Check those functions independently before closing the enclosure, and preserve access for later inspection.

NiuBoL dissolved oxygen sensor cable connector and locking sleeve

Project Decision FAQ

Q1. Can A/B connect directly to Arduino serial pins?

No. RS485 needs a compatible electrical transceiver or supported interface. Check logic levels, power and direction control for the exact board and module. UART software alone does not create the RS485 physical interface.

Q2. Does a working library remove the need to check registers?

No. The library handles communication, while the application still needs the right address, function, offsets and data interpretation. For this probe, DO and temperature have independent decimal-count words.

Q3. Should the sketch recalibrate after every restart?

No. Start by restoring normal acquisition and checking status. Calibration is a controlled measurement procedure, not a startup command. An unintended write can alter a previously valid probe configuration.

Q4. When is a configured industrial logger preferable?

Consider it when the project needs supported field acquisition and the team does not intend to maintain custom firmware. Compare the required protocols, storage and failure behaviour rather than assuming either controller type guarantees reliable water measurement.

Q5. What helps NiuBoL assess the interface?

Provide the probe model, board and RS485 module identities, supply arrangement, wiring, serial settings and raw request/result. Add the water conditions and intended duty. This separates a communication problem from an unsuitable measuring installation.

NiuBoL DO-4A oxygen sensor requiring its own register definition

Summary

An Arduino dissolved oxygen sensor project needs a verified electrical interface and a correctly decoded, time-valid measurement. Establish one read-only NBL-WQ-DO channel before adding other devices, storage or remote access. NiuBoL can assess the probe configuration and protocol requirements; the complete field controller still needs its own deployment and failure tests.

Related recommendations

Sensors & Weather Stations Catalog

Agriculture Sensors and Weather Stations Catalog-NiuBoL.pdf

Weather Stations Catalog-NiuBoL.pdf

Agriculture Sensors Catalog-NiuBoL.pdf

Water Quality Sensor Catalog-NiuBoL.pdf

Related products

Tell us your requirements, Let's discuss more about your project.we can do more.

Name*

Tel*

Email*

Company*

Country*

Message


online
Contacts
Email
Top
XArduino Dissolved Oxygen Sensor: RS485 Wiring and Data Checks-Product knowledge-Automatic Weather Stations_Industrial, Agricultural, Water & Environmental IoT Monitoring Solutions—NiuBoL

Screenshot, WhatsApp to identify the QR code

WhatsApp number:+8615367865107

(Click on WhatsApp to copy and add friends)

Open WhatsApp

The WhatsApp ID has been copied, please open WhatsApp to add consultation details!
WhatsApp