I’m wiring up my SimpleFOCShield to an ESP32. I am trying to work out which pins I need to connect up to the ESP32 using the SimpleFOCShield and the soldering pads guide (the forum won’t let me link to it).
It talks about an encoder however is it possible to just use a hall sensor (I have an AS5047P) directly connected to the ESP32 using SPI?
Yes. You can use the AS5047P in SPI mode, it will work well. Pay attention to the voltage you use - for the ESP32 you should operate the sensor in 3.3V mode.
Note that this type is sensor is what we call a “magnetic encoder”. “Hall Sensors” are something else, they are built directly into the motor and are less accurate than the magnetic encoder.
Thanks for the correction. I just discovered that although internally it might have hall sensors in, the only data available externally is magnetic field strength and direction (i.e. rotation).