Gimbal Motor with Encoder - PWM or SPI output?

Hi all,

I’m planning to use two ROB-27478 gimbal motors as direct-drive wheel motors on a self-balancing robot. Each motor will run closed-loop FOC (SimpleFOC library) on its own SimpleFOCmini driver, powered from a 3S pack. The motor specs suit the application well, but neither the product page nor the datasheet documents the encoder side, so I have some questions before I order.

  1. Which AS5048A outputs are brought out to the encoder connector: SPI (CSn, CLK, MISO, MOSI), PWM, or both? Can you share the connector type, pin count and pinout?
  2. If the supplied cable carries PWM only, are the SPI signals accessible on the encoder PCB, either on pads or an alternate connector?
  3. Is the encoder board configured for a 3.3 V or a 5 V supply?
  4. The datasheet lists the encoder type as “AS5048A/AS5600”. Can you confirm that ROB-27478 always ships with the AS5048A?
  5. Has anyone at SparkFun run this motor closed-loop under FOC? Any notes on magnet alignment, air gap or field strength would help.

I have read in other forums of users of the same encoder (with similar motor - iPower GM3506) reporting PWM fails once the motor is commutating. Their problems disappeared after switching to SPI.

  1. Power, Ground, PWM output (white wire)
  2. This was previously discussed in fair depth here that if you scroll to the photos/diagrams you can see what all is going on
  3. Depends on the manufacturer’s design, not certain…I’d test it in-hand to be sure
  4. It is AS5048A, the thread I posted above has a photo of a disassembled unit
  5. I didn’t find a thread after searching, so I’d say this is somewhat of an unknown

I would note that for your use-case those motors have a fairly small stall torque…I’d make sure 0.15Nm is enough (hopefully a small bot?)