The basic specifications used in XBee configuration using the free X-CTU software are given below.
• Baud rate: 9600
• FC: Hardware
• Data bits: 8
• Parity: None
• Stop Bits: 1
The PAN ID is configured as 2005 for the network to communicate over. The same ID is given to both the router and the coordinator
3.4.3.1.1 ZigBee Coordinator configuration steps
As the X-CTU software is opened, the window shown in fig 3.25 appears. The relevant COM port to which the module is connected, must be selected. In the case of the prototype it is COM port 10. Fig. 3.25 COM port selection
After the COM port is selected, the Test/Query button must be clicked to recognize the connected XBee module. As the query is passed the …show more content…
3.31 Router configuration
The PAN ID settings are configured so that all router devices can communicate with the coordinator device. It is set to 2005 under the personal area network (PAN) ID panel.
Once the needed parameters are set, the configurations can be done by writing the selected program into the XBee router radio. Then the device can be used as a XBee router module. Fig. 3.32 Parameters configuration of ZigBee router
3.4.3.2 Arduino coding
3.4.3.2.1 Remote unit coding Fig. 3.33 Remote sensor coding
The diagram above illustrates the coding statements written using the Arduino programming software. Each code line is described in the fig 3.33. The wireless sensor node uses the above code to efficiently detect the water level and transmit the data to the control unit via ZigBee
3.4.3.2.2 Motor control unit Fig. 3.34 Arduino coding of motor control unit
The coding used by the microcontroller in the motor control unit is depicted in fig 3.34. Each code line is elaborated in the diagram above.
3.5 Final project prototype Fig. 3.35 Final functioning prototype of the remote sensor unit
Fig. 3.36 Final working prototype of the motor control unit Fig. 3.37 Overall automated water pump …show more content…
This is because if the router ZigBee keeps on transmitting, the buffer memory of the coordinator ZigBee gets overloaded. This causes the whole system to jam. To overcome this, the coordinator ZigBee itself will flush the buffer memory completely and restart the receiving process. This introduces a significantly huge delay to the system. To completely overcome this problem, minute delays can be introduced to the system before transmission so that the buffer memory has sufficient time to process the received signal. As seen in the transmitter code in fig 3.33, a delay of one second is introduced after each transmission.
The system prototype is able to provide real time measurements of the water level. Therefore with the lesser communication delay, the response time of the overall system is very less making the system efficient and effective. With the operation of the prototype, it was clearly evident that the system does not require any sort of human interactions. Furthermore it was also evident that the system was able to operate without any shortage or spillage of