How to setup Modbus over RS485 between a RPi and STM32 Blue Pill
Started by 4 years ago●1 reply●latest reply 4 years ago●776 viewsFor 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 ●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...