EmbeddedRelated.com
Forums
Jacob Beningo
Live online course · Jacob Beningo
AI for Embedded Developers
$100 off for EmbeddedRelated readers until Dec 6 · 5 live sessions, Dec 7-11
Discount ends in
26days 03hrs 52min 06sec
Learn More →

How to setup Modbus over RS485 between a RPi and STM32 Blue Pill

Started by dannychris37 6 years ago●1 reply●latest reply 6 years ago●957 views
For RaspberryPi I found this: https://github.com/stephane/libmodbus but I'm trying to understand how I can implement a modbus RTU via U(S)ART for STM32 blue pill. At the moment I have no STM32 programming interface for PC. I'm currently able to program the blue pill via Arduino IDE running on RPi.


RPi should be master and blue pill slave. Ultimately, the RPi should be able to pole the blue pill for certain information gathered from sensors connected to the blue pill.

[ - ]
Reply by jmford94●February 10, 2021

There are a number of modbus slave libraries for Arduino on github.  I haven't used them, but I'd start there...