XBee Expert (S2) module is an XBee ZB ZigBee Mesh Protocol primarily based wi-fi transceiver designed by Digi Worldwide with an impressive 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 information price of 250kbps. The information from the processor to XBee module is transmitted by means of a serial port.
Raspberry Pi Mannequin 2 is a second-generation Raspberry Pi that was launched in February 2015. It’s a Linux primarily based laptop computer and has a strong Broadcom BCM2836 ARMv7 900MHz quad-core processor and 1GB SDRAM. It has an entire of 40 pins, together with 17 pins GPIO together with HDMI, micro SD card slot, Ethernet, USB 2.zero and three.5 audio (out) ports.
Software program program program
There are fairly just a few working purposes designed for Raspberry Pi Mannequin 2, nonetheless most normally used are Raspbian (Linux primarily based) and Microsoft Dwelling dwelling home windows 10 IOT Core. In case you are a beginner to Raspberry Pi Mannequin 2, try the link for information on Raspberry Pi. On this textual content, the compiler used is Python and OS required on Raspberry Pi is Raspbian.
The objective is to ship a personality on XBee module and procure it on one totally different XBee module. To ship/purchase information on XBee, the modules must be configured, and to try this the software program program program required is XCTU. XCTU is a free software program program program designed by Digi Worldwide that permits a consumer to configure XBee modules. XCTU is perhaps downloaded from the link
Circuit and dealing
The weather required are Raspberry Pi Mannequin 2, two XBee modules with Explorer shields and a few female-to-female jumper wires.
To configure XBee module, be a part of XBee Explorer defend to a laptop computer by means of USB.
Then run the XCTU software program program program and click on on on on ‘Add Devices’ icon. The output screenshot of XCTU is confirmed in Fig. 2. Chances are you’ll get an ‘Add radio device’ window. Affirm the COM port of the Explorer and set the baud price to 9600, information bits to eight, parity to none and click on on on on ‘Finish’ as confirmed in Fig. 3. Now click on on on on ‘XBee Module’ on the left of the Radio Configuration present show display (refer Fig. 5) to configure it. There are three kinds of units in a communication group: coordinator, finish machine and Now first, configure XBee as coordinator.
To do this, click on on on on ‘Update Firmware,’ set it to ‘XBee coordinator AT,’ click on on on on the newest firmware available on the market after which click on on on on ‘Finish.’ Every XBee has two very important keys, SH and SL, which assist in transmission and reception of knowledge. SL is exclusive to every XBee whereas SH is comparable. The underside view of a typical XBee module is confirmed in fig 5 together with its SL quantity as 406F70BEand SH as 0013A200.The coordinator sends the information, so the XBee linked to Raspberry Pi is ready as coordinator.
Finish machine receives the information. Correct proper right here we’ll use Console Mode of X-CTU to view obtained information, subsequently, XBee linked to the laptop computer with XCTU must be set as finish machine. Router (type of repeater)is an elective mode; on this, XBee merely receives after which transmits the an an identical information, and so this mode is used to increase the differ of transmitter.To configure XB2 as finish machine, repeat the steps accomplished 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 information and XB2 can purchase it. You most likely can see the main points of coordinator (XB1) and finish machine (XB2) modules in Fig. 6 and Fig. 7, respectively.
You most likely can see the main points of coordinator (XB1) and finish machine (XB2) modules in Fig. 6 and Fig. 7, respectively.