Home/Support/Support Forum/XBee 3 Connected by SPI to a PIC24
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

XBee 3 Connected by SPI to a PIC24

0 votes
Hello All,

I was wondering if there were any good examples out there on how to connect an XBee 3 to a PIC device over SPI and send and receive commands. I do not own any of the pieces yet as I am in a discovery stage of development in a project.

The plan is to create a proof of concept in which I attach an XBee 3 to the SPI pins of an existing product. This product reads various sensor values over BACnet. I would then transmit these sensor values to a second XBee 3 running a micro python script which will take some action. My issue however is I do not fully understand how to send the data in frames over SPI.
asked Dec 4, 2019 in Embedded Devices by SinCitiesSin New to the Community (4 points)

Please log in or register to answer this question.

2 Answers

0 votes
I am not aware of any examples out side of the manual. Note that the Digi XBee is a 3V device so a level shifter may be required. Also note that the XBee is a SPI slave device. So your PIC would need to be a master device.

Final note to keep in mind is that when using the SPI port, the XBee uses its API interface for all communications between the XBee and the PIC.
answered Dec 4, 2019 by mvut Veteran of the Digi Community (15,320 points)
0 votes
Hi, I know it's been a couple of years since you asked your question but I'm wondering if you've been able to establish communication between the xbee and the pic or you found some examples somewhere. I am working on a similar project and would like to know if it is possible?
answered Jan 14 by joumana New to the Community (3 points)