sdobbie
100 W
Didn't notice your tutorial video, I followed that and everything compiled just fine.
BLDC mode is able to spin up motors no problem but I can't get foc detection to work.
I am using a 36v hoverboard motor and foc detection results in mostly squealing noises and very little current being drawn from the battery. I am using a 6s lithium ion battery currently. I think it may be something to do with the current sense amplifiers being saturated because I am using 0.002 ohm sense resistors rather than the three 0.0005 ohm resistors in parallel in the 75 300 circuit diagram. I noticed that in the hwconf there is a current amplifier gain setting and I never changed this. Notice how I have changed the resistance value to match the sense resistors I'm using. I put the motor under load in bldc mode with my hand while looking at the current drawn in the realtime data view and it matches up exactly with the ammeter I have attached to the battery so current sensing seems to work just fine.
#ifndef CURRENT_AMP_GAIN
#define CURRENT_AMP_GAIN 20.0
#endif
#ifndef CURRENT_SHUNT_RES
#define CURRENT_SHUNT_RES (0.002)
#endif
[youtube]https://youtu.be/cr3fe2GD4bQ[/youtube]
BLDC mode is able to spin up motors no problem but I can't get foc detection to work.
I am using a 36v hoverboard motor and foc detection results in mostly squealing noises and very little current being drawn from the battery. I am using a 6s lithium ion battery currently. I think it may be something to do with the current sense amplifiers being saturated because I am using 0.002 ohm sense resistors rather than the three 0.0005 ohm resistors in parallel in the 75 300 circuit diagram. I noticed that in the hwconf there is a current amplifier gain setting and I never changed this. Notice how I have changed the resistance value to match the sense resistors I'm using. I put the motor under load in bldc mode with my hand while looking at the current drawn in the realtime data view and it matches up exactly with the ammeter I have attached to the battery so current sensing seems to work just fine.
#ifndef CURRENT_AMP_GAIN
#define CURRENT_AMP_GAIN 20.0
#endif
#ifndef CURRENT_SHUNT_RES
#define CURRENT_SHUNT_RES (0.002)
#endif
[youtube]https://youtu.be/cr3fe2GD4bQ[/youtube]