필터 지우기
필터 지우기

encoder block in simulink for ESP 32

조회 수: 8 (최근 30일)
aakash dewangan
aakash dewangan 2023년 3월 9일
편집: aakash dewangan 2023년 6월 19일
Hi,
can you please tell me how can i read/measure the speed of motor using ESP32 in simulink by using any encoder block.

채택된 답변

aakash dewangan
aakash dewangan 2023년 3월 21일
편집: aakash dewangan 2023년 6월 19일
I have managed to solve the problem.
ESP32 libraries/files were not installed in my computer.
After installing them again, It is working properly, same as Arduino due.
Thanks

추가 답변 (1개)

Praharshita
Praharshita 2023년 3월 13일
Hi Aakash,
To Read/Measure the speed of motor using ESP32 in simulink by using any encooder block,
  1. Open a new Simulink model and add an Arduino block from the Simulink Library Browser.
  2. Double-click on the Arduino block and select the ESP32 board from the list of supported Arduino hardware.
  3. Add an Encoder block from the Simulink Library Browser and connect its output to a scope block.
  4. Configure the Encoder block by specifying the pin number for the encoder signal input and the encoder resolution in pulses per revolution.
  5. Set the simulation stop time and other simulation parameters as desired.
  6. Run the simulation and observe the output of the scope block to see the speed of the motor in revolutions per minute (RPM).
Hope these steps help resolve the issue.
  댓글 수: 1
aakash dewangan
aakash dewangan 2023년 3월 18일
편집: aakash dewangan 2023년 3월 18일
can you exactly mention which arduino block you are talking about.
also, first two steps of your suggestions are not visible in simulink.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by