Author Topic: underwater fish detector  (Read 74240 times)

0 Members and 1 Guest are viewing this topic.

Offline fedimakniTopic starter

  • Regular Contributor
  • *
  • Posts: 63
  • Country: tn
underwater fish detector
« on: February 27, 2024, 02:38:33 pm »
I would like to create an underwater fish detector - completely operating underwater (personal project)
The enclosure will be a waterproof hollow cylinder (possible material to use are: acrylic, Polycarbonate or PVC), a PCB will be sealed inside that enclosure containing the sensor (the sensor of choice should not be waterproof because it will be inside a waterproof enclosure).
The fish can pass through that hollow and will be detected while passing. the inner diameter of the enclosure will be in the centimeter range to allow one fish to pass at a time.
Note:
I am not dealing with precise measurements or long range (no need for those expensive high precision sensor)
I cannot use big or expensive sensors due to budget related reasons and size constrain
max operating voltage of the PCB is 12V (preferably 5V or 3.3V)
Here's a link to picture that illustrate the idea for better understanding
https://drive.google.com/file/d/13LIXOK5Zvt1R61uHieQIGLCPWyVfH69t/view?usp=drive_link
I am using 2 sensors so i can make sure i detect that it passes through
optional receivers can be implemented if the sensor i use is just a transmitter and not transducer

Here comes the challenging part, the sensor choice, i will list some i thought about and i hope i can get some ideas from you that can help me.
- Ultrasonic sensor (i saw some people successfully did it but nothing is documented with low cost sensors):
Challenges:
Blind distance of ultrasonic sensor for small measurements.
I don't know if the acoustic wave can pass through acrylic hit the fish and be detected
- Optical sensor (such as VL53L1 or any other choice)
Challenges:
Require clear water
water can scatter the light but i am using it for short distance so i don't know if it will work or not
require transparent enclosure
- ESP32 camera (image recognition algorithm)
Challenges:
Require complex algorithm
Require clear water

I would like to hear if you have any other idea or if i can improve one of the suggested ideas to successfully achieve the project.
Thank you very much.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16774
  • Country: us
  • DavidH
Re: underwater fish detector
« Reply #1 on: February 27, 2024, 03:23:17 pm »
I think optical will be the easiest.

I wonder if an LC tank circuit with the inductor wrapped around the fish tube would work.
 
The following users thanked this post: fedimakni

Offline DaJMasta

  • Super Contributor
  • ***
  • Posts: 2308
  • Country: us
    • medpants.com
Re: underwater fish detector
« Reply #2 on: February 27, 2024, 03:52:25 pm »
I'd think optical is the way to go as well, but rather than a distance sensor, you could probably just have some IR illumination and then a photodiode or two - just looking for something opaque to pass through the beam.  You'd want to keep the emitted light out of the visible band so you don't effect their behavior in using it.  You could also use several emitters or detectors to measure movement/avoid murky water causing issues/discern multiple fish from one/etc.  Provided you can seal a hole in the enclosure, you could also potentially get the optical parts in direct contact with the water and then just seal the electronics side.

Ultrasonic would be possible, but I doubt practical in this situation.  To get a good measure of what's in the water, you'd probably want the transducer to interface directly with the water, not through a separate enclosure.  There may still be meaningful data can can be had from a dry sensor, but the difference between the reflection of the enclosure and the reflection of the fish in the water outside of it will be subtle, and it will probably be a good chunk of effort to identify that signal.
 
The following users thanked this post: fedimakni

Offline fedimakniTopic starter

  • Regular Contributor
  • *
  • Posts: 63
  • Country: tn
Re: underwater fish detector
« Reply #3 on: February 27, 2024, 03:52:58 pm »
Do you mean detecting the electromagnetic field change when the fish pass through the tube?
I was really thinking about it, but i don't know how to make it and how to measure the change in that E-field. Do you have any idea or any video showcasing such approach?
Thanks
 

