Reef Central Online Community

Go Back   Reef Central Online Community > General Interest Forums > Do It Yourself
Blogs FAQ Calendar Mark Forums Read

Notices

User Tag List

Reply
Thread Tools
Unread 06/07/2015, 11:38 PM   #1
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
Arduino based auto alkalinity tester DIY

I would like to be able to measure alkalinity multiple times a day (as well as while I travel).

So... Combining the following parts

1 Arduino Uno (eventually a mini pro)
4 syringes
4 micro linear actuators with feedback encoders
4 one way valves
1 50ml clear cylinder
1 60RPM DC motor & mount
1 ADA TCS34725 color sensor
2 DC power supplies (12V, 5V)

I think I can make it work... For about $140

Each syringe has a dedicated liquid in/out -

Saltwater to test
Titration fluid (acid with color changing indicator)
RODI to flush
Purge fluid (suction to the bottom of the test cylinder)

The motor is to swirl the tube
The color sensor to detect the absence of red/pink

I'll play around with it but I think I should have a resolution down to 0.5dKH

I'll take pictures once the material gets here.


karimwassef is offline   Reply With Quote
Unread 06/07/2015, 11:58 PM   #2
TheYellowSnow
Registered Member
 
Join Date: Feb 2013
Posts: 56
Subscribed


TheYellowSnow is offline   Reply With Quote
Unread 06/08/2015, 01:55 AM   #3
sahin
Ultimate Reefer
 
sahin's Avatar
 
Join Date: Apr 2002
Location: London, UK
Posts: 8,540
Wow, that would be very cool.


sahin is offline   Reply With Quote
Unread 06/08/2015, 06:12 AM   #4
perkint
Registered Member
 
Join Date: Jan 2014
Location: Robin hood country, UK
Posts: 817
Does sound interesting

Tim


perkint is offline   Reply With Quote
Unread 06/08/2015, 06:27 AM   #5
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
Not promising it'll work. Just that I'm going to try and take you with me

The two biggest variables are the micro actuator encoder accuracy and the color sensor trigger levels.

I hope to get those in soon enough to experiment.


karimwassef is offline   Reply With Quote
Unread 06/08/2015, 07:05 AM   #6
TheYellowSnow
Registered Member
 
Join Date: Feb 2013
Posts: 56
While waiting for the parts any chance you could add part numbers?


TheYellowSnow is offline   Reply With Quote
Unread 06/08/2015, 07:26 AM   #7
jimbob321
Registered Member
 
Join Date: Sep 2010
Location: space coast of fla.
Posts: 96
maybe an ESP-8266 ...7/12 would work instead of a arduino, you would have wireless that way.
it can be programed with the arduino ide.
3 volt and memory could be a problem.
just a thought...


jimbob321 is offline   Reply With Quote
Unread 06/08/2015, 07:58 AM   #8
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
Long term, I'm going to run Raspberry Pi 2 for data. Arduino is just a good vehicle to get it up and working.


karimwassef is offline   Reply With Quote
Unread 06/08/2015, 08:05 AM   #9
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
Here's the actuator with encoder

http://www.naimotion.com/PDF_folder/...ges/mm3mex.pdf

Here's the color sensor

https://www.adafruit.com/products/1334

Here's the DC motor

https://www.amazon.com/gp/aw/d/B00M1...f=ya_aw_oh_pii


karimwassef is offline   Reply With Quote
Unread 06/08/2015, 08:12 AM   #10
jimbob321
Registered Member
 
Join Date: Sep 2010
Location: space coast of fla.
Posts: 96
i have a few of the nodemcu boards.
i haven't found a project for them yet..



Last edited by jimbob321; 06/08/2015 at 08:31 AM.
jimbob321 is offline   Reply With Quote
Unread 06/08/2015, 09:33 AM   #11
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
If this works, I'll add a calcium tester.. That would require one more actuator though, unless I give up rinsing with RODI and choose to rinse with saltwater instead. That would reduce cost and complexity...

The Calcium titration needs two liquids instead of one. So the 5 syringes would have to be:

Saltwater
Alk titration
Ca titration #1
Ca titration #2
Export & flush


karimwassef is offline   Reply With Quote
Unread 06/08/2015, 09:48 AM   #12
jimbob321
Registered Member
 
Join Date: Sep 2010
Location: space coast of fla.
Posts: 96
if you go with a pi take a look at public lab Spectrometer.
it might give better results than rgb color sensor.


jimbob321 is offline   Reply With Quote
Unread 06/08/2015, 09:50 AM   #13
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
Procedure-

FLUSH
Fill syringe SW with 50ml of new saltwater
Inject SW into test tube (10ml)
Swirl 10sec
Fill syringe X (export) with 15ml from the test tube
Inject X export into drain
Repeat 4 more times

LOAD
Fill syringe SW with 5ml of new saltwater
Inject SW into test tube (10ml)

TEST_ALK
Fill syringe T_ALK with 0.96ml of Alk titration acid/color indicator
Inject T_ALK 0.064ml
Swirl 10sec
Check color (blue = repeat above and add counter) - if no more titration, refill
Check color (yellow = stop and capture count)
---- not sure if I should purge the rest of the acid or leave it
Fill syringe X (export) with 15ml from the test tube
Inject X export into drain

FLUSH

LOAD

