Hiii! Can somebody help me out. I am trying to get the value from NPK sensor but it is returning 255 for all these N, P and K

Thanks, But This isn't working either

After removing ground from Arduino Uno I am getting these values can you please tell me why I'm getting these values after removing ground from Arduino Board and these values are right or not.

Without spaces inserted between the bytes as they are printed out, it's near impossible to figure out what is happening.

Just supposing your sensor device address was 01, then any reply from your sensor should start with 01 03, or 13 if you don't print out leading zeros or insert spaces between the printed bytes.

It appears the reason so many people are trying to use these fake soil sensors is that it is part of a common college coursework (presumably in India). I expect the actual course is related to electronics/computing. and not soil chemistry. If the goal is a lab exercise to interface with a device, retrieve data, and display it etc, then it may not matter if the NPK values are bogus.

1 Like

Did you try lowering the baud to 4800??
Mention it because I've seen one defaulted to it before..
Your latest post looks promising, looks like baud is wrong..
good luck.. ~q

You know, if this is the original sketch, then probably no change.. :frowning:
It potentially reads from oblivion..
It does a mod.read with no regard to mod.available, in others words you take without first checking to see if there is anything too take..
My sketch mods, you would just get 0's..
sorry.. ~q

If it's a course assignment, their teacher is doing a shit job, to say it nicely.

There is no excuse for making students believe they're using a specific device to measure specific things when the whole device is bogus, unless students are explicitly told that the device is total bullshit.

There are so much better devices that can teach RS485 communications - they could use one of the many sensors that are actually working the way they claim to work, and measure real values.

This NPK device doesn't belong in the shops, even less so in the hands of students.

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