Hi all ! Hope everyone is safe.
The time has come to start monitoring. Today I'm just making sure everything is wired correctly, testing each component separately (although they already are together in the enclosure) before start codding and sending the values.
Hardware
Except for the PH probe (hasn't arrived yet), everything is connected and ready for testing.
Here's photos from everything connected and wired.
Everything wired . I've chosen not to solder anything and everything is in breadboards, but all is fixed to the case with double side tape.
Now, let's start testing everything again, to see if the connections are well wired.
Batteries are not connected. If you look closely, it's a 3xAAA box, but only 2 are present. I use an alligator clip to bridge them.
Adafruit's DS18B20
Here's screenshots from the probe working. This wiring is correct.
Example code from Arduino Project HUB
AM2302
Now, let's see if this one is also working - It will measure ambient humidity and temperature. All from inside the enclosure.
Example code is from Electro Schematics
It's also working. I thought this sensor only worked with 5v, but it also works from 3v, so, it's a plus. (need to update the schematics)
I know that both sensors are working fine, because they both gave very similar temperatures ! Nice
TDS
The TDS sensor values are dependent on the temperature. I will measure the temperature and adjust the code. When the time comes, this will all be dynamic. This is just testing.
I'm using the example code from DFRobot wiki - and I've measured the temperature of the water using the Adafruit's probe.
Here's the water (inside the other enclosure because the probe wire was forcing it to fall on the table).
and it's temperature
Now, with the TDS probe inserted.
And the ppm result - I'm not going to discuss here and now what these values mean - that's for a later post.
After a google search, if the tap water ppm values are between 150-250 it's good. Since these are below, but by not much, I'm guessing it's OK. Need to find out with my town water company.
At least I'm sure the probe is working.
Code
I've changed the code to be suited to the MKR 1300 WAN, meaning:
VREF was set to 3.3v
and temperature was set to 14 - the same measured above
And here is it. Ready to start measuring.
In my next post I will discuss what are we looking for in the values, what they mean for us humans and in general and the safe intervals.
Stay safe and well .