how many SPI or alternative devices with STM32F103C8T6
Posted: Wed Jul 08, 2020 9:26 pm
I prototyping a project using multiple magnetic sensors that either use SPI, SSI, I2c..encoded PWM or quadrature output..that's a mouthful.
Trade offs with this project are simply cost, I need a lot of sensors (hundreds)
The cheaper of the sensors such as the as5600 or as5200l have i2c but they are not that ideal as the as5600 had some dead banding and the a5200l has either i2c or the encoded PWM.
with some effort I could get the encoded PWM output but I am suspicious of the noise(as I am with the i2c). The SSI from an as5040 works fine and I also have some as5048s and as5047 that can do quad a, b and I outputs. The as5048 and as5047u are not cheap though at 10 euros a pop
If i went with say the as5047D then I can get the price down a little, but as far as my knowledge leads me to believe this would require 3 separate SPI channels on the blue pill or am I mistaken?
my aim is using the blue pill along with an esp32 spi master to also handle the communication.
Thoughts? Anyone have any other suggestion for other magnetic encoders that might do the job for FOC that could work with the blue pill?
Here are some of the datasheet links in case its an interesting subject
https://ams.com/documents/20143/36005/A ... 6245475079
https://ams.com/documents/20143/36005/A ... f52c962099
and some other lists of the AMS sensors
https://ams.com/angle-position-on-axis
Trade offs with this project are simply cost, I need a lot of sensors (hundreds)
The cheaper of the sensors such as the as5600 or as5200l have i2c but they are not that ideal as the as5600 had some dead banding and the a5200l has either i2c or the encoded PWM.
with some effort I could get the encoded PWM output but I am suspicious of the noise(as I am with the i2c). The SSI from an as5040 works fine and I also have some as5048s and as5047 that can do quad a, b and I outputs. The as5048 and as5047u are not cheap though at 10 euros a pop
If i went with say the as5047D then I can get the price down a little, but as far as my knowledge leads me to believe this would require 3 separate SPI channels on the blue pill or am I mistaken?
my aim is using the blue pill along with an esp32 spi master to also handle the communication.
Thoughts? Anyone have any other suggestion for other magnetic encoders that might do the job for FOC that could work with the blue pill?
Here are some of the datasheet links in case its an interesting subject
https://ams.com/documents/20143/36005/A ... 6245475079
https://ams.com/documents/20143/36005/A ... f52c962099
and some other lists of the AMS sensors
https://ams.com/angle-position-on-axis