ESP32-S2 and SR04 shows wrong distance

Issue #77 resolved
Christian created an issue

Hi!

I tried to use a SR04 together with a ESP32-S2. Unfortunately the distance is measured round about 4 times the real distance, the same setting works perfect with a ESP8266. The undlying software is tasmota in the actual version.

Do you have an idea how to fix it? Or is it already fixed in newer versions? I did not find a comment regarding this in the compatibility section.

Thanks!

Comments (1)

  1. Tim Eckel repo owner

    4 times the distance sounds like your microcontroller timer is set to the wrong multiplier. Either resolve the multiplier, or divide the result by 4 until such time you have it resolved.

  2. Log in to comment