Apr-25-2018, 09:56 AM
Hello everyone!
I'm new to this forum so I hope I am posting this thread at the right place.
I am getting a signal from an ultrasound sensor on an arduino board in order to determine the water level in a fish tank for an aquaponics system.
There are two phases, one during which the water is emptied slowly, and an other phase during which the water level rises up again.
So theoretically we should measure a periodic signal similar to triangular signal.
![[Image: 31230499_10155880234216939_5175508528814...e=5B5FFE3A]](https://scontent.fmad3-4.fna.fbcdn.net/v/t1.15752-9/31230499_10155880234216939_5175508528814620672_n.png?_nc_cat=0&oh=06020f1cd7eb720df96b58b52741fd7d&oe=5B5FFE3A)
My goal is to find the period of this signal and also the time of each phase.
Right now the measured signal looks like this:
![[Image: 31317871_10155880234211939_1043990362202...e=5B50EB1D]](https://scontent.fmad3-4.fna.fbcdn.net/v/t1.15752-9/31317871_10155880234211939_1043990362202308608_n.png?_nc_cat=0&oh=b0a467e33c86e31cd60525e216b4ac2c&oe=5B50EB1D)
I think the signal should also be filtered to remove the noise.
I am not very familiar with Python, so perhaps someone can help me!
Thanks,
Pierre
I'm new to this forum so I hope I am posting this thread at the right place.
I am getting a signal from an ultrasound sensor on an arduino board in order to determine the water level in a fish tank for an aquaponics system.
There are two phases, one during which the water is emptied slowly, and an other phase during which the water level rises up again.
So theoretically we should measure a periodic signal similar to triangular signal.
![[Image: 31230499_10155880234216939_5175508528814...e=5B5FFE3A]](https://scontent.fmad3-4.fna.fbcdn.net/v/t1.15752-9/31230499_10155880234216939_5175508528814620672_n.png?_nc_cat=0&oh=06020f1cd7eb720df96b58b52741fd7d&oe=5B5FFE3A)
My goal is to find the period of this signal and also the time of each phase.
Right now the measured signal looks like this:
![[Image: 31317871_10155880234211939_1043990362202...e=5B50EB1D]](https://scontent.fmad3-4.fna.fbcdn.net/v/t1.15752-9/31317871_10155880234211939_1043990362202308608_n.png?_nc_cat=0&oh=b0a467e33c86e31cd60525e216b4ac2c&oe=5B50EB1D)
I think the signal should also be filtered to remove the noise.
I am not very familiar with Python, so perhaps someone can help me!
Thanks,
Pierre