2018-01-26 08:45 AM
Greetings!
After some time experimenting with the STEVAL-SPIN3201 Motorcontroller board, we took it a step further and build our own little PCB with the STSPIN32F0, three power half bridges and an additional Bluetooth chip for external communication (the final goal is the wireless control of two seperate Motors using one joystick).
We pretty much build our board very closely to the schematics of the evaluation board, so that the existing software will run on the custom board just as good as before; the only difference being the shunt resistor values on the three motor phases (2x 0.01 Ohm in parallel instead of 2x 0.02 Ohm in parallel). I adapted the software by altering the 'RSHUNT' value in the 'Power stage parameters.h' from 0.01 to 0.005.
Like stated, the rest of the circuits and components were designed to work exactly like the evaluation board. However, once we connected and tested our PCB, we arrived at a point were none of us knew what to make of the observed behavior: After the STSPIN32F0 was successfully flashed with the software, the Hall sensors and motor cables connected and a supply voltage of 11.1V was given by an external power adapter, a modest speed ramp was set in the software's main-routine and the motor started flinching a few times, before staying still and vibrating fiercly. The power adapter reported that the current limit of 5A was reached and the voltage dropped rapidly, before we disconnected the System from the power source.
Wondering what went wrong, we did a few more tries, until we noticed that after another reset, the STSPIN32F0 did not respond anymore and there were no 3.3V on the VDD pin measurable. Probably having fried one of our Motorcontrollers, we started from scratch and build a new PCB, carefully managing the voltage pins and connections and making sure that no soldering error could occur. We tested the board again without the motor attached, and measured the outputs of the three gate drivers, which behaved exactly like on the evaluation board.
Next step, same results: The motor went crazy, the voltage dropped for a few seconds to about 8V and the chip played dead after a few tries.On a third try, we connected the SW pin to GND and supplied the VDD pin with another external power adapter, hoping that the internal DCDC buck regulator could not cause any harm to itself and the rest of the board, since the internal control should detect this and latch off (as stated in the datasheet under 'External optional 3.3 V supply voltage', page 22). Sadly, we ended with the same result: no running motor and the external 3.3V power source reported a short circuit.
Having used 2 seperate boards and destroyed 3 micro chips, we are know freshly out of ideas and not eager to fry any more hardware. The following questions remained open:
- Why does the controller think he would need 5A and more to rotate a small BLDC motor without any load?
- What exactly is the cause of the chip destruction? - Why do we observe this behaviour when we are using the same exact hard- and software as before with the evaluation board?We would be very glad if someone can help us figure this out soon.Any suggestions or feedback is much appreciated!
So long,Max#steval-spin3201 #stspin32f02018-03-10 12:00 AM
This is my motor:
/external-link.jspa?url=http%3A%2F%2Fwww.iflight-rc.com%2Fipower-motor-gbm8028-90t-brushless-gimbal-motor.html
2018-03-10 12:07 AM
Thats good, now I understand a bit better,
I am looking at the Ti DRV8313 pdf page 10 to understand your circuits
http://www.ti.com/lit/ds/symlink/drv8313.pdf
that's a 3 pole driver for one motor.
does this motor use a commutator ? it has how many windings ?
do you have the spec for that motor? I cant find a pdf..
2018-03-10 01:46 AM
I am looking at the Ti DRV8313 pdf page 10 to understand your circuits
Good,
STSPIN32F0 has similar driver built-in.
does this motor use a commutator ? it has how many windings ?
do you have the spec for that motor? I cant find a pdf..
No it does not have commutator. I could not find any specs myself, all I have is what they say on the page:
Copper wire (OD):0.27mm Pre-wound with 90 turns.
Internal Resistance:7.5 ohms
2018-03-10 03:50 PM
try to implement the circuit I gave you
2018-03-11 03:57 AM
TJ, I will do! Thanks for all your help, you are the champion
2018-04-02 05:20 PM
did it work ?