Rs485 and arduino mini pro

hi
I want to connect two arduino mini pro via rs 485. All settings and code are as follows. But there is no communication.

master :

int enablePin = 8;  
void setup()
{
  Serial.begin(9600);           
  pinMode(enablePin, OUTPUT);
  delay(10); 
  digitalWrite(enablePin, HIGH);  
}
void loop()
{
    Serial.println(460);      
    delay(3000);
}

Slave :

int enablePin = 8; 
void setup() 
{
  Serial.begin(9600);                   
  pinMode(enablePin, OUTPUT);
  delay(10);
  digitalWrite(enablePin, LOW);        //  (Pin 8 always LOW to receive value from Master)
  
}

void loop() 

{                                                  
  while (Serial.available())                 
     {         
        int pwmval = Serial.parseInt();        
        int convert = map(pwmval,0,1023,0,255);    
        Serial.println(convert);     
        delay(100);
    }
 } 

(Code tags added by Moderator)

Your post was MOVED to a more suitable location.

Could you also review How to get the best out of this forum as it will help you find your way around.

Hi,
So you read the data into the Tx and Rx of the slave.
Then try and send it back out the same Tx and Rx to the IDE monitor? ? ? ?

What baud rate have you got selected in the IDE monitor?

What do you see in the IDE monitor when it looking at the Master Tx Rx?

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

HI
The sender sends the number 460 and I see it on the IDE monitor
I also looped tx and rx on the transmitter side , So Arduino sends but is not received on the Receiver side.
I guess the data is not exchanged between rs485's.

I tried 4800, 9600 and 115200 baud rate but it still did not work.
Thankful

HI
Thankful

are you using the same pins (0&1) as the serial monitor?

where do you expect to see the following output?