Posts: 291
Threads: 234
Joined: Jan 2021
04-25-2022, 08:55 AM
[Arduino IDE demo source code for KC868-A6]--#09-RS485_code
Code:
void setup(){
Serial2.begin(9600);
}
void loop() {
Serial2.println("KinCony");
}
9.RS485.zip (Size: 469.3 KB / Downloads: 422)
Posts: 7
Threads: 1
Joined: Feb 2023
Reputation:
0
Hello,
I've looked at the A6 schematic and it doesn't seem the DE/RE pins of the RS485 chip ( MAX13487E) are connected to the ESP32.
Does this mean the A6 can only transmit RS485, or am I missing something obvious?
Thanks in advance,
alex
Posts: 6,263
Threads: 806
Joined: Oct 2020
Reputation:
151
DE/RE not need to use, MAX13487 will auto control the signal direction. for ESP32 just use RXD,TXD pins is ok.
Posts: 6,263
Threads: 806
Joined: Oct 2020
Reputation:
151
DE/RE pin just connect together with 10k resistance to Vcc is ok.
Posts: 6,263
Threads: 806
Joined: Oct 2020
Reputation:
151
ok, only serial port and IIC bus SDA and SCL pins need set by arduino config file firstly.
Posts: 2
Threads: 0
Joined: Aug 2024
Reputation:
0
08-18-2024, 07:37 PM
(This post was last modified: 08-18-2024, 07:39 PM by alexandre bassi.)
The RS485 code you posted is empty, the compressed file contains an empty .ino