{"id":74,"date":"2018-12-28T12:09:01","date_gmt":"2018-12-28T02:39:01","guid":{"rendered":"https:\/\/sighmon.com\/says\/?p=74"},"modified":"2019-01-02T20:09:14","modified_gmt":"2019-01-02T10:39:14","slug":"water-quality-monitor","status":"publish","type":"post","link":"https:\/\/sighmon.com\/says\/water-quality-monitor\/","title":{"rendered":"Water quality monitor"},"content":{"rendered":"\n<p>Six months ago I moved to <a href=\"https:\/\/beachsafe.org.au\/beach\/vic\/hobsons-bay\/williamstown\/williamstown\">Williamstown Beach<\/a> just outside of Melbourne. It&#8217;s a nice beachside town about 15km from the centre of the city. The beach is a couple of blocks away via a walk through the <a href=\"https:\/\/www.hobsonsbay.vic.gov.au\/Community\/Parks-Playgrounds\/Williamstown-Botanic-Gardens\">botanic gardens<\/a> &#8211; a pretty ideal place to replenish after long days in front of computers (my day jobs include being a software developer for <a href=\"https:\/\/acmi.net.au\">ACMI<\/a> and <a href=\"https:\/\/digital.newint.com.au\">New Internationalist<\/a>).<\/p>\n\n\n\n<p>The beach here has a really diverse crowd &#8211; many countries of Africa are represented, as well as a large portion of southern Europe and Asia. It&#8217;s a really popular place for both families with young kids and pets, as well as groups of teenage and 20-something friends.<\/p>\n\n\n\n<p>But there is one blot on this otherwise idyllic bay, and that&#8217;s a big waste water drain that exits right next to the swimming beach. A waste water drain wouldn&#8217;t be so much of a big deal on its own, but Williamstown&#8217;s proximity to a large shipping port, industrial area, and oil refinery made me curious to see whether the output of it is at all tainted.<\/p>\n\n\n\n<p>That curiosity peaked after a recent <a href=\"https:\/\/www.theage.com.au\/national\/victoria\/toxic-chemical-stockpiles-linked-to-west-footscray-factory-fire-20190102-p50p80.html\">factory fire<\/a> and subsequent rains forced the local council to put up signs warning that the water was unfit to swim in or even for pets to play in.<\/p>\n\n\n\n<p>EPA Victoria has a twitter account that <a href=\"https:\/\/twitter.com\/EPA_Victoria\">tweets water quality<\/a> for <a href=\"https:\/\/yarraandbay.vic.gov.au\/beach-report\">beaches<\/a>, but it doesn&#8217;t seem to have an entry for Williamstown and some of the alerts are based on historical data. <\/p>\n\n\n\n<p>So I decided to start building my own monitoring system, to see what the cost would be to setup alerts of my own.<\/p>\n\n\n\n<p>My first stop was the Public Lab <a href=\"https:\/\/publiclab.org\/wiki\/water-quality-sensor\">Water Quality Sensor<\/a> project. Being five years old there are a lot of broken links, but there was one that was useful &#8211; the link to <a href=\"https:\/\/www.atlas-scientific.com\">Atlas Scientific<\/a> sensors.<\/p>\n\n\n\n<p>I also read up about the different <a href=\"https:\/\/dpipwe.tas.gov.au\/water\/water-monitoring-and-assessment\/water-monitoring\/surface-water-quality\/water-parameters\">water quality parameters<\/a> you can measure:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Temperature<\/li><li> pH<\/li><li> Salinity (Electrical Conductivity)<\/li><li> Turbidity<\/li><li> Suspended solids<\/li><li> Dissolved oxygen<\/li><li> Heavy metals<\/li><li> Nutrients<\/li><\/ul>\n\n\n\n<p>Given the cost of Atlas sensors (~AUD$415 each delivered), I figured for my first tests I might choose one and see how it goes. Then buy more if that one ends up being useful.<\/p>\n\n\n\n<p>So with that in mind, I decided on the <a href=\"https:\/\/www.atlas-scientific.com\/product_pages\/kits\/ec_k1_0_kit.html\">Conductivity K 1.0 kit<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"574\" height=\"423\" src=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/atlas-scientific-conductivity-k-1_0-kit.png\" alt=\"\" class=\"wp-image-75\" srcset=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/atlas-scientific-conductivity-k-1_0-kit.png 574w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/atlas-scientific-conductivity-k-1_0-kit-300x221.png 300w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><figcaption>Atlas Scientific Conductivity K 1.0 kit<\/figcaption><\/figure>\n\n\n\n<p>$400 is about double my comfortable limit for hobby projects, so I put the feelers out on the <a href=\"http:\/\/hackerspace-adelaide.org.au\">Hackerspace Adelaide<\/a> list &amp; <a href=\"https:\/\/twitter.com\/sighmon\/status\/1069094903248912385\">Twitter<\/a> to see if anyone wanted to share the cost and the sensors.<\/p>\n\n\n\n<figure class=\"wp-block-embed-twitter aligncenter wp-block-embed is-type-rich is-provider-twitter\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">I\u2019m wanting to do some basic water quality analysis of the tap water and beach water around Australia. This Arduino\/Raspberry Pi compatible water conductivity kit is ~AUD$415 delivered. Is anyone keen to chip in to share use? Data would be public. <a href=\"https:\/\/t.co\/YpQRTwW1Tg\">https:\/\/t.co\/YpQRTwW1Tg<\/a><\/p>&mdash; Simon Loffler (@sighmon) <a href=\"https:\/\/twitter.com\/sighmon\/status\/1069094903248912385?ref_src=twsrc%5Etfw\">December 2, 2018<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n\n\n\n<p>Almost instantly, <a href=\"https:\/\/twitter.com\/Ganjm001\">Jeannine<\/a> very kindly put me onto <a href=\"https:\/\/twitter.com\/leogaggl\">Leo<\/a> and <a href=\"https:\/\/www.thethingsnetwork.org\">The Things Network<\/a>, who not only got TTN to donate me a <a href=\"https:\/\/www.thethingsnetwork.org\/docs\/devices\/uno\/\">The Things Uno<\/a> with <a href=\"https:\/\/www.microchip.com\/design-centers\/wireless-connectivity\/low-power-wide-area-networks\/lora-technology\">LoRaWAN<\/a> (Low power, wide area network with ~15km range), but also agreed to sponsor me $100 towards the costs of the sensors (THANK YOU!).<\/p>\n\n\n\n<p>Big shout out to <a href=\"https:\/\/twitter.com\/whatnick\">Tisham Dhar<\/a> of Whatnick fame too, who also offered to help out (Tisham makes <a href=\"https:\/\/www.tindie.com\/products\/whatnick\/atm90e26-featherwing\/\">open hardware energy monitors<\/a> that are awesome).<\/p>\n\n\n\n<p>The <a href=\"https:\/\/www.facebook.com\/groups\/hackerspaceadelaide\/permalink\/10156950085098987\/\">Hackerspace Adelaide<\/a> community also came through with some low cost solutions: <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"378\" height=\"1024\" src=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/hackerspace-facebook-suggestions-378x1024.png\" alt=\"\" class=\"wp-image-76\" srcset=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/hackerspace-facebook-suggestions-378x1024.png 378w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/hackerspace-facebook-suggestions-111x300.png 111w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/hackerspace-facebook-suggestions-768x2080.png 768w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/hackerspace-facebook-suggestions.png 1037w\" sizes=\"auto, (max-width: 378px) 100vw, 378px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/tps.com.au\/products\/probes\/k1-0-laboratory-conductivity-sensor,-low-volume-10mm-immersion.html\">TPS k 1.0 sensor<\/a> (~AUD$100 on <a href=\"https:\/\/tps.com.au\/products\/probes\/k1-0-laboratory-conductivity-sensor,-low-volume-10mm-immersion.html\">eBay<\/a>)<\/li><li><a href=\"https:\/\/www.getbluelab.com\/shop\/By+Category\/Meters\/Bluelab+Truncheon+Nutrient+Meter.html\">Bluelab Truncheon Nutrient Meter<\/a> (~AUD$120 on <a href=\"https:\/\/www.ebay.com.au\/i\/182296338716?chn=ps&amp;ul_ref=https%253A%252F%252Frover.ebay.com%252Frover%252F1%252F705-139619-5960-0%252F2%253Fmpre%253Dhttps%25253A%25252F%25252Fwww.ebay.com.au%25252Fi%25252F182296338716%25253Fchn%25253Dps%2526itemid%253D182296338716%2526targetid%253D480387084622%2526device%253Dm%2526adtype%253Dpla%2526googleloc%253D9071927%2526poi%253D%2526campaignid%253D1490772164%2526adgroupid%253D63107608768%2526rlsatarget%253Dpla-480387084622%2526abcId%253D1139406%2526merchantid%253D7664612%2526gclid%253DCj0KCQiA_4jgBRDhARIsADezXcgp1YmL0909aBM0NNCQLN2kkrnT2bjWWAutY67KfbrsrUhH_vgD5RUaAj2SEALw_wcB%2526srcrot%253D705-139619-5960-0%2526rvr_id%253D1765053789270%2526rvr_ts%253D6d8b63281670a888b284f749ffe63802&amp;fbclid=IwAR0lAdtRCgxU5P6RU7qjM4GLp2XOzBP_cWyJM3pG4XOYxA00iRRhzpClRuA\">eBay<\/a>)<\/li><\/ul>\n\n\n\n<p>The TPS would probably work nicely (The Bluelab is seemingly a standalone reader).<\/p>\n\n\n\n<p>But seeing I wanted to open this up as public data, and have the possibility of an easily replicated solution, I decided to go with off-the-shelf products that have great <a href=\"https:\/\/www.atlas-scientific.com\/_files\/_datasheets\/_circuit\/EC_EZO_Datasheet.pdf\">documentation<\/a>, <a href=\"https:\/\/www.atlas-scientific.com\/_files\/code\/Arduino-Uno-EC-sample-code.pdf\">Arduino sample code<\/a>, <a href=\"https:\/\/www.atlas-scientific.com\/_files\/instructions\/ezo-ec-wiringdiagram.pdf\">wiring diagram<\/a> and calibration samples (seriously, how nice is their documentation!!!).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/atlas-scientific-vs-the-things-network-1024x768.jpg\" alt=\"\" class=\"wp-image-77\" srcset=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/atlas-scientific-vs-the-things-network-1024x768.jpg 1024w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/atlas-scientific-vs-the-things-network-300x225.jpg 300w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2018\/12\/atlas-scientific-vs-the-things-network-768x576.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>The great unboxing.<\/figcaption><\/figure>\n\n\n\n<p>Atlas Scientific and Leo from The Things Network were super prompt with their deliveries, they were each really nicely packaged and arrived within a week &#8211; a nice start to any project. <\/p>\n\n\n\n<p>Next steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/sighmon.com\/says\/connecting-to-the-things-network\/\">Connect to The Things Network<\/a>.<\/li><li><a href=\"https:\/\/sighmon.com\/says\/atlas-k-1-0-conductivity-sensor\/\">Connect the sensor and get usable data<\/a>.<\/li><li>Calibrate the sensor.<\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Six months ago I moved to Williamstown Beach just outside of Melbourne. It&#8217;s a nice beachside town about 15km from the centre of the city. The beach is a couple of blocks away via a walk through the botanic gardens &#8211; a pretty ideal place to replenish after long days in front of computers (my &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sighmon.com\/says\/water-quality-monitor\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Water quality monitor&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":77,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9],"tags":[11,10,13,14,15,12,16],"class_list":["post-74","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-sensors","tag-arduino","tag-open-data","tag-quality","tag-sensors","tag-sighmon","tag-water","tag-williamstown","entry"],"_links":{"self":[{"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":7,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/posts\/74\/revisions\/122"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/media\/77"}],"wp:attachment":[{"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}