Ultrasonic distance meter, for measuring water volume

It requires a login
Post your images here

Ultrasonic sensors, if properly positioned and insulated, and installed at the top of the tank, have no problems. My espresso machine water level sensor worked for many years without any problems (then I replaced the espresso machine and no longer needed it).

Just for reference, this was the project, one of my first with Arduino, I later published on Instructables (this dates back over 10 years...):

How can I upload pictures to this site, because I've tried so far and it doesn't work?

Thank you for the answers so far! They have helped me a lot, for which I am grateful!!!!
I have tried many programs found on the internet, but none of them work!

I would like to know the current water volume!

  • Arduino UNO R3 (there are several of these)
  • Ultrasonic sensor type: AO221AM PWM

Google reports that it find no reference to that number!

Here you can see the pictures of my idea: Imgur: The magic of the Internet

the display works with I2C

Thank you very much!!!!

This is the most promising program so far!!!
If I see correctly, all variables are included! I will try it tomorrow!
THANK YOU again!!!!

Did you try the one I posted?
If yes, then you don't have the hardware conneced correctly.

Is this an AI-generated project, or did you write it all yourself?
Just so I know what we're talking about...

Wait!
Which sensor are you using?
Have you abandoned using the A02YYUW?
My code only works for the A02YYUW UART sensor.
That code is for an HC-SR04.

I honestly wrote it myself

It is not needed for thanking someone in the forum you can like or love their posts

Okay, I believe you. I asked because the layout looks very similar to what comes out of a response to an AI project. I assume you have a "template" you use for projects (I do, but not for these projects, only for work), or you have a lot of free time to dedicate to someone else's project (which is a good thing). Or both. :wink:

In any case, I believe it's helpful, especially for those with little experience, not to provide full "ready-made" material like the entire project from top to bottom, but rather advice, examples of programming methods, and/or possible solutions.
But that's just my opinion... :wink:

That code was not very hard It was just a work of 3 minutes for me and that is not too much in daily I give 10 mins to the forum

But it's useless to @raptor1967 since it uses the wrong ultrasonic sensor.

Copy and then Paste into the Reply/text window.

My project!