Offline fedimakniTopic starter

  • Regular Contributor
  • *
  • Posts: 63
  • Country: tn
Re: underwater fish detector
« Reply #4 on: February 27, 2024, 03:56:24 pm »
Thanks for your answer.
Do you mean i need to use multiple light transmitter on one side and multiple receiver on the other side?
Do you think IR can pass through water?
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14368
  • Country: de
Re: underwater fish detector
« Reply #5 on: February 27, 2024, 04:23:35 pm »
Water is not good in passing IR light. The wavelength of choice is more in the blue or green range. Here the absorbtion is lowest. With the relatively short distance it should still work with not so clean water. Over the long run algee groth on the detector parts can be an issue that would effect most of the sensors.

Ultrasound should also work, but the transducers are a bit more rare and may be more expensive.
 
The following users thanked this post: fedimakni

Offline fedimakniTopic starter

  • Regular Contributor
  • *
  • Posts: 63
  • Country: tn
Re: underwater fish detector
« Reply #6 on: February 27, 2024, 04:30:58 pm »
Thanks Kleinstein
Do you any knowledge about someone tried something similar that it works, so at least i can get idea from his experience?
Thank you for your answer
 

Offline DaJMasta

  • Super Contributor
  • ***
  • Posts: 2308
  • Country: us
    • medpants.com
Re: underwater fish detector
« Reply #7 on: February 27, 2024, 08:07:27 pm »
Water doesn't transmit infrared as well as shorter wavelengths, but you will have more than enough output from a standard LED to go a few inches through a pipe, so the reduced transmission should be negligible even at 850nm or so, which prevents you from lighting up the inside of your counter and dissuading fish from going through it.

A single LED and photodiode would work, but if you wanted more output or several sensors to try and get more info (speed of movement, size of the fish, error checking for very turbid water, etc.) multiple could be useful and easy to implement.
 
The following users thanked this post: fedimakni

Online coppercone2

  • Super Contributor
  • ***
  • Posts: 9731
  • Country: us
  • $
Re: underwater fish detector
« Reply #8 on: February 28, 2024, 12:34:22 am »
ultrasonic might be detrimental to fish, lots of research is emerging about how sonar is not good for wild life. low power light beam (blocked to only go in one path like a laser) is the best solution for anything but a boat.

there is lots of research going on right now on how to quiet down aquatic environments. everything from reducing sonar power as much as possible to decreasing propulsion noise with special propellers and quieting engines etc.

And quiet in engineering is always more impressive then loud. you could sell something quiet because its quiet.
« Last Edit: February 28, 2024, 12:37:18 am by coppercone2 »
 
The following users thanked this post: fedimakni

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16774
  • Country: us
  • DavidH
Re: underwater fish detector
« Reply #9 on: February 28, 2024, 02:59:31 am »
Do you mean detecting the electromagnetic field change when the fish pass through the tube?
I was really thinking about it, but i don't know how to make it and how to measure the change in that E-field. Do you have any idea or any video showcasing such approach?

It would really be a change in the h-field.  The capacitor and inductor form a resonate tank for an oscillator, and then a measurement is made of the frequency.  This is just a way to measure reluctance, but offhand I have no idea if a reluctance sensor will detect a fish, but reluctance sensors are very sensitive.

Metal foil could be placed on each side of the tube making a capacitor, and there are lots of ways to accurately measure capacitance.  As the fish swims through, the dielectric constant between the plates changes so the capacitance changes.  The dielectric constant of water is about 78.4, but again, I have no idea what the dielectric constant is of a fish.

With some more sophistication, both methods can be extended to measure loss, as with a metal detector, giving even more ability to discriminate.
 
The following users thanked this post: fedimakni

Offline moffy

  • Super Contributor
  • ***
  • Posts: 1821
  • Country: au
Re: underwater fish detector
« Reply #10 on: February 28, 2024, 06:35:02 am »
Do you mean detecting the electromagnetic field change when the fish pass through the tube?
I was really thinking about it, but i don't know how to make it and how to measure the change in that E-field. Do you have any idea or any video showcasing such approach?

