Connecting Motion Sensor directly to XBee Explorer USB

Hi there.

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.

Hoping for kind suggestions

Ensure that the sensor output is a 3.3V logic signal with valid high and low levels.

If the sensor outputs a signal greater than 3.3V then you need to clamp or divide to 3.3V max.

The XBee has digital IO pins. Configure the XBee to have the pin connected to the sensor as a digital input.

Is i2c sensor (3.3V) can connect directly to xbee module…

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.