Question
B-G431B-ESC1 overcurrent issue when using quadrature encoder
- January 28, 2025
- 4 replies
- 2250 views
Hello everyone,
I am encountering an over-current issue with the B-G431B-ESC1 when attempting to use position control with a quadrature encoder. Here's what I've done so far:
Steps I Have Taken:
Motor Profiler:
- I uploaded the Motor Profiler firmware and ran the profiler to obtain the motor parameters. The parameters from the profiler are as follows:
Motor Parameters:
- Hardware Family: MOTOR
- Label: BDUAV C4250
- Description: BDUAV C4250 560Kv
- Pole Pairs: 7
- Nominal Current: 40 A
- Nominal DC Voltage: 24 V
- Stator Resistance (Rs): 0.1 Ω
- Stator Inductance (Ls): 0.02 H
- Magnetic Structure: Surface Mount Permanent Magnet Synchronous Motor (SM-PMSM)
- Back EMF Constant (BEmf): 1.53 V·s/rad
- Inertia: 4.44 (unit depends on context, often kg·m² or g·cm²)
- Friction: 3.63 (unit depends on context)
- Max Rated Speed: 6020 RPM
Quadrature Encoder Details:
- Pulses Per Mechanical Revolution: 2048
- Index Pin: Present
Compatibility:
- FOC (Field Oriented Control)
- SixStep Control
Motor ID: BDUAV C4250
MC Workbench Configuration:
- I created a new project in Motor Control Workbench for position control using a quadrature encoder.
- I ensured the encoder configuration matched the profiler parameters:
- Pole pairs: 7
- Encoder PPR: 2048
- Alignment with Index Pin: Enabled
- I generated the code in CubeMX and uploaded the new firmware to the board.
Testing in Motor Pilot:
- When I open Motor Pilot and start position control, the controller goes into alignment for a brief moment, but I immediately get an over-current error.
Observations and Questions:
- Could the issue be related to the current sensing setup (e.g., shunt resistors or calibration)?
- Could the encoder count direction or alignment procedure be incorrect, causing the motor to draw excessive current during startup?
- Is there anything else I should check or configure in the Workbench or CubeMX.
I have also attached a video showing the issue. the encoder speed graphs shows data when i move the motors manually .
