MoBoStamp-pe BS2pe Motherboard and transceiver communication problem
@rere
Posts: 7
Hi,
I am recently working on an device which will be able to detect the change of movements. When someone move within 10m, the device will start its effect, and for each 2m he/she get nearer, the device will be able to sense it and give response.
Currently I have a controller board (MoBoStamp-pe BS2pe Motherboard (#28300)) and a transceiver (TR24). As the transceiver is of SPI interface, which is quite different from the Motherboard.Does anybody know how the two communicate so that I can have the Motherboard controlling the sensors?
If not, could anyone suggest me what to use so as to do the above function I mentioned? And how?
Please help as this is quite urgent and I am completely new to all these.
Thank you,
rere
I am recently working on an device which will be able to detect the change of movements. When someone move within 10m, the device will start its effect, and for each 2m he/she get nearer, the device will be able to sense it and give response.
Currently I have a controller board (MoBoStamp-pe BS2pe Motherboard (#28300)) and a transceiver (TR24). As the transceiver is of SPI interface, which is quite different from the Motherboard.Does anybody know how the two communicate so that I can have the Motherboard controlling the sensors?
If not, could anyone suggest me what to use so as to do the above function I mentioned? And how?
Please help as this is quite urgent and I am completely new to all these.
Thank you,
rere
Comments
Welcome to the forum!
You can use the BS2pe's SHIFTIN and SHIFTOUT commands to communicate with SPI devices. Can you post a link to the TR24 transceiver that you're using?
-Phil
Attached is the info. about the transceiver TR24, I am sorry it is in Chinese, as I bought it from China and they don't have an English version. I found a similar one on web, with English, yet, the sensitivity seems a bit different and the function names are different.
http://wenku.baidu.com/view/df45b5ea856a561252d36f60.html
rere
Good luck!
-Phil
Thank you!
rere
-Phil
Once again thank you very much!
rere
Any pin except A0/A1/B0/B1 will do for these. If any of the transceiver's outputs are open-collector, you will want to pick a pin that's pulled up on the MoBo. And, again, use a Proto-DB for the interface, as opposed to poking wires into the daughterboard socket, which could damage it.
-Phil
rere
-Phil