Five-pin soil multiparameter sensors, PLS HELP!

Hello everyone, I have an issue in my 7 in 1 Npk sensor OR Five-pin soil multiparameter sensors
I tested it in usb ttl to check if the readings is correct but in the end they say that "Serial Port Error Occured" in CoolTerm, and the indicator flash only TX and RX are not, what are the main issue behind this? My NPK sensor is broken? Thanks for the time reading and answer my question.


have a read of how-to-get-the-best-out-of-this-forum
in particular

  1. give a link to the sensor?
  2. are u sure its output is TTL serial not RS232 or RS485?
  3. details of your usb ttl device

A quick google search suggests that serial port error 31 may be due to an error in the serial port driver. Does the serial port work with other devices?

If you have a USB to serial adapter, you can connect the Tx pin to the Rx pin to form a loopback and test your adapter that way.

You don't mention RS485 which is almost always used to communicate with these NPK sensors. Your user manual will tell you how to communicate with your sensor.

1 Like

I am following this tutorial same brand same instruction, i dont know what the problem is plss help me

But do you know why is the conflict ,I see the Tx only indicates in arduino uno and rx485 ,the RX cant have an indicator to receive

the video indicates the serial interface is RS485
to connect to a PC you require a USB-RS485 module - try a search on EBAY
to connect to a arduino have a look at how-to-interface-arduino-with-rs485-modbus-protocol-using-max485-module

I'm not clear on what you are saying here. I thought your original post was about testing your NPK sensor using a PC and the coolterm program?

If you are using an Arduino UNO, then the usual setup is to keep the hardware serial port for USB comms with your PC and use a software serial port library to create a low speed 4800 baud or 9600 baud software based serial port on 2 digital i/o pins (NOT pins 0 & 1).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.