HMBGC V2.2 example
To use HMBGC controller for vector control (FOC) you need to connect motor to one of the motor terminals and connect the encoder to the analog pins. Following pictures show the schematic of the HMBGC board necessary connections and the one real example of the connection.
Pinout restrictionHMBGC doesn't have access to the Arduino's external interrupt pins
3, moreover the only pins we have access to are analog pins
A0-A7. Therefore we need to read the encoder channels using the software interrupt library, please check the encoder code implementation for more information.
Please see the HMBGC code example (
HMBGC_example.ino) to test all the functionalities.
- Encoder channels
Bare connected to the pins
- Optionally if your encoder has
indexsignal you can connect it to any available pin, figure shows pin
- Motor phases
care connected directly to the driver outputs
- Motor terminal
M1uses Arduino pins
HMBGC board doesn't support magnetic sensors because it doesn't have necessary SPI infrastructure.