Other Parts Discussed in Thread: C2000WARE
Hello,
Is there a sample code which will guide me to read the Current value "ACS723 "of the motor.
Regards,
RK
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,
Is there a sample code which will guide me to read the Current value "ACS723 "of the motor.
Regards,
RK
No such sample code in MotorControlSDK. You just need to connect ACS723's output to an ADC pin of F280049C, and then convert the sampling result of ADC to the real current value. You must add a signal processing circuit to transfer the voltage range to 0~3.3V for F280049C.
Thank you Yanming Luo, for explaining,
As im using the "C2000Ware_MotorControl_SDK_2_01_00_00", Scould you please explain me what all the proccess is happening in the ADC in "HAL_setupADCs (HAL_Handle handle)" API.
(i.e) (1) : What is the sampling rate?
(2): Why the ADC clock is set to 50 Mhz?
(3): Purpose of Sampling window?
(4):Purpose of ADC_setInterruptPulseMode()?
(5):Purpose of ADC_setInterruptSource()?
In addition, do you have a routine for calculating RMS?
Thanks,
You don't need to change anything in the example labs except the linked ADC channel according to your own board. For a more detailed description of Q1~Q5, if you haven't had a chance to look at the workshop material, I think this will help demystify some of the terminology and architecture as well. Or you might take a look at the C2000Ware about the example of the peripherals drive as well.
https://training.ti.com/c2000-f28004x-microcontroller-workshop?context=1137791-1137780
Unfortunately, we don't have, the MotorControl just focuses on generic motor control algorithms without needing RMS value.