It would really be a change in the h-field.  The capacitor and inductor form a resonate tank for an oscillator, and then a measurement is made of the frequency.  This is just a way to measure reluctance, but offhand I have no idea if a reluctance sensor will detect a fish, but reluctance sensors are very sensitive.

Metal foil could be placed on each side of the tube making a capacitor, and there are lots of ways to accurately measure capacitance.  As the fish swims through, the dielectric constant between the plates changes so the capacitance changes.  The dielectric constant of water is about 78.4, but again, I have no idea what the dielectric constant is of a fish.

With some more sophistication, both methods can be extended to measure loss, as with a metal detector, giving even more ability to discriminate.

It might be salt water, not the best dielectric, certainly not distilled water even if fresh. I think I read a while back that green light has the lowest absorbtion rate in water back when the US navy was researching light based detection underwater but I could be wrong, and it might be irrelevant because of the short distances. I would think doppler sonar at a moderately high frequency would be the best for detecting something in motion. Maybe even in combination with some sort of light detection.
 
The following users thanked this post: fedimakni

Online Berni

  • Super Contributor
  • ***
  • Posts: 4997
  • Country: si
Re: underwater fish detector
« Reply #11 on: February 28, 2024, 06:42:29 am »
You don't want to capacitively detect fish.

The fish is mostly made out of water, and it is swimming in water. So it will be hard to tell apart the fish from the water it is swimming in.

Optical is the way to go if you have a tube where you can place things on both sides of it. Be it LED on one side and photo detector on the other side. Even more convenient is placing the LED and detector on the same side and then put a mirror on the other side. Yes water does attenuate red and infrared light, but not to the point where it would be a perfect filter or something. Sure you might have trouble getting a red laser to go 100m trough water without putting a lot of power into it, but for 10cm you won't really see any meaningful attenuation. The long wave infrared is what absolutely will not go trough water for any meaningful distance (but LEDs are not even capable of producing those wavelengths).

Tho this being in water you could have issues with dirt building up on the optical surfaces and blocking your beam. So it might need some cleaning every few months.

If you want it to be robust to dirt then ultrasonic is the way to go. You can get some automotive piezzo ultrasonic transceivers that are completely sealed, so they should work under water. Then you send pulses into it at its resonant frequency and quickly listen back for a echo. If the echo arrives sooner than usual, you got a fish in there.
 
The following users thanked this post: fedimakni

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14368
  • Country: de
Re: underwater fish detector
« Reply #12 on: February 28, 2024, 08:22:34 am »
Using red or NIR may indeed be good, depite the high absorbtion in water. The fishes would not see it so much. The water may also shield it from external light (e.g. the sun).
2 pairs of LED/sensor may be a good idea, as this would allow seeing the direction of the movement. Here it may help if the 2 pairs are not too far apart (less than the length of the fish). 1 LED and 2 sensors could be enough for this.

For ultrasound the distance is a bit short to get a classical echo for a distance measurement, but the fish will most likely change the acoustic response enough to see a difference. It may need some experimenting on how different the fish is from just water. With sensitive systems they even use ultrasound to tell different chemicals aprart and do a check if the contend is what it is supposed to be.  The sonic response has quite some information, but it can be hard to directly calculate back to a single property. It is more like a signature / hash : small differences can be seen, even of not clear what has changed.

A capacitive detection could be tricky and also react to changes in the water (e.g. salt).  In theory one should be able to see the electric flield that a life fish produces from it's body - kind of doing a swim by EKG.
 
The following users thanked this post: fedimakni

Offline fedimakniTopic starter

  • Regular Contributor
  • *
  • Posts: 63
  • Country: tn
