Hi there. I’m hoping someone can help me here because after half a day I’m at my wit’s end with this.
I have been trying to work my way through the beginner’s examples and I am completely stuck.
I have a GBM4108H-120T motor hooked up to a BGC3.1 Arduino-based board, which has a pair of L6234D controllers on it. I’m using an AS5600 magnetic sensor as the position sensor. I believe that the motor has 11 pole pairs, and this value has been entered in the code.
The sensor works fine, giving a correct angle in radians as I rotate the motor.
The motor works fine, because in the open open-loop the motor it rotates freely and slowly and steadily around.
In closed loop mode however the motor either behaves very strangely, trying to move back to it’s starting position but only sort of maybe and sometimes tries to go somewhere else, or sometimes it just goes haywire vibrating all over the place.
I am at the point of tearing my hair out because I can’t make sense of what’s going on. The example notes don’t help much because it’s not clear what behaviour I should expect from the motor in the example. Whatever it is, it’s clear that it’s not what I’m getting.
If anybody has any thoughts I’d be very grateful!!!