microsoft / pxt-sonar

A Microsoft MakeCode package to handle sonar sensors and pings
https://makecode.microbit.org/pkg/Microsoft/pxt-sonar
MIT License
42 stars 34 forks source link

0.64 times the real distance #3

Open emilyLMZ opened 5 years ago

emilyLMZ commented 5 years ago

I ve been trying to make mesures of a distance with ultrasound (I've tried the sensor sonar:bit V1.6, VMA306 and SRF005) . The mesures the micro:bit gives me are always 0.64 times the real distance mesured with a ruler. ( I did tests from 5cm to 200 cm)

Could you tell me why do i find this proportional coefficent equal to 0,64 ?

Bests regards,

Emily

tiemes commented 1 year ago

I'm having the same issue using this library and different HC-SR04. It's arround .64 of the actual distance.