measurement in centimeters with SR04 sensor

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
theopieleke
Posts: 3
http://meble-kuchenne.info.pl
Joined: Mon Jan 11, 2021 10:42 am

Flowcode v9 measurement in centimeters with SR04 sensor

Post 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

Steve-Matrix
Matrix Staff
Posts: 1384
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 184 times
Been thanked: 322 times

Re: measurement in centimeters with SR04 sensor

Post by Steve-Matrix »

One of my colleagues is looking into this.

medelec35
Matrix Staff
Posts: 1610
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 567 times
Been thanked: 531 times

Flowcode v9 Re: measurement in centimeters with SR04 sensor

Post by medelec35 »

Hello.
What target device are you using?
Martin

theopieleke
Posts: 3
Joined: Mon Jan 11, 2021 10:42 am

Re: measurement in centimeters with SR04 sensor

Post by theopieleke »

HC-SR04 ultrasonic sensor on PIC16F887 and on a PIC16F1937 as target devices.

medelec35
Matrix Staff
Posts: 1610
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 567 times
Been thanked: 531 times

Re: measurement in centimeters with SR04 sensor

Post by medelec35 »

Can you try a new version of the component within this topic, please.
Martin

Post Reply