How can I connect an Xbee to an absolute encoder using SPI bus?


Recently, I would like to connect an XBee to an absolute encoder (AMT-20) which uses SPI bus.
According to the XBee manual, Xbees (S2C, S6, S8) only support SPI slave mode, but I want to make the XBee to be a SPI master to offer clock signal, MISO, MOSI, and SS signals so that the XBee and the encoder combination will send the encoder position information to another Arduino or computer.

Is it possible or not?

In that case, just make a port to generate clock signal, two ports to be a digital input or output for MISO and MOSI, last port to be a digital output for selecting the slave SPI which is the encoder.

Am I right?



1 Like