Close

Making progress

A project log for CM5 Cybergear and Dynamixel Controller

IMU and Raspberry Pi Compute module 5 controller for Xiaomi CyberGear BLDC motors

hans-jrgen-grimstadHans Jørgen Grimstad 03/27/2025 at 21:470 Comments

After fixing a typo in the pin numbering in the overlay and a newly introduced solder bridge between the int and SCK pin, I can now talk to the cybergear. 

My overlay now looks like this:

[cm5]

dtparam=spi=on
dtoverlay=dwc2,dr_mode=host
dtparam=ant1
dtoverlay=spi0-1cs,cs0_pin=8,sclk_pin=11,miso_pin=9,mosi_pin=10
dtoverlay=gpio-pullup,gpiopin=5
dtoverlay=mcp2515-can0,oscillator=16000000,cs_pin=8,sclk_pin=11,miso_pin=9,mosi_pin=10,interrupt=5

(I have also disabled any configurations that might conflict with my SPI pinout)

My TODO list so far consist of the following items:

I can now start working on testing the IMU :)

Discussions