XBee Knowledgeable (S2) module is an XBee ZB ZigBee Mesh Protocol based totally wi-fi transceiver designed by Digi Worldwide with a powerful differ of 1.6 kilometres (one mile) line of sight (for 50mW, U.FL connection) and 90 metres indoors. This machine works on 3.3V DC @ 295mA in transmission mode and has a most info value of 250kbps. The knowledge from the processor to XBee module is transmitted by the use of a serial port.
Raspberry Pi Model 2 is a second-generation Raspberry Pi that was launched in February 2015. It is a Linux based totally laptop computer pc and has a powerful Broadcom BCM2836 ARMv7 900MHz quad-core processor and 1GB SDRAM. It has a complete of 40 pins, along with 17 pins GPIO along with HDMI, micro SD card slot, Ethernet, USB 2.zero and three.5 audio (out) ports.
Software program program program program
There are pretty just some working functions designed for Raspberry Pi Model 2, nonetheless most usually used are Raspbian (Linux based totally) and Microsoft Dwelling dwelling house home windows 10 IOT Core. In case you’re a newbie to Raspberry Pi Model 2, attempt the hyperlink for info on Raspberry Pi. On this textual content material, the compiler used is Python and OS required on Raspberry Pi is Raspbian.
The target is to ship a character on XBee module and procure it on one completely completely different XBee module. To ship/buy info on XBee, the modules have to be configured, and to do that the software program program program program required is XCTU. XCTU is a free software program program program program designed by Digi Worldwide that allows a client to configure XBee modules. XCTU is probably downloaded from the hyperlink
Circuit and dealing
The climate required are Raspberry Pi Model 2, two XBee modules with Explorer shields and some female-to-female jumper wires.
To configure XBee module, be part of XBee Explorer defend to a laptop computer pc by the use of USB.
Then run the XCTU software program program program program and click on on on on on ‘Add Devices’ icon. The output screenshot of XCTU is confirmed in Fig. 2. Chances are high you may get an ‘Add radio device’ window. Affirm the COM port of the Explorer and set the baud value to 9600, info bits to eight, parity to none and click on on on on on ‘Finish’ as confirmed in Fig. 3. Now click on on on on on ‘XBee Module’ on the left of the Radio Configuration current present show (refer Fig. 5) to configure it. There are three sorts of items in a communication group: coordinator, end machine and Now first, configure XBee as coordinator.
To do that, click on on on on on ‘Update Firmware,’ set it to ‘XBee coordinator AT,’ click on on on on on the most recent firmware obtainable in the marketplace after which click on on on on on ‘Finish.’ Each XBee has two crucial keys, SH and SL, which help in transmission and reception of information. SL is unique to each XBee whereas SH is comparable. The underside view of a typical XBee module is confirmed in fig 5 along with its SL amount as 406F70BEand SH as 0013A200.The coordinator sends the knowledge, so the XBee linked to Raspberry Pi is prepared as coordinator.
End machine receives the knowledge. Appropriate correct proper right here we’ll use Console Mode of X-CTU to view obtained info, subsequently, XBee linked to the laptop computer pc with XCTU have to be set as end machine. Router (kind of repeater)is an elective mode; on this, XBee merely receives after which transmits the an an equivalent info, and so this mode is used to extend the differ of transmitter.To configure XB2 as end machine, repeat the steps achieved for configuring XB1, substitute the firmware and commerce its DH and DL values with the SH and SL values of coordinator XB1, respectively. Now XB1 can transmit info and XB2 should buy it. You probably can see the details of coordinator (XB1) and end machine (XB2) modules in Fig. 6 and Fig. 7, respectively.
You probably can see the details of coordinator (XB1) and end machine (XB2) modules in Fig. 6 and Fig. 7, respectively.