This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello, I'm using the C2000 support package for Matlab with my F28027F launchpad. Now I'm testing a current sensor (LA25-np). I used the ADC block to read the analog value from the sensor. All settings of the ADC block are left intact. Unfortunately, there is a lot of noise in the reading I got. Attached image below is the scope reading directly taken from the ADC block. Is there any setting that I'm not aware of regarding this issue?
Then, I tried to read the output from the same sensor using my Arduino Uno with Arduino support package for simulink just to double check. The reading is good as can be seen below.
Hello Muhammad.
A Simulink expert has been notified of your post, and will reply back to you as soon as they can.
Best Regards,
Marlyn
Hi,
This post might be of help to you.
LAUNCHXL-F28027: Noise in the ADC reading. - C2000 microcontrollers forum - C2000™︎ microcontrollers...
Hi,
Try to see if you configure a TI shipping example to get this job done from CCS.
See if that part works or does that also result in same behavior.
Furnish the details so that TI friends can provide inputs as well.
I just tried reading the ADC from CCS. The problem does not occur in CCS. The readings a fine with less than 5% deviation from the max and min value. Only in Simulink I encounter the problem.
Hi,
OK, we then need to investigate the code. Can you do me a favor, please can you attach the files from CCS and model from Simulink.?
Muhammad,
Have you had an opportunity to locate the files that Venkatesh has requested? Those will be needed to continue the debug.
Best,
Matthew
Muhammad,
I am assuming you resolved your issue. If you did not, feel free to reply to this thread. If it locks then "Ask a Related Question", or create a new thread referencing this one for further assistance.
Best Regards,
Marlyn