Bad Distance Results

of course, so you are hearing a sound maybe from electrical noise and not from the ultrasonic transducer, that was my idea.

wish you it works!

I mean are the pins you use for the ultrasonic being used by the shield for signals as well.
If so then the ultrasonic signal will be compromised.

Get the schematic of the shield and find out if any of the shield components use those pins.

If they are then use the schematic to find pins that aren't used by the shield.

Do you see what I mean?
You cannot have a pin that is used for two different functions.

Tom.. :smiley: :+1: :coffee: :coffee: :coffee: :australia:

Found this for your shield.

If you are using pin8 and pin9 then you are okay connection wise by the look of it.

Have you measured the supply voltage AT the ultrasonic unit when it is operating?

Tom... :smiley: :+1: :coffee: :australia:

Could be something with a "sympathetic vibration".

which kind of electrical sound lol. There is a Tranducer and an Emitter at the US Sensor. The Sound comes of course of the housing where the acoustic waves gets generated. Cable brand or short curcuit sounds diffrent lol.
Kinda konfusing your comment tbh

i try on monday with a oszilator. A collegue but already said, that its not the voltage because in paralell itll be const. It will be the current for sure he said.

like i said, it sounds like the typical US sound u hear , jsut with the diffrence exremely loud and then skrilly, not constant

let's say it is my english!

ok, was not my english.

I hope you will fix your programming issue.

i got the solution. The delay at the end in the client loop overwrites the US with too much data. If cou pick the delay and just put it out of the loop the sensor has enough time to compute the correct results because from measuring to giving out data it need at least 60ms. Also the weird sounding of the sensor dissapeared and normalised.

Case closed :slight_smile:

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.