Skip to main content

Remote sensor Sensing with X-bee module.

Aruino board with Remote Sensing using X-bee module.

1.Project summary: - 

 In this project we gonna interface a temperature sensor and a simple digital switch sensor which  would be read by router X-Bee module and data of both sensor would be send in API mode to    coordinator.
 This project can be made with few simple steps. And picture of our project is shown below.


Figure 1: Remote sensors sensing with X-bee.


2. Components & software required:  -

In this project we are using X-bee module in the star connection.

Hardware components: -

          ·     Arduino board.
          ·     Three X-bee modules.
          ·     Two temperature sensor LM35.
          ·     Male to female jumper wires.
          ·     Male to male jumper wires.
          ·      Bread board.
·          And two external power supply for X-bee boards.

   Software: download both software in your pc or laotop. 

    Arduino software (IDE): Arduino software download here

·           XCTU softwareXCTU sofyware download here

 
Figure
2: component require.

3. Connections: -

In this project we are want to make a star connection of X-Bee module that can communication with each other. So a proper connections are really required to  make work of our project.

Connection table: -

3.1. Arduino board with X-Bee  

S no.
X-bee pins
Arduino board
1.
VCC pin 1 of X-bee

3.3v pin
2.
GND pin 10 of X-bee

GND
3.
TX pin 2 of X-bee
D0 or any other pin which you make for Serial input
4.
Rx. Pin 3 of X-bee

D1 pin.



Figure
3: Co-ordinator with Arduino board.

       3.2   X-Bee with temperature sensor: -



S no
X-bee        
Temperature sensor

1.
Pin 1
3.3v supply
Supply voltage
3.3 or 5v
2.
Pin 10
ground
Ground supply
ground
3
Pin 14 (vref)
3.3v
Output pin
Pin 18 on X-bee
4
Pin 18 ADC
Output pin of temperature sensor




Figure 4: Router connections with Temperature sensor LM35.

Do the connection for Router_1 and Router_2  same as show in the table two.



    4. Making of the project step by steps: To perform this project please follows the           following steps

Step 1: - Configuring all three of X-bee.

As we have learned how to configure the x-bee module in XCTU software in our previous project so configure the below X-bee module in below configurations.

 Co-ordinator:  - a coordinator is receiver node of star connection where ever X-Bee sends its                                         data.
      Set the parameter in below format.

  • Pan id: 1111.
  • Scan channel: 11.
  • Baud rate: 9600.
  • Parity bit: none.
  • Stop bit: one stop bit. And keep all the setting as it is.


Figure
5; co-ordinator configuration.


Router 1: - this X-bee takes analog data from temperature sensor and convert the analog data in                        digital form. And send data in API frame.
  •        PAN id: 1111.
  •        Scan channel: 11.
  •       JV (joint verification): enable.
  •       Destination address high:  0013A200 (Serial address high of Co-ordinator X-bee).    
  •       Destination Address low:  41241D89 (Serial address low of Co-ordinator X-bee).
  •       Node identifier:  Router 1 (Set your router name). 
  •       Baud rate:  9600
  •       Parity bit: None.
  •       Stop bit: one stop bit.
  •       AD1/DIO1 configuration: Digital input [3].
  •       AD2/DIO2 configuration: ADC [2].
  •       IR sampling rate: BB8 in HEX (3 sec or 3000 milli sec).


Figure
6: Router_1 configurations.


 Router_2: - Do the same configuration for third X-bee as Router_1 and name that one as Router_2.                 And just change the Sampling rate different so that information do not get collide at 
                      coordinator.


Figure
7: Router_2 configuration.



I made the sampling for Router_2 is 1388 (5000 milli second.). Now when all of three X-bees have been  configured thus we can start to play now.


Step_2: - Make all the connection and set the hardware as shown in the diagrams.



Figure
8: connections of all X-bee.


Make all the connection in the project as shown in the connection table and please be conscious, do not connect x-bee with high supply voltage, otherwise it may harm or module.

 Step_3: Now burn the Arduino with our code and open up the serial monitor to see the Value of                        Temperature and Digital switch on the serial monitor.


Figure 9: Remote sensor sensing with X-bee, Arduino code.


5. Result: - In our project two sensors are connected to the each of router X-bees, one is                     temperature sensor and other one is Digital switch. Those are being sampled at different                       sampling rate on each router X-bee module. And all the X-bee modules are connected in the star         connection and routers are communicating with coordinator X-bee.


      The result of this project can be seen on serial monitor of Arduino software.



Figure
10: Result on the Serial monitor.


6. Project specifications: -In this project we are configuring x-bee module for transmitting         a digital sensor data and a analog sensor data and reading this data on serial monitor of Arduino           software (IDE).

      ·    This project can be used on industrial and domestic level both. And can be place where we              want to monitor and data like temperature, humidity, moisture any kind of analog pr digital            sensor.
      ·    Range of x-bee in this project is around 30 meter and if we professionals X-bee module and          range could 1000 to 2000 meter also, which can be used to monitor sensor and                                communicating in many industries.   

 7. Arduino codes for this project: - Down load and upload this below code in you          coordinator side Arduino board.

Arduino board code for remote sensor monitoring using X-bee.

Please share and subscribe my blog for more Arduino projects.

Comments

Popular posts from this blog

RFID-MFRC522 with Arduino Board.

1.     RFID MFRC522:        A normal RFID kit is just like our ATM card which can send a specific data to controller when it gets in touch with its reader module.       MFRC522 is name of controller which is being used in this RFID kit.   Figure 1 : RFID MRFC522      1.1 Specifications of RFID MFRC22 Module Name:MF522-ED Working current : 13 - 26mA / DC 3.3V Standby current : 10 - 13mA / DC 3.3V Sleep current : <80uA Peak current : <30mA Working frequency : 13.56MHz Card reading distance : 0 ~ 60mm ( Mifare1 card ) Protocol : SPI. Data communication speed : 10Mbit/s Max. Card types supported: Mifare1  S50, Mifare1 S70, Mifare UltraLight, Mifare Pro, Mifare  Desfire Dimension : 40mm × 60mm Working temperature : -20—80 degree Storage temperature : -40—85 degree Humidity : relevant humidity 5%—95% This RFID kit works on the...

Smart Home Door lock system project.

RFID MFRC522  Door lock system Project summary: RFID system radio frequency identification in which Information is written in the card or tag is get read by RFID module when they get in contact. In this project we are making a home lock system which would open only when an authorized card will be available and access will be denied on wrong card. Component require: - In this project we are interfacing Arduino board with RFID MFRC522 and servo motor. RFID system would send data to Arduino board and according to that data action would be taken by Arduino board. Components are listed below:         ·          Arduino board.         ·          Arduino software.         ·          RFID MFRC522 board.         ·        ...

An alarm system with Sound detector sensor.

Project: Alarm system with Sound sensor Project summary:  In this project we would interface our sound detector sensor and make alarm system which would detect any sound in the room of any kind of noise disturbance, by beeping up a buzzer. And also we would able to see the result on the Serial monitor of Arduino Software (IDE). Figure 1:alarm system with Sound detector sensor. Component & tools required: - In this project we would required the component and tools which are described below. ·          Arduino board. ·           Arduino Software (IDE). ·           Sound detector sensor. ·          Red led 1, and Green led 1. ·          Buzzer. ·          1K resisters 2....