Page 1 of 1

measurement in centimeters with SR04 sensor

Posted: Mon Feb 19, 2024 2:05 pm
by theopieleke
Hello,
I 'm having trouble using the SR-04 ultrasonic sensor in Flowcode V9.
The component macro says that the returned value that is given after receiving echo is in centimeters, but when I measure the distance in centimeters it is almost twice the distance that is given from te component macro.
Could it be that te distance from the component macro is in inches, not in centimeters?
Greetings,
Theo

Re: measurement in centimeters with SR04 sensor

Posted: Tue Feb 20, 2024 2:54 pm
by Steve-Matrix
One of my colleagues is looking into this.

Re: measurement in centimeters with SR04 sensor

Posted: Wed Feb 21, 2024 11:46 am
by medelec35
Hello.
What target device are you using?

Re: measurement in centimeters with SR04 sensor

Posted: Mon Feb 26, 2024 7:37 am
by theopieleke
HC-SR04 ultrasonic sensor on PIC16F887 and on a PIC16F1937 as target devices.

Re: measurement in centimeters with SR04 sensor

Posted: Mon Feb 26, 2024 10:11 am
by medelec35
Can you try a new version of the component within this topic, please.