Clear Filters
Clear Filters

can not read input from DC power to MATLAB using F28379D

3 views (last 30 days)
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

Answers (1)

Sayan
Sayan on 30 May 2024
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.

Community Treasure Hunt

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

Start Hunting!