Arduino IO Expansion V5 RS485 Problem

Post Reply
tempUser
Posts: 3
Joined: Fri Mar 23, 2012 3:13 pm

Arduino IO Expansion V5 RS485 Problem

Post by tempUser » Sat Mar 24, 2012 1:06 am

Hello!
I bought this board and tested to work with RS485 port.
The data is successfully sent by the board, but it can not receive data!
The second pin is set to LOW (digitalWrite(2, LOW);).
I measured the voltage between the following contact of SP485 chip (see attached image):
- Vcc <-> GND = 5.14V
- DI <-> GND = 5.14V
- A <-> B = 1.8-2.5V (changes when receiving data)
- DE <-> GND = 0V
- RE <-> GND = 0V
- RO <-> GND = 0V

Why RO pin is zero and Serial.read() is nothing too?
Thank you very much!

Best regards,
Alexander

P.S. Datasheet of SP485: http://www.datasheetcatalog.org/datashe ... P481CN.pdf
Image
Image

User avatar
jack
Posts: 77
Joined: Sat Mar 03, 2012 2:25 pm

Re: Arduino IO Expansion V5 RS485 Problem

Post by jack » Sat Mar 24, 2012 4:55 pm

Hi there,
Could you provide us your wiring diagram to let us know about details?

Best regards
Jack

tempUser
Posts: 3
Joined: Fri Mar 23, 2012 3:13 pm

Re: Arduino IO Expansion V5 RS485 Problem

Post by tempUser » Sat Mar 24, 2012 9:00 pm

jack wrote:Hi there,
Could you provide us your wiring diagram to let us know about details?

Best regards
Jack
I attached photo with connection. Thanks.
Attachments
io_expansionv5_sheme.jpg
io_expansionv5_sheme.jpg (63.04 KiB) Viewed 27501 times
io_expansionv5.jpg
io_expansionv5.jpg (126.55 KiB) Viewed 27501 times

User avatar
jack
Posts: 77
Joined: Sat Mar 03, 2012 2:25 pm

Re: Arduino IO Expansion V5 RS485 Problem

Post by jack » Mon Mar 26, 2012 1:58 pm

I have tested the receiving and sending function with RS485 port on V5 IO shield,it works well.
Please kindly use the following demo code and checking your wiring.

RS485 Receiving:
- Vcc <-> GND = 3.28V
- DI <-> GND = 3.28V
- A <-> GND = 3.00V
- B <-> GND = 1.57V
- DE <-> GND = 0V
- RE <-> GND = 0V
- RO <-> GND = 3.28V


SAMPLE CODE
RS485 Transmit Data

Code: Select all

//RS485 has a enable/disable pin to transmit or receive data. 
//Arduino Digital Pin 2 = Rx/Tx 'Enable'; High to Transmit, Low to Receive
int EN = 2; 
 
void setup() 
{
  pinMode(EN, OUTPUT);
  Serial.begin(19200);
} 
 
void loop()
{
// send data 
  digitalWrite(EN, HIGH);//Enable data transmit
  Serial.print('A');
  delay(1000);
}


RS485 Receiving Data

Code: Select all

int ledPin = 13;// Light up Led when receiving data
int EN = 2;
int val;
 
void setup() 
{
  pinMode(ledPin, OUTPUT);
  pinMode(EN, OUTPUT);
  Serial.begin(19200);
}
 
void loop()
{
  // receive data
 digitalWrite(EN, LOW);//Enable Receiving Data
 val = Serial.read();
  if (-1 != val) {
    if ('A' == val) {
      digitalWrite(ledPin, HIGH);
      delay(500);
      digitalWrite(ledPin, LOW);
      delay(500);
    }
 }
}

tempUser
Posts: 3
Joined: Fri Mar 23, 2012 3:13 pm

Re: Arduino IO Expansion V5 RS485 Problem

Post by tempUser » Mon Mar 26, 2012 9:33 pm

jack wrote: RS485 Receiving:
- Vcc <-> GND = 3.28V
- DI <-> GND = 3.28V
- A <-> GND = 3.00V
- B <-> GND = 1.57V
- DE <-> GND = 0V
- RE <-> GND = 0V
- RO <-> GND = 3.28V
I have the same results:
- Vcc <-> GND = 5.14V
- DI <-> GND = 5.14V
- A <-> B = 1.8-2.5V (changes when receiving data)
- DE <-> GND = 0V
- RE <-> GND = 0V
- RO <-> GND = 0V
except that:
- RO <-> GND = 0V

What does this mean? I think that it is not working properly SP485. What do you think about this?
Thanks!

adolfainsley8
Posts: 1
Joined: Mon Apr 25, 2016 6:07 pm

Re: Arduino IO Expansion V5 RS485 Problem

Post by adolfainsley8 » Mon Apr 25, 2016 6:09 pm

What does this mean? I think that it is not working properly SP485. What do you think about this???
=== Solitaire ===

Post Reply