What I Want To Do
The ultimate goal is to design an inexpensive device that can be placed in streams across Western Pennsylvania. Accomplishing the goal will give data on surface water as a bigger picture, and also to raise awareness of water contamination issues. To do so, the Riffle+Coquí device, incorporating a specially designed probe and waterproof housing, will be utilized to measure the conductivity of water.
My Attempt
a. RIFFLE
To tackle the problem of a lack of information on the conductivity of surface water in Western Pennsylvania, a network of inexpensive Riffle Real Time Clock (RTC) data loggers will be deployed. The Riffle has and three power sources, built in temperature sensor diodes, and a customizable protoboard. The Riffle can be powered with a lithium- ion battery, a button-cell battery, and a USB/microUSB port. The temperature is automatically logged on a microSD card for the Riffle. In order for the Riffle to measure conductivity, a circuit design capable of doing so was soldered onto the protoboard attachment. A number or circuit diagrams designed to measure conductivity were built and tested. The Coquí was the front-runner design that was used and adapted to the Riffle attachment.
b. COQUÍ
To tackle the problem of a lack of information on the conductivity of surface water in Western Pennsylvania, a network of inexpensive Riffle Real Time Clock data loggers will be deployed. The Riffle has and three power sources, built in temperature sensor diodes, and a customizable protoboard. The Riffle can be powered with a lithium-ion battery, a button-cell battery, and a USB/microUSB port. The temperature is automatically logged on a microSD card for the Riffle. In order for the Riffle to measure conductivity, a circuit design capable of doing so was soldered onto the protoboard attachment. A number or circuit diagrams designed to measure conductivity were built and tested. The Coquí was the front- runner design that was used and adapted to the Riffle attachment.
The Coquí (Figure 5) is designed with a probe that acts as a variable resistor. When the electrodes are placed into a solution, the solution has a specific conductance; therefore acting as a resistor. Depending upon the voltage going through the circuit, the pitch of the piezo speaker varies. For example, if the probe is placed into water with high conductance, the pitch of the sound released from the piezo speaker increases. The speaker can be replaced with an LED light that will act similarly to the speaker. The light shines brighter the more conductive the sample is. The LED that is already in the circuit diagram in Figure 5 acts as an ‘on/off’ power indicator.
To adapt the Coquí to the Riffle attachment, the piezo speaker is replaced with the analog read pin. The protoboard is designed where the top two rows are labeled connections that run to the data logger. The rest of the pins on the protoboard are connected vertically down the board. A diagram of the Coquí design for the protoboard can be seen in Figure 6. The LED is still used as a power indicator in the protoboard design.
c. PROBE DESIGN
Many considerations went into designing the final probe, as seen in Figure 7. The probe material needed to have essentially no conductance and the electrodes needed to be fixed. In addition, the chosen design made calculating the cell constant simple. The probe is made of a plastic marker cap. Plastic does not easily conduct making it the perfect material for the probe. The electrodes on the probe are made of thin nichrome wire, which is fixed in place with electrical tape on two ends. The cell constant is measured in centimeter-1 and is a function of the distance between the electrodes and the effective area of the electrodes. Therefore, the cell constant is easy to calculate since the distance between the electrodes is fixed. In addition, the diameter of the wire is so small we can assume they are points, rather than large surfaces with an area. The equation for the cell constant is as follows: K=d/A where K=cell constant, A= Effective area of electrodes, d= Distance between electrodes.
d. RIFFLE + COQUÍ HOUSING
A housing for the Riffle+Coquí was designed, iterated upon, and 3D printed. The final design, which incorporates a compartment for the lithium-ion battery, compartments for protoboard connections, and magnetic snap closure, can be seen in Figure 8a and Figure 8b. The housing is important because the device must be able to be completely submerged in the water being tested; therefore, the casing needs to be waterproof. The design has as little openings as possible due to this feature. The housing also features a magnetic snap closure to keep the lid in place. When all the contents are properly placed into the housing, the lid and probe opening can be sealed with waterproof material.
My Results
The pen probe was put into different conductivity standards in a 250 mL beaker for ten minutes, and placed in DI water in a 250 mL beaker for two minutes in between each block of measurements. At the end, the probe was allowed to air dry for five minutes. A table detailing the standard values used can be seen below. The Riffle logged a data point every second. The ideal outcome is to obtain a curve and corresponding equation from the data points logged by the Riffle+Coquí. Using solutions with known conductivities, we can calibrate the Riffle+Coquí readings into actual conductivity measurements in the Riffle code.
The data results did not give a trustworthy curve, as seen in the Graph 1 below, but there is a noticeable trend. Each block of data is a different size for each conductivity standard. The standard deviation of the data points for each solution was calculated and graphed in Graph 2: The standard deviations though for each solution, was over a large range, causing doubts of the data.
Questions and Next Steps
Points of confusion/trouble:
The data logger would record points when the Coquí was built on a breadboard and attached to the Riffle. When the Coquí was built on the Riffle protoboard attachment, no data was being logged. The protoboard design needs further modifications and improvements.
The data points achieved were all over the place. No steady curved was found. What could be causing the Riffle to be logging points as such? Could it be faulty code?
Let me know what you think.
7 Comments
Hi, Rebeccah -- looks like your lead image didn't work -- maybe try again, or email it to web@publiclab.org if you can't get it to upload?
I'm interested in if this could be formatted as a question (see our new Q&A feature here: https://publiclab.org/questions) or potentially as an activity others could try to replicate (as on our prototype "activity grids" we've been trying out here in the Spectrometry project: https://publiclab.org/wiki/spectrometry#Activities
If you're interested, I'm happy to offer some input on how your post could fit into one of these two systems to solicit more concrete input!
Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment
Hello Rebeccah! I'm interested in replicating this experiment! The biggest thing I am unsure about is the code - can you link to the riffle code you used, and any other experimental procedures you came up with? (Types of standard solutions, etc).
Last thing - is that a common procedure to put the electrodes in DI water between measurements? I can't remember that much detail about my last lab experiences.
Thanks!
Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment
Hi Rebeccah,
Just in case this can explain the problems when using the proto board, are you aware that the proto board for the Riffle has its pins labelled wrong? This is discussed in this thread: https://groups.google.com/forum/#!topic/plots-waterquality/k_kE7pXJp-8.
Chris
Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment
Hi Rebeccah!
Fantastic stuff here. Lots to digest, and I have several thoughts -- but first, quickly: the frequency output of the Coqui requires using a special trick for measuring pulse counts. I dug up some older code for logging the frequency using pin 3 on the Riffle, and put it just now into a Github repository:
https://github.com/dwblair/riffle-freq-logger
To use it, you need to copy the libraries in the "arduino_libraries" folder into your Arduino sketchbook/libraries folder, and you need to connect the output of your Coqui circuit to Riffle pin 3
And yes, also keeping in mind (thanks Chris) that the protoboard has its pins labeled incorrectly -- the two rows of pin labels are switched :)
The idea, then, is that the frequency should be proportional to the conductivity of the solution.
We've learned in the last months, though, that there are some big caveats around trying to use the Coqui circuit for measuring conductivity -- the voltage that the circuit puts in the water (3.3V) is likely too high for making good conductivity measurements over time; the circuit behavior is also asymmetric in its voltage oscillations in the water, which will tend to polarize the solution, affecting the measurement. There are other issues, too -- all of which probably make it an unreliable conductivity sensor for longer-term deployment in the field.
But: it looks like you've got a really good setup there for testing conductivity probe and circuit designs, and it would still be very interesting to see how well the Coqui does in your setup. If you're able to get a reasonably consistent relationship between frequency and conductivity, the Coqui might at least be useful as a 'handheld probe'. It's probably not worth trying to use it in the field for longer-term measurements, because of those known problems with the circuit. (That said, its accuracy has never been tested in the field in a systematic way).
Really cool enclosure and probe design!
If you're interested in trying the above code and run into any trouble (it's not very well commented), let me know.
Cheers! Don
Reply to this comment...
Log in to comment
Accidentally posted this on the coqui activity grid and looks like I can't remove it. Help?
Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment
@kgradow1 I'm having trouble finding the coqui activity grid. Could you link to it?
Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment
https://publiclab.org/wiki/coqui
Reply to this comment...
Log in to comment
Login to comment.