![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/10389548_1522136026381_DEF.jpg)
Anwaar Baig
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
How to measure distance of an object using HC-SR04 ultrasonic sensor using raspberry pi 3 interfaced with MATLAB?
I want to calculate the distance of my whiteboard marker to detect its position on the whiteboard. I have interfaced MATLAB with...
6 years 前 | 0 个回答 | 1
0
个回答提问
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:
trig=17; echo=27; configurePin(mypi,echo,'DigitalInput') configurePin(mypi,trig,'DigitalOutput') writeDigitalP...
6 years 前 | 1 个回答 | 1