-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analyze residual noise at zero phase current #89
Comments
The experiment was done using an The debug build can be found in the The used branch can be found in the fork repo The results are similar for both phases The measurements are in On the oscilloscope, we measured the phase currents of the stator terminals < 10mA. Next step is to check the Hall sensor and ADC configurations. |
Check the Hall Effect current sensor connection and datasheet
ACS714 connection (page 5 & 6)On the top array of inputs of the DSPIC33FJ (page 5), the inputs RA0 & RA1 get the IW1 & IU1 signals coming from the current HES ACS714 (page 6). The DSPIC33FJ128MC802 integrates the PWM controller. Its supply voltage is of 3.3V (value used to compute the ADC resolution).
The used Hall effect sensor is the ACS714. The FILT(6) output is set to 47nF. This capacitor seems to be missing in the 2FOC test board used in the tests reported here.
@ale-git How can we check which range is selected? |
Check ADC module configuration
In the 2FOC controller code ( We have to check the values of AVDD and AVSS. @ale-git can you take this action? Register 16-1: ADxCON1: ADCx Control Register 1Register 16-2: ADxCON2: ADCx Control Register 2 |
As far as i can tell, the noise level you experiencing are 'normal' and intrinsic in the technology of the sensor (hes). This kind of noise (as far as it ha a 0 mean value) does not have relevant effect on the torque output but only audible effect. |
Thanks @claudiolorini for the details. Regarding the intrinsic noise...indeed, as a side note, the ACS0714 datasheet(page 6) mentions a sensitivity of 100mV/A and peak-to-peak noise of 11mV for an Optimized Accuracy Range Ip = 20A, which implies a peak-to-peak noise of 100mA.
non zero mean value...@ale-git worked on the improvement of the HES+ADC chain offset and gains calibration but it is done only at startup. So as you advised, we need to implement a periodic calibration or a dynamic compensation that requires the identification of
|
@nunoguedelha Giorgio Zini explained to me that with a sensitivity of 100 mV/A, reduced to 65.8 mV/A by the voltge divider made by R29, R30 and R103 resistors, and 3.3 V power supply, 10 bit converter, the LSB of the converter corresponds to 3.3 V / 1024 = 3.22 mV. Dividing by the sensitivity we obtain the current quantization that corresponds to the LSB: 3.22 mV / 65.8 mV/A = 50 mA of intrinsic error related to the LSB noise. The noise in the plot is reduced by the two subsequent sample filtering. |
Regarding the intrinsic noise...
Ok @ale-git , but I think we shouldn't see such noise in the first place with the filtering of C28 and C29 capacitors.
Ciao @claudiolorini , the capacitors C28 and C29 are actually missing on the test board I'm using. Are we sure they are present in the 2FOC boards on the robot? non zero mean value...@claudiolorini @ale-git , is the module "Dynamic Offset Cancellation" active in the ACS0714 HES (page 3 of the datasheet)? Isn't it enough? |
Boards in revision C does have the caps mounted: Boards in revision F does not have the capacitors mounted: The capacitors introduce a delay in the current control loop (20KHz), and this is definetly BAD. By experimental tests, the internal offset correction is not 100% effective to avoid temperature or |
Ciao @Fabrizio69, can you please confirm that on iCubGenova04 (Greeny) we are using the 2FOC revision F? |
Hi @nunoguedelha, I have just checked w/ @davidetome & @Miche19: |
Thanks @marcoaccame ! Sorry I hadn't update the issue, @Fabrizio69 had also confirmed this. |
As explaned by Giorgio Zini, the Ip current range depends on the model of the ACS714 IC, The one mounted on the 2FOC boards is the |
LLCTR-20A-T |
When we set off all the PWM input signals, i.e. all terminal to terminal voltages are null, we should measure a null current, but instead we get a noisy measurement with a peak to peak amplitude of ~160mA and a quantization of ~20mA.
We need to check if this resolution and noise level is normal with respect to the expected performance of the current sensing module: hardware characteristics and configuration of the hall effect sensor in series with the ADC module.
Next actions
Conclusions
Sensitivity and quantization
Noise filtering
() "3336 . F - 2FOC, IIT - Electronic board with CAN interface, dual driver for brushless motors, power supply 18-48V, 20A full Band width, for iCub, new heatsink"
HES output offset and drift
The text was updated successfully, but these errors were encountered: