![]() ![]() In case you are really not any good at math, the long distance to an "empty" tank is just thinking backwards. Run the PING example in your IDE with your sensor and you should get readings. ![]() It sounds like you just want us to write the code for you and you are not doing your own research. We are here to help those who are having problems to figure out what they did wrong. There are probably hundreds of ways to copy the work of others for your project. Heightofwater = initialdistance-distance ĭid you watch any youtube on the sensor ? IS THERE ANYWAY I CAN IMPROVE THIS SO I DO NOT NEED ENTER VALUE OF INITIAL DISTANCE MANUALLY IN THE CODING EVERYTIME I WANT TO START THE PROTOTYPE AND MEASURE DIFFERENT TANK? MEANS I NEED THE SENSOR WILL MEASURE AND AUTOMATICALLY BECOME THE INPUT OF THE CODING AS INITIAL DISTANCE.įloat initialdistance = 40 // insert initial distance or distance between sensor and empty base tankįloat surfacearea = 10 // enter value of surface area of the rectangular tank base by multiplying width and lengthįloat duration, distance, heightofwater, volume So i used arduino uno, ultrasonic sensor, jumper wires, lcd.ĮDIT: THIS IS MY LATEST CODING. Lastly, show the volume measurement to lcd. Third, measure the distance from sensor to water surface.įourth, calculate the difference between initial distance and distance of sensor to water surface to get height of water in the rectangular tank.įifth, calculate the volume of the water in the tank using basic rectangular volume which is height x surface area of tank based. Second, fill the rectangular tank with water. so basically i use ultrasonic sensor to measure distance and then manipulate the distance to calculate volume of water in a rectangular tank.įirst i need to measure the initial distance between sensor and empty base tank. ![]() measuring water volume in the rectangular tank by using arduino and ultrsonic sensor. My project is based on ultrasonic sensor. i hope someone can help me on this project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |