RS485 communication Raspberry Pi 3 B to Teensy4.0

Example programs for RS485 communication between Raspberry Pi 3 B and Teensy4.0
Communication is started by typing a character in the serial monitor of the Arduino software (Setting with no line end).

ASCII Example:
End character = LineFeed \n
Raspberry: A_RS485.py
Teensy: A_RS485_Teensy.ino

Decimal Example:
Communicates a fixed amount of Bytes.
Last two Bytes are usede for CRC16 checksum.
Raspberry: B_RS485.py
Teensy: B_RS485_Teensy.ino


https://github.com/ArminRehberger/RS485-communication-Raspberry-Teensy4.0
 
Added a decimal Example with automatic flow control:

Communication is started automatically.
Communicates a fixed amount of Bytes.
Last two Bytes are usede for CRC16 checksum.
Raspberry: D_RS485.py
Teensy: D_RS485_Teensy.ino
Example D: Reached baudrate 500000 bits/s, 0.0002% error
 
Back
Top