The encoder counter and speed display are wrong
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm using R2024a and Embedded Encoder Support Package for Infineon AURIX TC3x Microcontrollers inside the add on.
And using the encoder block and running in KIT_A2G_TC387_5V TFT board ,and use scope to observe the output.
The results and settings are as shown below.
1.hardware setting
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1722821/image.png)
2-1 encoder setting
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1722826/image.png)
2-2 encoder setting
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1722831/image.png)
3.scope setting
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1722836/image.png)
4.result
from top to the bottom is count,direction,and rad/s.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1722841/image.png)
댓글 수: 1
UDAYA PEDDIRAJU
2024년 8월 29일
Can you share the files? I can't replicate the situation without the files.
답변 (1개)
UDAYA PEDDIRAJU
2024년 8월 30일
Hi Fred,
To address the incorrect encoder counter and speed display:
- Check Hardware Configuration: Ensure all hardware settings are correctly configured for the KIT_A2G_TC387_5V TFT board.
- Verify Encoder Settings: Double-check the encoder settings, including resolution and signal type, to match your hardware specifications.
- Scope Configuration: Review the scope settings to ensure proper signal scaling and time base alignment.
- Calibration: If discrepancies persist, calibrate the encoder and verify connections to rule out hardware issues.
These steps should help resolve the inaccuracies in your encoder counter and speed display.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!