cancel
Showing results for 
Search instead for 
Did you mean: 

[URGENT] Use of a Quad Differential Tx/Rx for transmitting (SPI) MEMS sensor data over <3m distance to STM32G4

Chubs
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Chief II

about 3 m at 6KB/s - most simple: RS232 , at 115Kbit ; screened cable;

perfect : RS485 , symm. pair screened cable , 100% data safety.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3
S.Ma
Principal

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.

AScha.3
Chief II

about 3 m at 6KB/s - most simple: RS232 , at 115Kbit ; screened cable;

perfect : RS485 , symm. pair screened cable , 100% data safety.

If you feel a post has answered your question, please click "Accept as Solution".
Chubs
Senior

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.