Forum >ARDUINO with DFR0088 :Use of Xbee and RS-485 comms (not concurrent)
ArduinoGeneral

ARDUINO with DFR0088 :Use of Xbee and RS-485 comms (not concurrent)

userHead massimo.marcon 2011-08-21 23:58:07 8956 Views8 Replies
Hello all,
I want to use Arduino UNO with DFR0088 on top.
Can I read using RS-485 from a device connected to DFR0088 then send a text message using Xbee PRO mounted on top of DFR0088?

Regards

Massimo
2011-08-29 18:17:44 Hi Massimo,

I could not find a picture that correlates with the schematic.

I recommend you set the jumpers to APC and jumper the pins next to 4 and 5 to digital pins. Pin next to 4 is Rx and 5 is Tx. This will make RS-485 communicate via software serial.

Hector
userHeadPic Hector
2011-08-24 22:29:59 Hi Hector,
I already saw the picture you sent me, it is good but is not having the same ID given to the connectors in the schematic.Can you provide me this info, it is only to make sure avoiding mistakes when making connections.

thanks

Massimo
userHeadPic massimo.marcon
2011-08-24 18:20:51 Hi Massimo,

Have you seen the DFR0088 Wiki? there is a good picture of the product there. I'm not sure what you mean by the component view. If the pictures in the wiki are not enough please let me know, I will try to search for what you are asking.

[URL=https://www.dfrobot.com/wiki/index.php?title=IO_Expansion_Shield_For_Arduino(V5)_(SKU:_DFR0088)] DFR0088 Wiki [/URL]

Hector
userHeadPic Hector
2011-08-23 23:41:22 Hi Hector, you are quite right : using a couple of jumpers is better.
Just one more info, do you have available the component view of DFR0088 to perform cross checks with its schematic?
userHeadPic massimo.marcon
2011-08-23 17:57:33 Hi Massimo,

You are correct. when the RS-485 jumper is set the Xbee Tx/Rx is not connected. You do not need to solder the pins. You can simply jumper from the jumper post to the digital pins.
userHeadPic Hector
2011-08-23 12:19:53 Hello Hector,
From your reply I understand that if I set the jumpers on DFR0088 for RS-485 the serial port of Xbee will not be connected to the HW serial port TX/RX of Arduino, do you confirm?
In this case your idea of using the software serial port for the Xbee-Arduino connection looks great but I should solder two wires between two digital pins on arduino and the two pins of the serial port of Xbee.Is that right?

Thanks for your help

Massimo
userHeadPic massimo.marcon
2011-08-22 23:13:47 There is another possiblity.


You can use the software serial port with 2 digital pins to control the RS485

http://www.arduino.cc/en/Tutorial/SoftwareSerial
userHeadPic Hector
2011-08-22 23:11:23 Hi Massimo,

It's not possible to use an UNO and the IO expansion shield to use BOTH the Xbee and RS485 at the SAME time.

But if you have some working knowledge of switching ICs you may be able to make a breadboarded (or PCB if you have the tools) switch. This switch should control the jumpers on the IO expansion board to switch between RS485 and Xbee. Since they both use the same Tx/Rx pins on the arduino.

So it is possible to Rx/Tx on one then switch and Rx/Tx on the other.

Hector
userHeadPic Hector