2022-02-02 12:47 AM
I keep investigating why I have problems driving my motor with negative speeds.
I captured the phase voltage directly on the motor leads (yellow, cyan and magenta channels) and the current on the DAC output (Ia or Ib) and I noticed this peaks on the current waveform.
Zooming in, the currents themselves don't look bad at all
However I do not understand where does peaks are coming from
Any ideas will be greatly appreciated.
2022-02-03 03:48 AM
Hello,
I'm measuring the current from the DAC output (don't have a current probe available at the moment). I'm connecting the oscilloscope in the middle pin of J7 and its ground lead connected to the test point J8.
2022-02-03 04:40 AM
Look carefully at the board diagram and you will understand that the signal from the DAC does not get to this connector in any way :)
2022-02-07 05:38 AM
Hello,
I used a IHM08/F303Re/Hall Sensor Motor combo in order to display Ia current on PA4 pin (through DAC output), and I don't see difference between positive and negative speed in term of current or behavior.
Looking to the currents, did you check if the peaks are also present in positive speed?
2022-02-10 01:38 AM
Well, after a lot of testing, I want to log my experience here in case it helps somebody else:
While looking for a solution to my problems I stumble upon this thread, he had the same setup as me, it turns that I was measuring just noise (and the PWM). In summary, the IHM08M1 is somehow targeted to be used by the Nucleo F302R8 and the Nucleo F401RE and if you are using something else (like in my case Nucleo F303) you will need to grab the soldering iron and fiddle around with some resistors.
I feel like this statement from the UM1996 User Manual is a bit misleading:
The interconnection between the STM32 Nucleo board and the X-NUCLEO-IHM08M1
expansion board is designed for full-compatibility with a wide range of STM32 Nucleo
boards without any solder bridge modifications, except for the removal of resistor R60 on
the X-NUCLEO-IHM08M1 board if the NUCLEO-F401RE board is used and X-CUBESPN8 firmware is installed.
So, the changes that I had to do in order to get the DAC outputs working correctly and configure the board as a 24V, 3-Shunt, FOC with Hall Sensors were:
On the F303:
On the IHM08M1
With all this changes I was finally able to see the DAC output in my oscilloscope and cycle through the different variables without recompiling.
Unfortunately for me, only the DAC Ch1 seems to be working properly, as I get lots of distortion in Ch2. Here a screenshot of both channels displaying the "measured electrical angle"
But the one channel that works, seems to be working properly
2022-02-10 01:45 AM
Thank a lot for the hint, this really helped me out!
2022-02-10 01:47 AM
I did, the same waveforms were present on both directions, but check my answer below.
2022-02-10 02:16 AM
If this is trapezoidal drive, you appear to be turning on the gate of one of the "off" phases. This may be due to the reverse transfer capacitance which is quite high with all of those MOSFETs in parallel, or possibly you are drawing enough current in your inductive current path on board board to pull down the source with respect to some of the gates.
I would start by reducing the value of the 10K pull down resistor on the gate to 1K and see if this improves your problem - this may work if it is the drain-to-gate capacitance turning the FET on. In any case, measure the gate voltage on the FETs during their off period with respect to the source.
2022-02-10 03:03 AM
I did read that answer too, however I do not believe it applies here, I did some measurements directly at the MOSFETs and all looks peachy, thanks.
2022-02-10 06:21 AM
glad i helped you
2022-02-14 07:25 AM
I got my hands on a current probe today and this is what I got from Phase_U at 3000RPM (scaling: 1mV/10mA)