485 module to transmit data serially from one arduino uno to another uno if i connect the the 2 arduino boards directly without using the rs485 module the data is sent and received without a problem but when using the rs485 module the transmission stops here is code Tx code: void setup() { Serial.begin(9600); }
void loop() {
Serial.write(200); Serial.flush(); delay(50);
} Rx code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { Serial.begin(9600); }
void loop(){ if (Serial.available()) // If data has come in from Master { int reply= Serial.read(); // Read the byte delay(10);
lcd.print(reply);
}
}
I can't sea what is the problem i checked every thing wiring and code is so simple I'm just sending one number 200 and want to display it one the rx
please help if any have an idea about this problem thanks any way.