Wierd problem with HC-SR04.

2 views (last 30 days)
Jan Bartonek
Jan Bartonek on 9 Mar 2020
Commented: han wang on 8 Feb 2022
Hello,
Iam trying to use ultrasonic sensor HC-SR04 in Simulink, but it always shows 0 when i start simulation. Iam using Arduino Uno and when i tested the sensor in Arduino IDE it worked perfectly, even if i tried it in Matlab it worked. I am lost, do someone have any idea how to make it work? :)
Thanks for your answeres and have a nice day
  2 Comments
Héctor Arismendi
Héctor Arismendi on 26 Feb 2021
I have the same problem, do you solve the problem?
han wang
han wang on 8 Feb 2022
I have the same problem with 2021B. Possiblily a bug?

Sign in to comment.

Answers (0)

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!