DC Motor and Ultrasonic Sensor

3 ビュー (過去 30 日間)
Ayesha Faizun Kalame
Ayesha Faizun Kalame 2021 年 5 月 23 日
編集済み: Ayesha Faizun Kalame 2021 年 5 月 23 日
step 1- Motor starts to rotate in a clockwise orientation with the actioning of a SPDT switch or push of a button (such a microswitch or mini push button).
step2- Motor stops for 5 seconds as the ultrasonic sensor detects a stationary wall.
step 3- The motor rotates in an anticlockwise orientation to initiate the reversing phase.
step 4- After 10 seconds into the reversing phase, the motor fully stops.
I have to make a tinker cad model and simulate in matlab. I have tried to build the simulink matlab model but unfortunately, I am not able to attach the ultrasonic senson( i do not know where to put the sensor) .
Can someone please help me to model it properly?
I am attaching the file I created without the ultrasonic sensor

回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by