Hi, i am working on a final project of mine and im stuck on this soil pH sensor part that i have. The readings that is showing in my serial monitor are
Soil pH: -614.7
Soil pH: -25.8
Soil pH: -0.7
Soil pH: 3276.7
Soil pH: -168.1
Soil pH: -308.5
Soil pH: -819.3
Soil pH: -284.9
Soil pH: -52.9. The sensor that i have is a soil ph sensor with RS-485 output.
Here is my code.I ve changed the baud rate as 4800 .But it hasn't changed anything.
I have connection problem also.When i connect gnd and vcc pins of rs485 to arduino uno , i get Error:Incomplate data received. On the other hand , if i don't connect those pins, i got those responses which begins -/+ random numbers.
The wiring diagram of the MAX485 goes like this:
DI - RX
DE - 7
RE - 8
RO - TX
A - yellow cable of soil ph sensor(it says this one for pH signal)
B - blue cable of soil ph sensor
GND -
VCC -
My soil ph sensor is ConWinTop. It has two probe.
I'm using the Arduino Uno. To be honest when i changed my cables i always have the same error which is Incomplete data recieved. Btw thanks for warned me about request adress. I ve changed it. However still i'm been having the same -/+ random numbers. I have no any idea why i've been through with this. i should use arduino uno, rs485 and soil ph sensor. Maybe someone can tell me how can i connect pins of Rs485.
Software serial doesn't work for my project.I ve already tried it )) When i use RX,TX pins ,i have +/- random numbers at least. But if i use software serial and use 2/3 pins i have Error:Incomplete data recieved Even though reversing RX TX pins , i have Error:Incomplete data recieved. I also have gnd vcc pins problem also. It shows me Error:Incomplete data recieved almost in every step.I'm tired see that ERROR message agan and over again.
When you Serial.print for debug then this also goes out the tx pin and you're probably reading some of that back in..
I guess you could use the rx, tx , just don't do any serial prints, do a lcd.print instead..
But i'm still thinking the underlying problem will remain..
Last one was just a bad connection..
software serial should work just fine for this project..
there's something else..
I've found the problem. My sensor has 0-5V output.It means it has analog output.I was thinking that it has RS485 output.However i have some problems again.Firstly i'll share sensor features. PH-A (analog type).pdf (281.5 KB)
Secondly here is my code ,
The problem is when the sensor is idle, it shows pH values approaching 9. It measures the pH of CaC03 at 7.That's why i thought that there is smthg wrong.
Would you please help me ?
I used a 12V adaptor for black and brown cables of soil pH sensor. I need asidic and basic soil. That's why i bought sulfur and CaC03 . As far i know CaCO3 should be between 7,5-9,5 pH.
on the connections I was thinking more on the lines of just a bad connection..
the connections are obviously correct as you are getting some valid readings..
what do you mean specifically when you say..
One issue with digitising an analogue signal is that there may well be a small DC offset lurking around in your system. That would give you a higher (or lower) reading than you expect.
You would need to expose your sensor to known accurate pH levels in order to determine if there was an offset in order to compensate for it.
Also make sure that you have a common ground between your sensor and your Arduino too.
My project is about smart fertilizing system.There are two part of soil . One part should include asidic soil ,other part should include basic soil.Sensor need able to mesure ph,after that project is have to do fertilizng.However i couldn't passed the other section of project.Cause firstly sensor should mesure asidic and basic ph of soil.I don't know how to decrease or increase ph of soil.I ve already tried adding sulfur and CaCO3 and measured it. But it was showing me that around 7.20pH for soil with CaCO3.Maybe it shows right.I don't know.But i need to find the way how to decrase and increase ph of soil and then i can mesure them.
The pH value on a pH meter for calcium carbonate in pure water will be nearly 7 making it neutral since the solubility of this compound is extremely low
above is from google..
your readings sound right..