Re: underwater fish detector
« Reply #13 on: February 28, 2024, 09:52:03 am »
Thank you all for the response:
I have 2 questions:
- Optical: How to choose the right LED in that case? i heard that blue because it has low wavelength can be good even in murky water, but will normal led work or i need special LED? do you think i need a special optical lens in order to not allow the light to spread in all direction?
- Ultrasonic: I am currently checking the options of how to create one: i think there are 2 approach
1. using normal ultrasonic sensor mounted to the PCB and if the enclosure is thin enough, the wave can go into the water and detect the fish (i can make the receiver on the other side of the tube) but i am not sure if the wave can bypass the enclosure
2. use a piezo as transmitter and seal it and let it exposed to sea water and i can detect the echoes with the same approach on the other side.

What do you think about that?
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14368
  • Country: de
Re: underwater fish detector
« Reply #14 on: February 28, 2024, 10:14:39 am »
For the LEDs I would choose 850 nm as the fishes can very likely not see it. The absorbtion length in water should be a few 10 cm, so long enough to get light through and still have it somewhat shielded from above. There are fotodiodes / foto transistors with IR filter (e.g. 750 nm).  In water the lense action of the case is essentially eliminated. So even of the LEDs are highly focussed in air, in water this would no longer apply, as the refractive index of water is relatively close to that of the plastic lense/case. One can expect quite some spreading of the light and wide angle emitters / detectors under water.

The simple plastic case versions as used for IR remotes should be OK. Depending on the light from above one may still need to modulate the light to suppress the background and get better sensitivity.
One could try out the basic optics and electronics likely without the tube first. For a first test maybe use a red LED, so one can see things.
There are ready-made remote detector chips (e.g. TSOP1xxx series) with demodulation. If one finds a typ that can be water proofed it could be an easy option, though it needs a complicated modulated signal and only gives a digital out.
 

Online Berni

  • Super Contributor
  • ***
  • Posts: 4997
  • Country: si
Re: underwater fish detector
« Reply #15 on: February 28, 2024, 10:30:47 am »
Any LED works, tho the photo detectors tend to only be no filter or with an IR pass filter, so using IR has an advantage there of helping you get a better signal using a filtered receiver. Also having something that fish can't see is a benefit to avoid affecting their decision to go trough. IR is good there since in general animals don't see IR, or they see it poorly if they do. But yes as said above, the lens on a LED might not work so well in water due to the refractive index, but it might still work well enough, the distance is short after all.

As for waterproofing piezzo transducers yourself. Do NOT do that. The science behind sound transmission can be quite complicated and so you need to know what you are doing if you plan to encapsulate a transducer yourself. Just grab an off the shelf potted water proof transducer, they are cheap and common as they are used in cars as parking sensors.
 

Offline fedimakniTopic starter

  • Regular Contributor
  • *
  • Posts: 63
  • Country: tn
Re: underwater fish detector
« Reply #16 on: February 28, 2024, 10:54:06 am »
Thanks, I actually checked some waterproof ultrasonic sensor, but i noticed that don't operate well underwater. They don't like to be submerged into the water. so operating them with cars just in the case of rain or water splash is ok but other than that, they may not be that reliable or can be damaged overtime.
 

Online Berni

  • Super Contributor
  • ***
  • Posts: 4997
  • Country: si
Re: underwater fish detector
« Reply #17 on: February 28, 2024, 11:18:33 am »
Yeah water is going to affect the sensor. The datasheet will have specs for use in air, but some specs might shift a fair bit once in water, so you will need to characterize it yourself. It might need the operating frequency adjusted to match the new resonance or it might need stronger drive...etc

The reason for getting an off the shelf one is that it was potted in a way that gives it good acoustic coupling to the outside. You can also buy multiple of them and rely on their properties being similar, so that the driving circuitry does not need adjustment for each sensor.
 

Offline Harrow

  • Regular Contributor
  • *
  • Posts: 54
  • Country: au
Re: underwater fish detector
« Reply #18 on: February 28, 2024, 12:23:41 pm »
I think optical will be the easiest.

