2021-03-21 11:32 AM
Hi,
I want to use accelerometer using stm32f4 mcu with SPI protocol.
The range is between 1 and 2 meters. Is this work good ?
Thanks...
2021-03-21 5:08 PM
SPI over 2 meters? No way, without extender
-- pa
2021-03-21 9:16 PM
Technically you may do that but it will not be a trivial task.
The maximum possible length of SPI line at a specific clock frequency is limited by the phase delay between CLK and MISO seen by the master.
Line driver may be required. Typical issues of a long transmission need to be taken care: impedance matching, inductive noise, etc.
2021-03-22 1:59 AM
As mentioned, for high speed, you would need impedance-matched lines and transceivers.
However, most accelerometers have a relatively low bandwidth, I guess 1ksps or less would do for your purpose.
You can reduce the SPI clock frequency, to ease the line requirement.
About 100 ... 200kHz should suffice.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.