Difference between revisions of "Spectrophotometer"
(→Result) |
|||
Line 187: | Line 187: | ||
[[File:200 - Cover - 230323.png|left|Turb=200]] | [[File:200 - Cover - 230323.png|left|Turb=200]] | ||
[[File:300 - Cover - 230323.png|center|Turb=300]] | [[File:300 - Cover - 230323.png|center|Turb=300]] | ||
+ | |||
+ | ==== Conclusion ==== | ||
+ | |||
+ | Overall, when look at the 5 reference points, the difference is not significant ( error rate < 20%). | ||
+ | |||
+ | Except for those extreme error points(100% error rate), overall, the error is under 35% when turbidity under 100 NTU and under 50% when turbidity ranging from 100 to 300 NTU. |
Revision as of 11:37, 23 March 2023
We have come up with a great idea to implement a low-cost spectroscopy sensor to measure various water quality parameters. The Sparkfun AS7265x spectroscopy sensor is introduced here (around AUD 60-100). It has three LEDS (VIS,UV,IR) which can measure the intensity for the wavelength ranging from 410nm to 940 nm. We would like to investigate any potential application with this sensor...
Contents
10/01/2023
Firstly, we hava come out an initial design for holding the sensor, and we use the clip to mount it to a vertical surface to do some preliminary tests.A black cup is 3D printed to store the water for measurement purpose.
It is good to know what roughly the spectroscopy for the water would be under low turbidty level. It can be seen that the sensor didn't receive much reflection for frequency between 710nm and 940nm.
25/01/2023
After the first design, we have come out some updated version for the stand that can hold the sensor instead of mounting to a cardbox. Now both the sensor and cup can be located in fixed position.And we have changed the colour of both cup and stand to be black to minimize the potential background noise.
This time we have using some different turbidty solution to measure the spectroscopy at each turbidty level.It can be seen that some correlation might exist at certain frequency (such as 610nm).
01/02/2023
Today,we bring all the equipment to the wet lab and would like to test again with same turbidty solution, while we have found something interesting:
It can be seen that large variation existed for the same measurement sample. We start thinking this might because of the light problem as the light in two rooms are different. And for now we just take one measurement reading with all LEDS on the sensors once to obtain the data. With strong light, the sensor might not be able to receive the correct reflection from the surface. So we need to get some improvements for our code to count for the background noise effect.
01/02/2023
We have modified our code to include a initial scan without using LEDs, this spectroscopy reading is later used as background reference.For now, we try to use the spectroscopy that got with all LEDs minus the spectroscopy that got without LEDs to get our final spectroscopy. We have selected three test locations:
1) Office (Normal Light Condition) 2) Wet lab (Strong Light Condition) 3)Table outside the office (Slight Light Condition)
The results looks pretty good as the spectroscopy obtained at different locations are very close to each other, the background noise has been reduced.
Later, we have also let the sensor stands on different surface to see whether this will affect the spectroscopy of the detected object. The surface we selected are:
1) Office Desk (White Surface) 2) Laptop (Grey Surface) 3) IOT Poster (Colourful Surface)
The spectroscopy obtained from three different back surfaces aligned well with each other. Now we would like to continue testing the water with different turbidty level again.
16/02/2023
Today we have found that the sensor case we designed originally is not aligned in the middle of the black cup. We have modified our design for both the sensor case and stand:
This stand have two trenches that we can adjust the sensor height in the future while maintain its stay in horizontal surface. And the arduino board has been locked on the top of the stand. A pre-cut circle surface is designed at the bottom of the stand that can fit the size of the cup,so that we can easily get the black cup out and in, making the filling progress more easier:
With this new design, we have tested it with all the turbidty solution again:
09/03/2023
We have modified the container up to a black square box to maximize its capacity for carrying water.
Also, we have updated the sensor reading function, now the sensor can read the spectroscopy information from White, IR, UV and All LEDs together separately. This could help us better understand how different objects behaves to different LEDs).
For the experiment settings, we have added cardboard as the cover when we do the experiment to eliminate the effect of other light resources.
Four different turbidity solutions (60NTU, 100NTU, 200NTU, 400NTU) has been tested after five minutes settle time.The results (average of 6 times reading) are shown as follows:
16/03/2023
We have extended our reference turbidity sets to a larger level:
Turbidity | Values |
---|---|
Low Turbidity Level | 0,0.61,0.68,1.23 |
Mid Turbidity Level | 25,50,55.5,75,108 |
High Turbidity Level | 199,300,393 |
We have then followed the same experiment procedure and have obtained the spectroscopy for the above 12 turbidity levels. After got the spectroscopy, we have started to look at if there is any correlation existed between turbidity level and normalized signal value.
White Light:
UV Light:
IR Light:
All LEDs:
For the IR, we didn't get any good correlation curve so it has been eliminated from the model.
After establish a few relationship curve ( overall above 90% for turbidity ranging from 0 to 300 NTU), We have started to establish a initial prediction model to see if we can predict the turbidity level:
LEDs | Wavelength | Regression Curve |
---|---|---|
White | 485 nm | y= 34.431x-342 |
UV | 410 nm | y= 4.7096x-249.06 |
UV | 435 nm | y= 24.651x-231.34 |
All | 435 nm | y= 16.582x-303.02 |
All | 485 nm | y= 32.224x-340.19 |
Later we have brought three water samples from Troups Creek Retention pond to see if we can actually predict the turbidity level, the output value are compared with the reference value that obtained from the Thermo Scientific Turbidity Sensor (ORION A14500), the results are shown as follows:
From the result here, it can be seen that the best predict regression curve is using white LED at 485nm, with uncertainty generally under 30%.
For some instance, the model could able to predict good turbidity level (the one marked as green), but it didn't occurred constantly under same LED condition.
It is suggest further dataset might be needed to be fit into the predict model, and it needs to come up with a way that can reduce the uncertainty caused by the sensor.
23/03/2023
In this week, we would like to test the impact of light (with or without cover box) and the impact of different height (the distance from the water surface)
Impact of Light
Experiment Setup
In this test, we keep everything same with previous experiments except removing the cover box, 6 different turbidity solutions were used, and the results were compared with previous spectroscopy readings.
Turbidity | Values |
---|---|
Low Turbidity Level | 0 |
Mid Turbidity Level | 50,75,100 |
High Turbidity Level | 199,300 |
Result
The results shown here are calculated based on the difference between without case value with with case value.
The grey block shows the 5 reference points we selected previously.
The yellow blocks shows some new value which comes out when we did not use the cover.
Conclusion
Overall, when look at the 5 reference points, the difference is not significant ( error rate < 20%).
Except for those extreme error points(100% error rate), overall, the error is under 35% when turbidity under 100 NTU and under 50% when turbidity ranging from 100 to 300 NTU.