I wonder if an LC tank circuit with the inductor wrapped around the fish tube would work.
This has my vote because it's such a cool idea! Is a fish different enough from water? As I always say, there's one sure way to find out! Not too much work to set up and then observe readings as fish pass through. If you make it very high-Q, maybe it will be sensitive enough??? Whichever you decide, this is a fun and kooky little project. :-)
« Last Edit: February 28, 2024, 12:27:35 pm by Harrow »
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2328
  • Country: gb
Re: underwater fish detector
« Reply #19 on: February 28, 2024, 12:27:32 pm »
We have a fish ladder locally with a fish counter in it. Uses a trained AI camera system apparently.
 

Offline fedimakniTopic starter

  • Regular Contributor
  • *
  • Posts: 63
  • Country: tn
Re: underwater fish detector
« Reply #20 on: February 28, 2024, 12:31:26 pm »
Harrow
Thank you for the response,
Do you have any picture or video that can showcase the idea? i tried to understand it but i couldn't get it well. Do we need to make like an electromagnetic cage and detect the change in that field? but what kind of device is used to detect that change?
I really think it's a cool idea but how can i start with it? Thanks again.
« Last Edit: February 28, 2024, 12:33:43 pm by fedimakni »
 

Offline fedimakniTopic starter

  • Regular Contributor
  • *
  • Posts: 63
  • Country: tn
Re: underwater fish detector
« Reply #21 on: February 28, 2024, 12:33:28 pm »
voltsandjolts,
Do you have a link for that product? thanks
 

Offline Harrow

  • Regular Contributor
  • *
  • Posts: 54
  • Country: au
Re: underwater fish detector
« Reply #22 on: February 29, 2024, 02:26:37 am »
Harrow
Thank you for the response,
Do you have any picture or video that can showcase the idea? i tried to understand it but i couldn't get it well. Do we need to make like an electromagnetic cage and detect the change in that field? but what kind of device is used to detect that change?
I really think it's a cool idea but how can i start with it? Thanks again.
I guess have a wire wound around the tube a few times to create an air-cored inductor (in this case water-cored) and then add the capacitor to make the LC resonant circuit. Then excite the circuit with an oscillator voltage source set to the resonant frequency. When the fish goes through the tube, the change in inductance value will be seen as a blip in line current as the change in resonant frequency creates line current.

Alternatively, you could have plates either side of the tube and it's the capacitance that changes, not the inductance. As others have pointed out, a fish might not make any noticeable difference to the relative permeability or permittivity of the water, but I just liked the concept - novel thinking by David! ;-)

Would you believe, I just googled "permittivity of fish vs water" and people have actually measured it, LOL!!! The internet will never cease to amaze me.

https://www.researchgate.net/figure/Dielectric-constant-of-four-species-of-fish-within-the-temperature-range-of-20-100C-at_fig2_337585960
« Last Edit: February 29, 2024, 11:32:07 am by Harrow »
 
The following users thanked this post: fedimakni

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16774
  • Country: us
  • DavidH
Re: underwater fish detector
« Reply #23 on: February 29, 2024, 01:40:32 pm »
Alternatively, you could have plates either side of the tube and it's the capacitance that changes, not the inductance. As others have pointed out, a fish might not make any noticeable difference to the relative permeability or permittivity of the water, but I just liked the concept - novel thinking by David! ;-)

I like the inductance or capacitance idea because it does not require sealing a cut through the tube.

Quote
Would you believe, I just googled "permittivity of fish vs water" and people have actually measured it, LOL!!! The internet will never cease to amaze me.

https://www.researchgate.net/figure/Dielectric-constant-of-four-species-of-fish-within-the-temperature-range-of-20-100C-at_fig2_337585960
 
The following users thanked this post: fedimakni

Offline eutectique

  • Frequent Contributor
  • **
  • Posts: 414
  • Country: be
Re: underwater fish detector
« Reply #24 on: February 29, 2024, 02:21:10 pm »
Would you believe, I just googled "permittivity of fish vs water" and people have actually measured it, LOL!!!

within the temperature range of −20-100°C

I could not find the power levels though.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf