2023-05-31 07:29 PM
Hello Community!
We are building a Condition monitoring platform, and need to interface a MEMS based Accelerometer with the STM32G4 at a distance of 3M. I would like to know if someone has had first-hand experience using Quad Differential Drivers & Receivers for transmitting the SPI over Differential line & then interfacing the TTL with STM32.
Also feel free to suggest to me any alternative approach for transmitting SPI over a distance of 2-3m. Data rates are low (6KB/s) & one way from the sensor to the MCU. We can invest in good quality cables (Shielded & twisted pairs)
Quad Differential Drivers & Reveicers I am considering are:
Driver: 4/0 AM26LS31
Receiver: 0/4 AM26LS32
Regards
Solved! Go to Solution.
2023-06-03 11:45 AM
about 3 m at 6KB/s - most simple: RS232 , at 115Kbit ; screened cable;
perfect : RS485 , symm. pair screened cable , 100% data safety.
2023-06-03 10:23 AM
Sensor plus battery plus small stm32 plus hc-06 for uart to bluetooth 115200 bps will work 3 meters, even in a THB oven.... wireless pod is easier than wired. Remember 200 ps per inch: sampling master clock with far incoming data will have a limit. You can also use rs485 with 2 mcu on each end, you can use click board for thid setup, if it is only prototyping.
2023-06-03 11:45 AM
about 3 m at 6KB/s - most simple: RS232 , at 115Kbit ; screened cable;
perfect : RS485 , symm. pair screened cable , 100% data safety.
2023-07-28 10:14 PM - edited 2023-07-28 10:17 PM
Thank you for the Feedback.
RS-422 & RS-485 are indeed low-cost high-performance solutions to improve the SPI transmission over long distances. When using SPI over 5m distance, aim to keep the clock frequency as low as possible for your use case. Above 10m, the clock frequency is limited to around a few hundred kHz (a rule of thumb, need to check this for your application setup with Oscilloscope)
Any new comer can follow this link for detailed discussion from TI E2E Forum on Low-Cost Solutions for SPI Over Long Distances.
We have identified AM26C31 & AM26C32 Differential Drivers & Receivers from TI within USD2 for 8 Differential channels per side making remote implementation of IIS3DWB sensor possible in harsh industrial environment,
Regards.