element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Just Encase
  • Challenges & Projects
  • Design Challenges
  • Just Encase
  • More
  • Cancel
Just Encase
Blog [Pool Water Monitoring] #13 Arduino MKR 1300 WAN data collecting
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Just Encase to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: feiticeir0
  • Date Created: 14 Jan 2022 6:31 PM Date Created
  • Views 1592 views
  • Likes 5 likes
  • Comments 2 comments
  • pool_water_monitoring
  • AM2302
  • justencase
  • Arduino MKR WAN 13000
  • temperature sensor
  • just_encase
  • just encase
  • TDS probe arduino
Related
Recommended

[Pool Water Monitoring] #13 Arduino MKR 1300 WAN data collecting

feiticeir0
feiticeir0
14 Jan 2022

image

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.

The hole for the cable gland. image

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.

image image

image

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. Slight smile

Adafruit's DS18B20

Here's screenshots from the probe working. This wiring is correct.

Example code from Arduino Project HUB

Adafruit's DS18B20

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)

am2302

I know that both sensors are working fine, because they both gave very similar temperatures ! Nice Slight smile

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).

Water with temperature probe

and it's temperature

water temperature

Now, with the TDS probe inserted.

Water with TDS and temperature probe

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.

Water PPM measurement

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

Values updated for MKR 1300 WAN

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 .

  • Sign in to reply
Parents
  • DAB
    DAB over 3 years ago

    Nice build.

    Are you doing anything to monitor bacteria level or are you just going to rely on a fixed chlorine level?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • feiticeir0
    feiticeir0 over 3 years ago in reply to DAB

    Thanks DAB

    I still have to do a bit of research about the chlorine and salt levels. The pool is salt water, relying on the chlorine generator to make chlorine from salt. That is all controlled by the pool controller.

    Will have to come to you later with more information.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • feiticeir0
    feiticeir0 over 3 years ago in reply to DAB

    Thanks DAB

    I still have to do a bit of research about the chlorine and salt levels. The pool is salt water, relying on the chlorine generator to make chlorine from salt. That is all controlled by the pool controller.

    Will have to come to you later with more information.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube