Xbee wireless humidity measurement
Project
On
Arduino Based X-bee communication
with Humidity Sensor
Logo
Submitted by: Submitted to:
LOVELY PROFESSIONAL UNIVERSITY
Acknowledgement
ACKNOWLEDGEMENT
We are thankful to Mrs. Manu Bharti for their Guidance to select this project. We are very thankful to BCET college. This project will help us a lot in practical training. It’s the time to implement theoretical knowledge to practical implementation.
Introduction and Working:
Smart Ordering Sysem is our MAJOR final Year Project. We planned lot of project but finally we decided to make this project.
In this project LCD will show few items. Project will be based on ZIG BEE and Arduino. In this project we use Arduino microcontroller as a main processor.. This controller is basically a 40 pin ic. In this project we use two sensor also.ROM of Arduino is 8k and ram is 256 byte. We are using 16*2 lcd in this project. Lcd is connected to port 0 which will display the no. On receiver side RF module will give signal to microcontroller. Microcontroller is decision maker here and informer to person on duty.It will give data to LCD , buzzer and LED’s. we will also use four LEDs for immediate action.
We will use Humidity sensor which will give analog data to Arduino module and arduino will transmitt signal using x- bee module
Pin no 40 is connected to the positive supply. In this project we provide a 5 volt dc power supply. This power supply is truly regulated power supply. Pin no 20 is connected to the negative supply. Here we supply a negative voltage on this pin. Crystal is connected to the pin no 18 and 19 of the microcontroller. Crystal provide a clock signal to run the vehicle and process all the internal requirement of the circuit. We use two sensor and these two sensor are connected to the p3.4 and p3.5 of the microcontroller.For the regulated power supply we use ic 7805 as a regulator to provide a fix 5 volt power supply.
To Assemble the remote weather station you will go through the following step, and will elaborate on each below:
- Connect all the sensors to the Stalker/Arduino board
- Make minor modification to the Stalker
- Configure the XBee modules
- Load program onto the Stalker
- Run program on the PC
Connecting the sensors:
DHT22 connected to digital pin 2.
DHT22 Pin 1 to 3.3 Volt of Arduino
DHT22 Pin 4 to GND of Arduino
DHT22 Pin 2 to digital pin 2 of Arduino
10KOhm resistor between pin 1 (Vcc) to pin 2 (data) of the sensor
DHT22 Pin 3 is left not connected.
Consider using small bread-board for this small circuit
Console for debugging (optional) on digital pins 3 and 9 (9600 based console)
This is only useful if you want to see debug messages, change things in the SW etc.
For this to work you will need to connect the FTDI to the below pins or simply use
additional FTDI board (that’s what I did). If you only use one board then you will need
to connect it to the programming side, load the program then connect to the console pins to see the output, which is pretty tedious if you ask me.
To connect console only, here are the connections required:
GND from the FTDI to Arduino GND
Rx from the FTDI to digital pin 9 of the Arduino
Tx from the FTDI to digital pin 3 of the Arduino
BMP085 is connected to the I2C interface (analog pins 4 and 5 of the Arduino).
Vcc from sensor breakout board to 3.3V of Arduino
Gnd from sensor breakout board to GND of Arduino
SDA from sensor breakout board to Aruino analog pin 4
SCL from sensor breakout board to Arduino analog pin 5
If you are using small bread-board for the DHT22 sensor, you can probably include this sensor on it too.
Configuring the XBee modules
There is quite a bit of information and in-depth on the XBee modules on the net. I will not go into all the details here. Few notes though: The XBee modules have API mode and Command mode firmwares. I use the library that requires the API mode. Also, with Series 2 of XBee, there is a role for each module, so we need one coordinator that is connected to the PC and one endpoint which is the module installed on the remote weather station. Also there is some addressing information that needs to be identical between units, and I chose this address code to be 2266 (my birthday if anyone is curious). Obviously you can choose something different. On the coordinator side (PC) the AO needs to be 0. On the weather station side the AO should be 2 (but in any case I ignore the return codes, so it will work anyway).
- Install the X-CTU utility
- Optionally do firmware upgrade to the XBee Modules (please note you need the API mode firmware)
- Configure one unit to be coordinator and another to be endpoint
- Configuration for both coordinator and endpoint (the sensor) is included in the ZIP file for this instructable
- Write down the Coordinator XBee address (Nodes Addressing/SH andAddressing/SL).
- Place the XBee module configured as endpoint into the Stalker socket
- Place the XBee module configured as coordinator into the XBeeExplorer and connect it to the PC
We transmitter whole project in few steps:
RF transmitter
- RF module
- Encoder circuit
RF receiver
- Rf receiver
- Decoder
- Microcontroller circuit
- Visual indication- LCD and LEDs
- Audio alert- buzzer
ADVANTAGES
- Low cost
- Reliable
- Portable
- Flexible
- Easy to use
- Protection
- Communication
Features-
- Wireless system
- LCD display
- X bee
Hardware required-
8051 programmer universal kit
CRO 20 Mhz
Digital multimeter
Software required:
Keil software- Microvision 2
ORCAD for PCB design 10.5
Proteus for simulation 7.4 version
Block DIAGRAM RECEIVER CIRCUIT
PC | |||||
X Bee | |||||
Block Diagram of receiver
Component List | COST | |||||
S.No. | Item | Quantity | Rate/Unit | |||
1 | Arduino UNO3 | 1 | 1600 | |||
xbee | 2 | 2500 | ||||
HT12E | 1 | 35 | ||||
HT12D | ||||||
IC91214 | 1 | 25 | ||||
3 | IC4049 | 0 | 25 | |||
4 | IC8870 | 1 | 40 | |||
5 | IC555 | 0 | 10 | |||
6 | IC817 | 1 | 15 | |||
7 | IC3021 | 0 | 15 | |||
Push to On Sw | 3 | 12 | ||||
8 | SOLDERING WIRE | 1 | 25 | |||
9 | SOLDERING IRON | 1 | 120 | |||
10 | FLUX | 1 | 10 | |||
11 | CONNECTING WIRE | 1 | 50 | |||
12 | TR548 | 2 | 2 | |||
13 | TR558 | 0 | 2 | |||
14 | RESISTENCES | 20 | 0.5 | |||
15 | CAPACITORS | |||||
1000µf | 2 | 10 | ||||
100µf | 1 | 5 | ||||
470µf | 4 | 5 | ||||
16 | DIODES | 8 | 1 | |||
17 | LED | 8 | 1 | |||
Crystal 12MHz | 2 | 25 | ||||
18 | IC BASE | 3 | 5 | |||
IF set | 120 | 1 | ||||
19 | IC 7805 Volt. Reg | 2 | 15 | |||
20 | TRANSFORMER 9 V | 1 | 30 | |||
21 | SOCKETS | 3 | 10 | |||
22 | RELAY 9V | 3 | 25 | |||
23 | MILER CAP | 5 | 3 | |||
24 | CRYSTAL 3.579545 | 2 | 20 | |||
25 | IC136 | 2 | 15 | |||
26 | HOLDER | 2 | 10 | |||
27 | PLY BOARD | 1 | 100 | |||
28 | TAPE ROLL | 1 | 10 | |||
29 | Copper Clad Board | 1 | 100 | |||
30 | FeCl3 | 1 | 100 | |||
31 | ZENER | 0 | 3 | |||
Screws/bolt | 2 | 2 | ||||
Betteies | 1 | 15 | ||||
TOTAL COST | 9000 |
Bibliography: