Hello!
I'm looking for some clarity on the MKR RS485 shield. The documentation is sparse, and the only example I can find on the web (while helpful) doesn't go into the detail I'd like.
First, there is some ambiguity over the pins. The RS485 shield Getting Started page describes the following pin assignment:
A4 RE
A5 DE
13 RX
14 TX
However the official Arduino RS485 library has the following defaults (described on the Set Pins function description):
By default the library uses pin 14 for TX, pin A6 for drive output enable, and pin A5 for receiver output enable.
On the shield schematic A5 looks to be RE and A6 looks to be DE, so that concurs with the library, but not the product getting started page.
Can anyone confirm this for me?
Next, the Maxim datasheet suggests that RE should be LOW to receive, and DE should be HIGH. (So I could use a single pin on the micro, if the shield didn't force me to use two.) Am I reading that correctly?
I actually want to use a different library - ModbusMaster - as I have some code I previously wrote that works with it (I'm trying to adapt my code from uno + DFRobot shield to MKR format), so I'd just like some confirmation on this before I get confused and implode as I need to set the RE and DE pins and states for the library to work.
Many thanks in advance for your help!
If there are errors in the getting started page (as I suspect), how can I get it updated? I don't have an option to edit the page.