can not read input from DC power to MATLAB using F28379D

1 回表示 (過去 30 日間)
Yasser Asiri
Yasser Asiri 2024 年 5 月 18 日
回答済み: Sayan 2024 年 5 月 30 日
Hello , I am trying to read accurate DC input by using voltege sensor & current sensor with F28379D, but unfortunately not gave me a correct input
i use matlab 2023a
if any subject wrote on it, or there are video about it or who works on it send to me (sarawi22@gmail.com) or write soluation down

回答 (1 件)

Sayan
Sayan 2024 年 5 月 30 日
Hi Yasser,
It is hard to find the actual issue without the model and the settings you have made inside the ADC block. From the picture of the model, I can see a few modifications that can be made.
  • The maximum DC voltage ADc can measure is 3.3 volts. You are taking 3 volts as the maximum voltage.
  • The "Gain" block connected to the ADCs should have a gain of 3.3/4095.
  • I guess the "Constant" blocks with values 1.25 and 1.28 are the offsets you want to remove from the measurement. Ensure the value is correct and in the same unit as the measurement, i.e., volts.
However, there are some common reasons you can face the issue. They are mentioned as follows.
  • Ensure you are using the pins from the same ADC module ("C" in this case) on the board for measurement.
  • Check if there are any wrong values set for the ADC block parameters. You can go through this documentation to do the same.
Hope this helps in resolving the issue.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by