I need to connect a motion sensor (PIR sensor) directly to XBee Explorer USB (https://www.sparkfun.com/products/8687), so that when motion is detected i can send the information using ZigBee to my other ZigBee module connected to PC.
gumush:
Is i2c sensor (3.3V) can connect directly to xbee module…
As to the 3.3v level these are compatible.
However, the XBee does not have any feature to operate the I2C protocol or have open-collect (open-drain outputs).
This is a requirement of the bi-directional I2C lines. Each device (Master or Slaves) can only drive the line to a logic low. When not driven a pull-up resistor creates a logic high signal.
The typical method is to put a processor (ATmega, PIC, etc) between the XBee and the I2C sensors. The processor reads the sensors on the I2C buss then sends the data out the UART port to the XBee.