I apologize if this has already been covered, but I can’t seem to locate any reference(s).
Is there any documentation / example sketch for setting up a second driver? Simple FOC mentions the shields as being “stackable”, but that’s the only reference I’ve seen for a dual driver setup.
I would like to control two brushless motors using a stacked simplefoc shield setup.
I was able to run two motors in the open loop modes without much effort.
Is there any documentation on setting up a second i2c encoder? Normally i’ll just program a new address on the second encoder, and setup a second i2c port like so:
Both constructors can accommodate changing chip address.
What sensor are you using? Most versions of the AS5600 have fixed chip addresses which has lead people to either putting them on second i2c bus or using (slightly worse) MagneticSensorAnalog.cpp