Tool/software:
Hi,
I am using the same hardware. Antonio mentioned "In the single chip servo example a ratio is created based on the output range and then that value is multiplied by 30, but I cant figure out where that value of 30 comes from". Achala explained current, shunt resistor values, osr etc. Very well but the reason why adc values are multiplied with 30 is still not clear.
fdbkCurPhA = (-((float)gSddfChSamps[0] - gSddfChOffsets[0] - SDDF_HALF_SCALE_FLT) / SDDF_HALF_SCALE_FLT) * 30.0;
fdbkCurPhB = (-((float)gSddfChSamps[1] - gSddfChOffsets[1] - SDDF_HALF_SCALE_FLT) / SDDF_HALF_SCALE_FLT) * 30.0;
What I am missing?
Regards,
Vedat