XBEE + 3 ARDUINOS LIB SOFTSERIAL

Good afternoon guys,

I have a question about SoftSerial lib that simulates a serial port pins of the Arduino.

The XBEE is connected to the TX-RX of Arduino, but the idea is to connect 2 or 3 with only one Arduino XBEE.

I want to know if it is possible to connect this way, one XBEE to the arduino tx-rx and the other (s) to the Arduino tx-rx simulated by SoftSerial lib.

An arduino will IR functions, and the second dimmer, the third one would doubt even they could connect Arduino or even using the lib in Arduino over further expanding the tree.

Yes, you can use SoftwareSerial to communicate with an XBee.

Only one instance of SoftwareSerial can be listening at a time. Data that arrives for the non-listening instances, if you have more than one, will be discarded.

Okay, so only 2 Arduino can communicate with softserial lib while connect to the xbee tx-rx.

Can I use one arduino to receive IR signals and the other for a dimmer of two channels (Fan and Lamp) and the XBEE to be the central coordinator?

Okay, so only 2 Arduino can communicate with softserial lib while connect to the xbee tx-rx.

If the XBee is connected to the hardware serial port, this is true.

Get a Mega, with 4 hardware serial ports, and forget about SoftwareSerial.

Thank you for helping me, I will use the Arduino Mega, but it was very good to learn about SoftSerial lib. :slight_smile: :slight_smile: :slight_smile: