- Jun 6, 2020
- 11,517
- 4,383
Hi everyone,
I tried to connect an HC-SR04 sensor to a WeMos D1 R3 but I cannot get it to work. Here is my materialization and the code follows. Do you see any errors?
The values of the resistors in the Fritzing picture are 4,7kΩ, 10kΩ and 100Ω from left to right (there are only fixed values). Mine are respectively (measured with the resistor setting in the voltometer) : 5,5kΩ, 9,86kΩ and 110Ω from left to right. No echo signal is returned from the sensor. The 5V pin gives 4.79V which I do not know if it is enough. The code follows:
B4X:
I tried to connect an HC-SR04 sensor to a WeMos D1 R3 but I cannot get it to work. Here is my materialization and the code follows. Do you see any errors?
The values of the resistors in the Fritzing picture are 4,7kΩ, 10kΩ and 100Ω from left to right (there are only fixed values). Mine are respectively (measured with the resistor setting in the voltometer) : 5,5kΩ, 9,86kΩ and 110Ω from left to right. No echo signal is returned from the sensor. The 5V pin gives 4.79V which I do not know if it is enough. The code follows:
برای دیدن تصاویر باید ثبت نام کنید
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید