Hello,
I am currently using a EVM430-FR6047 board to take TOF Level Sensing readings with a single transducer (SMD20TF1000R) which is glued onto a Graduated cylinder as depicted below. The goal is to have the program print out the TOF as I add more water. I have confirmed that the program is able to successfully take TOF readings when the level is around 55 mm or ~69 uS TOF. After I continue adding water to increase the level the readings time out due to error 126, to which I increase the gain and then get max sample shift errors (code 135). I am trying to readings at a larger distance but am not sure what values to adjust in the USS_Config.H file to stop these errors from continuing to pop up. I have attached my code below and if I could get any feedback on how to adjust my code so I can just get a simple TOF reading as I continue to add water without algorithm errors I would greatly appreciate it. I do understand that a certain point it will not receive an echo due to the receive signal being weak but I want to resolve the issue of getting errors due to algorithms and setup my code to achieve this.