TEST_CA
Fill syringe T_CA1 with 0.64ml of Ca titration 1
Inject T_CA1 0.64ml
Swirl 10sec
Fill syringe T_CA2 with 1.92ml of Ca titration 2
Inject T_CA2 0.064ml
Swirl 10sec
Check color (pink = repeat above and add counter) - if no more titration, refill
Check color (blue = stop and capture count)
---- not sure if I should purge the rest or leave it
Fill syringe X (export) with 15ml from the test tube
Inject X export into drain

FLUSH


karimwassef is offline   Reply With Quote
Unread 06/08/2015, 09:53 AM   #14
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
Thanks jimbob. I'll try the Arduino and RGB to see if I can get proof of concept going. Then I can refine it based on reading accuracy.


karimwassef is offline   Reply With Quote
Unread 06/08/2015, 10:07 AM   #15
gREEF stricken
Registered Member
 
Join Date: Mar 2014
Location: Puyallup WA
Posts: 200
If you do get this working, and you considered reliable, I would buy one. I have the DIY gumption, but not the technical background.

GS


gREEF stricken is offline   Reply With Quote
Unread 06/08/2015, 10:21 AM   #16
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
If it works, I'll publish everything including the code to run it. The mechanical implementation is trickiest for me.

Thinking about swirling a tube with an off center DC motor configuration is messy... No spill intended


karimwassef is offline   Reply With Quote
Unread 06/08/2015, 11:47 AM   #17
zachts
Registered Member
 
Join Date: Mar 2005
Location: St. Louis, MO.
Posts: 3,259
Interesting, tagging along, no doubt inspired by those folks who have a working prototype running and have been posting about it for a while now with the intent to patent and eventually go commercial with it......


zachts is offline   Reply With Quote
Unread 06/08/2015, 02:53 PM   #18
Gorgok
Registered Member
 
Gorgok's Avatar
 
Join Date: Feb 2011
Location: Cypress, Texas
Posts: 1,904
Wouldnt using a colorometer to test the alk be easier to automate than tritation? That way you just need to pump the 1ml solution and swirl. The rest will be pretty much the same, flush, load, test flush


Gorgok is offline   Reply With Quote
Unread 06/08/2015, 03:20 PM   #19
805reef
Registered Member
 
805reef's Avatar
 
Join Date: Aug 2008
Location: Oxnard, CA
Posts: 1,588
following! Would be awesome if you are able to get this working.


__________________
Vince

300 gallon peninsula, return:RD3 Speedy 230, Turbo's Rev4 L2 Algae Turf Scrubber, (2) Gyre 150s, Advanced Acrylic sump, (4) Ocean Revive T247s, Apex (classic w/ black sticker;):D)
805reef is offline   Reply With Quote
Unread 06/08/2015, 03:23 PM   #20
nuxx
RC Sponsor
 
nuxx's Avatar
 
Join Date: Jan 2014
Location: Austin, Tx
Posts: 3,990
Very interesting! Subscribed


__________________
Peter

TankStop - Fish and Coral

470G Display - Build Thread

Current Tank Info: Retired - 470 Gallon Mixed Reef (120x29x31")
nuxx is offline   Reply With Quote
Unread 06/08/2015, 04:16 PM   #21
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
I like titration. It's crisper than color charts IMO. But who knows where this will go.

Here's the basic concept

 photo 1_zpsgezthhwx.jpg

 photo 2_zpsx1wnuycy.jpg

 photo 3_zpsrvfvq6jp.jpg

 photo 4_zpsygr7qbly.jpg

 photo 5_zpswoumfuzm.jpg

Please excuse the sloppy tubes... It's first concept so faster is better than pretty.

It's about 6" x 6" x 15"


karimwassef is offline   Reply With Quote
Unread 06/08/2015, 04:17 PM   #22
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
Inspired by laziness... And a tinkerer's desire


karimwassef is offline   Reply With Quote
Unread 06/08/2015, 05:55 PM   #23
formula409
Registered Member
 
Join Date: Dec 2013
Posts: 37
Ok I have been thinking alot about the same kind of thing mate, but mainly for a capillary electrophoresis unit :?

I was thinking of driving the plunger pumps with NEMA17 stepper motors, there is a lot of work on thingiverse where people have made these pumps for 3D printer extruders for obscure stuff like chocolate and sand

So for pumps look at this
http://www.openpump.org/

And this
http://www.thingiverse.com/thing:475841

But there are many more designs

I dare say it would be cheaper to build and give you more graduations and control over dispensing


For your auto sampler, I would put check valves facing opposite directions on the in and out line, So that incoming fluid can travel one path and the other is blocked, and on depression leaving fluid is forced through another path

[IMG][/IMG]

You probably have the dual one way sorted but I thought It might make it easy for others to get the sampling


formula409 is offline   Reply With Quote
Unread 06/08/2015, 06:04 PM   #24
formula409
Registered Member
 
Join Date: Dec 2013
Posts: 37
Also don't froth too hard over this

http://www.chemie.unibas.ch/~hauser/...ino/index.html


formula409 is offline   Reply With Quote
Unread 06/08/2015, 06:16 PM   #25
karimwassef
Registered Member
 
karimwassef's Avatar
 
Join Date: May 2004
Location: Dallas, TX
Posts: 11,033
Thanks formula. Yes, the check valves are blue disks in my drawing.

I'm an old school programmer, so command line is just as pretty to me and easier to debug IMO


karimwassef is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 10:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2024 Axivo Inc.
Use of this web site is subject to the terms and conditions described in the user agreement.
Reef CentralTM Reef Central, LLC. Copyright ©1999-2022
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.