How to save data from a STM32F411RE to a Raspberry


In my current project I want to save sensor data in a .txt file on a RaspberryPi.

The sensors are connected to my ST f411RE which reads them.
Actually the data are stored in a .txt file on an SD card, which works well.
But now I want to save the data on the Raspberry to process it further.

Unfortunately I don’t know which libraries or commands I need.
Can anyone help?


Look into connecting your microcontroller to the Rapsberry Pi using a protocol such as I2C, SPI or UART. This will allow you to send data to the Raspberry Pi using a wired connection. If you want to use a wireless protocol then you’ll need additional hardware.