Turns out the baud rate was wrong and I should have figured that out from the waveform.
I used the automatic baud rate detection feature.
HardwareSerial pump(2);
#define TXD 17
#define RXD 16
char lastByte = 0;
char inByte = 0;
int count = 0;
void setup() {
// initialize both serial ports ...
Search found 3 matches
- Tue Jun 07, 2022 7:53 pm
- Forum: ESP32 Arduino
- Topic: RS485 uart trouble (solved)
- Replies: 3
- Views: 2641
- Mon Jun 06, 2022 7:06 pm
- Forum: ESP32 Arduino
- Topic: RS485 uart trouble (solved)
- Replies: 3
- Views: 2641
Re: RS485 uart trouble
Thanks for replying! It's appreciated.
I made some changes to the code as suggested, but I'm still just getting "0000" zeros.
HardwareSerial pump(2);
#define TXD 17
#define RXD 16
char lastByte = 0;
char inByte = 0;
int count = 0;
void setup() {
// initialize both serial ports:
Serial.begin ...
I made some changes to the code as suggested, but I'm still just getting "0000" zeros.
HardwareSerial pump(2);
#define TXD 17
#define RXD 16
char lastByte = 0;
char inByte = 0;
int count = 0;
void setup() {
// initialize both serial ports:
Serial.begin ...
- Fri Jun 03, 2022 3:50 am
- Forum: ESP32 Arduino
- Topic: RS485 uart trouble (solved)
- Replies: 3
- Views: 2641
RS485 uart trouble (solved)
Hi,
First time working with the ESP32 and interfacing with RS485.
I'm using this shield with a M3485 chip.
https://www.electrodragon.com/product/esp32-can-rs-485-wire-interface-shield/
For now, I'm just trying to receive data over the RS485 interface and echo it to the serial monitor.
#define ...
First time working with the ESP32 and interfacing with RS485.
I'm using this shield with a M3485 chip.
https://www.electrodragon.com/product/esp32-can-rs-485-wire-interface-shield/
For now, I'm just trying to receive data over the RS485 interface and echo it to the serial monitor.
#define ...