photo

松繁


Last seen: meer dan een jaar ago Active since 2023

Followers: 0   Following: 0

Statistics

Feeds

View by

Answered
how can i create a block diagram of an ultrasonic sensor in simulink?
Is there a solution?

meer dan een jaar ago | 0

Answered
I am using HC-SR04 ultrasonic sensor with raspberry pi 3 interfaced with MATLAB 2017b. When I run my code to measure distance of an object from sensor my code goes in infinite loop detecting nothing. Code is as follows:
% clear mypi % mypi=raspi; configurePin(mypi,4,'DigitalOutput'); % 5脚设置为输出脚 21 Trig发送引脚 configurePin(mypi,17,'DigitalInpu...

meer dan een jaar ago | 0