Jump to content


Photo

RS485 Shield for Arduino


  • Please log in to reply
9 replies to this topic

#1 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 04 April 2014 - 03:09 AM

The RS485 Shield for Arduino has not been identified with the letter A & B to make the connection. 



#2 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 04 April 2014 - 03:20 AM

The version 2 will have the mark. A of this board is outside, the other is B.



#3 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 04 April 2014 - 09:11 AM

RS485 interface

 

 

 

 


#4 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 18 April 2014 - 01:21 AM

The incorporation of rs485 shield is to connect two arduinos UNO using it in long distance as master/slave configuration. 
The first question is if definitively the shields can be used for this application?
The second one is if I need two shields, one on each arduino UNO to transfer the inputs/outputs data through two cables connection? This question was made to buy another shield asap. 
Third question is what cable do you recommend to make the connection between rs485 shields?
If you have any additional recommendation for this application does not hesitate in send it. 



#5 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 18 April 2014 - 02:26 AM

We haven't try this application. The RS485 Shield is a level shifter , it add an RS485 port to your Arduino.



#6 Guest_Marcos_*

Guest_Marcos_*
  • Guests

Posted 18 April 2014 - 03:33 AM

Seeing in your learning center I found this tutorial, http://learn.linkspr...-v2-on-arduino/

It seems similar.

In the tutorial appears a rs485 v2, but is not available to buy it.

Let me know.

Blessings!

 


#7 Guest_Marcos_*

Guest_Marcos_*
  • Guests

Posted 22 April 2014 - 01:06 PM

Seeing in your learning center I found this tutorial, http://learn.linkspr...-v2-on-arduino/

It seems similar.

In the tutorial appears a rs485 v2, but is not available to buy it.

Let me know.

Blessings!

Please do not forget me... I'm wating for you to know about the tutorial and the version 2 of the rs485 shield to buy another arduino and another rs485 shield to combine it or buy 1 UNO with 2 new v2 shields of the rs485. 

 

Please tel me know.

 

Blessings!



#8 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 12 May 2014 - 09:06 AM

I used RS485 shield to communicate for Arduino.

 

RS485 connection

 

RS485 communication

 

Code for the transmitter:

 

 

void setup() {
  Serial.begin(9600);
}
 
void loop() {
  Serial.println ("hello Linksprite!");
  delay(1000);
}
 
 
Code for the receiver:
 
String mydata = "";
 
void setup()
{
    Serial.begin(9600);
}
 
void loop()
{
    while (Serial.available() > 0)  
    {
        mydata += char(Serial.read());
        delay(2);
    }
    if (mydata.length() > 0)
    {
        Serial.print(mydata);
        mydata = "";
    }
}


#9 Guest_Marcos_*

Guest_Marcos_*
  • Guests

Posted 20 May 2014 - 12:48 PM

Hi, 
 
How can I receive multiple inputs in the receiver from multiple sensors in the transmitter. 
I don't know how to do that. 

PLEASE HELP!

 

Thanks, blessings!

 

M. Soto Cora, PE, ME



#10 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 22 May 2014 - 02:02 AM

Hi, 
 
How can I receive multiple inputs in the receiver from multiple sensors in the transmitter. 
I don't know how to do that. 

PLEASE HELP!

 

Thanks, blessings!

 

M. Soto Cora, PE, ME

You can just revise the Code for the transmitter. For example:

 

int sensorPin1 = 0;
int sensorPin2 = 1;
 
void setup() {
  Serial.begin(9600);
}
 
void loop() {
  Serial.print("sensor1:");
  Serial.println (analogRead(sensorPin1));
  Serial.print("sensor2:");
  Serial.println (analogRead(sensorPin2));
  delay(1000);
}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users