In the wireless world, the name Bluetooth
and WIFI have become a household name in recent years. They quickly find applications
amongst others in mobile computing and mobile phones.
Zigbee is the result of the demand from industry and consumer for wireless applications that demand for lower data rate, longer battery life, simple design, shorter range and low cost solutions.
Introduction To IEEE 802.15.4
IEEE 802.15.4 is a simple standard that specifies the Media Access Controller (MAC) and Physical (PHY) networking layers for packet data protocol. Its license free frequency bands are:
2.4 GHz (16 channels with baud rate of 250 kps)
902 MHz - 928 MHz (10 channels with baud rate of 40 kps)
868 MHz - 870 MHz (1 channel with baud rate of 20 kps)
North America, Europe, Australia and New Zealand use the sub 1 GHz bands whereas the rest of the world uses 2.4 GHz bands.
It uses Carrier Sense Multiple Access with Collison Avoidance for Channel Access.
The security method used is AES-128.
Has message acknowledgement and a host of other features.
Zigbee Applications
Zigbee technology is based on IEEE 802.15.4 industry standard. It incorporates the standard, adding the logical network, security and software to it. It supports up to 3 network topologies namely STAR, MESH and CLUSTER tree. Developers need only have to focus on application while the MCU/Microprocessor/RF Transceiver makers and Zigbee Alliance take care of the RF Transmitter, RF Receiver, RF Channel and its protocol.
There are 3 types of traffics that can be used.
a) Periodic data
An example of this traffic is a wireless sensor to read the water meter. The sensor is programmed to wake up at certain interval to transmit the information needed and goes back to sleep after this is done.
b) Intermittent data
An example of this traffic is a wireless light switch to ON or OFF a light manually. It is triggered only by external input and hence wakes up to transmit the message to the network. When done, it is disconnected to the network and hence save energy.
c) Repetitive data
An example of this traffic is the security system monitoring. The devices are time multiplex to return its status to the network. This type uses more energy.
There are numerous applications that can be implemented using Zigbee. Amongst others are in the industry and home applications.
In the industry, the applications include utility and metering where gas/water/electricity meter readings are automated and send back to utility headquarter for further action. This saves the time it takes for their personnel to come to the premises to take its reading. In the area of warehousing/inventory management , the wireless technology will enable accurate and hassle free management of goods. Security and access control, building management system and lighting control are among the applications that can be implemented with ease.
In the home, a total home automation system to control lightings, blinds, air conditioning, security system, remote control and appliances can be implemented.
A good reference source and solution on Zigbee can be obtained from Microchip Website.
Thursday, December 10, 2009
Home Lighting System Project
In recent year, the control of Home Lighting System
has developed from standalone type to more complicated networking controls. Many building management system and even the security system have incorporate the control of lighting into their system as a total solution to their customers. However, there are still no single universal protocol for the building or lighting control system.
The lighting industry has developed a new standard for communication with electronic ballast. Electronic ballast is a common lighting device that is used in practically every building, factory or residential house. This standard called IEC 929 is an interface standard for communication between a controller and the electronic ballast. The standard for the control is called DALI, an acronym for Digital Addressable Lighting Interface. DALI is meant for home or industry use which has 2 wire communication connection between the master-slave and slave-slave. It is developed to reduce the cost of implementation.
Among the features that can be applied are dimming features and control for different grouping/section of the building.
The electronic ballasts can have up to 16 groups and each group can have up to 16 different lighting parameters for the lighting scenes. Each controller can controlled up to 64 electronic ballasts.
There are many ways to implement the DALI depending on the cost and requirements of a home or building. Most of the time, a microcontroller is used at both the slave and the master controller units as this is one of the most cost effective ways to implement the system.
Freescale Semiconductor has developed a prototype and solution based on DALI using its MC68HC908KX8 device. This is a good reference project for students and beginners to inter-networking of devices. The full application design
can be downloaded from Freescale Semiconductor website.
has developed from standalone type to more complicated networking controls. Many building management system and even the security system have incorporate the control of lighting into their system as a total solution to their customers. However, there are still no single universal protocol for the building or lighting control system.
The lighting industry has developed a new standard for communication with electronic ballast. Electronic ballast is a common lighting device that is used in practically every building, factory or residential house. This standard called IEC 929 is an interface standard for communication between a controller and the electronic ballast. The standard for the control is called DALI, an acronym for Digital Addressable Lighting Interface. DALI is meant for home or industry use which has 2 wire communication connection between the master-slave and slave-slave. It is developed to reduce the cost of implementation.
Among the features that can be applied are dimming features and control for different grouping/section of the building.
The electronic ballasts can have up to 16 groups and each group can have up to 16 different lighting parameters for the lighting scenes. Each controller can controlled up to 64 electronic ballasts.
There are many ways to implement the DALI depending on the cost and requirements of a home or building. Most of the time, a microcontroller is used at both the slave and the master controller units as this is one of the most cost effective ways to implement the system.
Freescale Semiconductor has developed a prototype and solution based on DALI using its MC68HC908KX8 device. This is a good reference project for students and beginners to inter-networking of devices. The full application design
can be downloaded from Freescale Semiconductor website.
X10 Home Automation Project
X-10 is a communication protocol designed for sending signals over 120 VAC wiring
. X-10 uses 120 kHz bursts timed with the power line zero-crossings to represent digital information. X10 components send signals through your home electrical wiring. There are 16 house codes and 16 unit numbers per house code available on your network for a total of 256 addresses. You can control multiple devices by setting them the same house code.
X10 plug in modules are now commonly used in the area of security
, lighting, control of TV, motion detectors and other applications. It should be noted if there is no filter at the house breaker box, signals can pass from one house to another and cause odd behavior. If you have problems with a device on a given house and unit code, experiment with other codes and see if the problem goes away.
X-10 transmissions are synchronized with the zero-crossings on the AC power line. By monitoring for the zero-crossings, X-10 devices know when to transmit or receive X-10 information. A binary ‘1’ is represented by a 1 ms long burst of 120 kHz, near the zero-crossing point of the AC. A binary zero is represented by the lack of the 120 kHz burst. The timing diagram is as shown below.
X10 Home Automation Project
This application note discusses the implementation of X-10 on a PICmicro MCU to create a home controller that can both send and receive X-10 signals. The reader may implement the home controller as is, or adapt the circuits and firmware
to other applications. A library of X-10 functions is provided to facilitate development of other X-10 applications using PICmicro microcontrollers.
It allows the user to program on and off times for up to sixteen devices, using a 2 x 16 liquid crystal display and five push buttons. A built-in light sensor can be used to turn on lights at dusk, and turn them off at The home controller is designed to facilitate experimentation with home automation using the PIC16F877A.
It will be a good project for final year students to embark on and hence gain a considerable experience in X10 wireless technology.
The application note of X10 Home Automation Project and its source codes can be downloaded from Microchip website.
. X-10 uses 120 kHz bursts timed with the power line zero-crossings to represent digital information. X10 components send signals through your home electrical wiring. There are 16 house codes and 16 unit numbers per house code available on your network for a total of 256 addresses. You can control multiple devices by setting them the same house code.
X10 plug in modules are now commonly used in the area of security
, lighting, control of TV, motion detectors and other applications. It should be noted if there is no filter at the house breaker box, signals can pass from one house to another and cause odd behavior. If you have problems with a device on a given house and unit code, experiment with other codes and see if the problem goes away.
X-10 transmissions are synchronized with the zero-crossings on the AC power line. By monitoring for the zero-crossings, X-10 devices know when to transmit or receive X-10 information. A binary ‘1’ is represented by a 1 ms long burst of 120 kHz, near the zero-crossing point of the AC. A binary zero is represented by the lack of the 120 kHz burst. The timing diagram is as shown below.
X10 Home Automation Project
This application note discusses the implementation of X-10 on a PICmicro MCU to create a home controller that can both send and receive X-10 signals. The reader may implement the home controller as is, or adapt the circuits and firmware
to other applications. A library of X-10 functions is provided to facilitate development of other X-10 applications using PICmicro microcontrollers.
It allows the user to program on and off times for up to sixteen devices, using a 2 x 16 liquid crystal display and five push buttons. A built-in light sensor can be used to turn on lights at dusk, and turn them off at The home controller is designed to facilitate experimentation with home automation using the PIC16F877A.
It will be a good project for final year students to embark on and hence gain a considerable experience in X10 wireless technology.
The application note of X10 Home Automation Project and its source codes can be downloaded from Microchip website.
Bluetooth Technology
Bluetooth technology is a radio frequency short range communications technology that was created with the intention of replacing wired cables that are used to connect various portable and fixed devices. The use of this technology will do away with the physical cables that connect devices. The key features are its low cost, low power and robustness in maintaining high level of security.
Bluetooth was made possible by the Bluetooth Special Interest Group(SIG) which was founded by Ericsson, IBM, Intel, Nokia and Toshiba in the year 1998. The objective was to develop an open specifications for short range wireless connectivity. More than 1900 companies have since joined the SIG and the numbers are increasing day by day.
Specifications
The specifications provide developers the link layer and application layer definitions which are used to support both voice and data applications. The spectrum of frequency used is in the unlicensed ISM(Industrial, Scientific and Medical) band at 2.4 Ghz to 2.485 GHz using spread spectrum and frequency hopping. As this is a free band, there is no cost for the use of Bluetooth compared to cellular phones where one must subscribe to use the network of GSM or CDMA.
IEEE 802.15.1 standard is used in the development of Bluetooth enabled products. The versions used are Ver 1.2 with data rate of 1 Mbps and ver 2.0 with data rate of up to 3 Mbps. The range of operation depends on the device classes. They are:
Class 3 – 1 meter range with maximum permitted power set at 1mW.
Class 2 – 10 meters range with maximum permitted power set at 2.5mW.
Class 1 – 100 meters range with maximum permitted power set at 5mW.
Bluetooth Applications
The technology allows the data and voice transmissions to be handled simultaneously. Hence, Bluetooth applications have been used in communications solutions such as hands free headset, mobile phones, laptop, PDA, printers, mouse, keyboard, MP3 players and fax machines amongst others. As this technology is made available in the global scale, one will be able to find many products that exhibit such capability.
In Voice over IP (VOIP) application, Bluetooth headsets are being used as wireless extensions to the PC audio system. As VOIP becomes more popular compared to wired phone, Bluetooth may be used in Cordless handsets, with a base station connected to the Internet link.
One good link for free downloading of Bluetooth technology design is from IVT Corporation. It is a world leader in providing Bluetooth Technology and Fixed-Mobile Convergence(FMC) Solutions.
Bluetooth was made possible by the Bluetooth Special Interest Group(SIG) which was founded by Ericsson, IBM, Intel, Nokia and Toshiba in the year 1998. The objective was to develop an open specifications for short range wireless connectivity. More than 1900 companies have since joined the SIG and the numbers are increasing day by day.
Specifications
The specifications provide developers the link layer and application layer definitions which are used to support both voice and data applications. The spectrum of frequency used is in the unlicensed ISM(Industrial, Scientific and Medical) band at 2.4 Ghz to 2.485 GHz using spread spectrum and frequency hopping. As this is a free band, there is no cost for the use of Bluetooth compared to cellular phones where one must subscribe to use the network of GSM or CDMA.
IEEE 802.15.1 standard is used in the development of Bluetooth enabled products. The versions used are Ver 1.2 with data rate of 1 Mbps and ver 2.0 with data rate of up to 3 Mbps. The range of operation depends on the device classes. They are:
Class 3 – 1 meter range with maximum permitted power set at 1mW.
Class 2 – 10 meters range with maximum permitted power set at 2.5mW.
Class 1 – 100 meters range with maximum permitted power set at 5mW.
Bluetooth Applications
The technology allows the data and voice transmissions to be handled simultaneously. Hence, Bluetooth applications have been used in communications solutions such as hands free headset, mobile phones, laptop, PDA, printers, mouse, keyboard, MP3 players and fax machines amongst others. As this technology is made available in the global scale, one will be able to find many products that exhibit such capability.
In Voice over IP (VOIP) application, Bluetooth headsets are being used as wireless extensions to the PC audio system. As VOIP becomes more popular compared to wired phone, Bluetooth may be used in Cordless handsets, with a base station connected to the Internet link.
One good link for free downloading of Bluetooth technology design is from IVT Corporation. It is a world leader in providing Bluetooth Technology and Fixed-Mobile Convergence(FMC) Solutions.
Battery Tester Project Using LM3914 IC
This objective of this project is to design and build a battery tester that is able to test various types of dry cell and rechargable battery with a voltage of less than 2V. Configured as a bar graph battery level indicator, the LM3914 IC from National Semiconductor senses the voltage levels of the battery under test and drives the 10 LEDs to ON or OFF based on the voltage that is detected. The current driving the LEDs is regulated by using the external resistor R1 and hence limiting resistors are not required.
The schematic shows the simple connections where the reference voltage at pin 8 of U1 can be adjusted by adjusting the variable resistor VR1. The voltage at pin 8 will set the maximum scale of the LED. In testing dry cell battery of 1.5V, set the voltage at pin 8 to 2.0V. Each of the LED will thus represent 200mV when lighted up.
If testing of rechargable battery such as NiCd or NiMH is required, set the reference voltage to a lower value such as 1.5V as the typical voltage of a rechargable battery is approximately 1.2V.
When testing the battery, take note of the polarity of the probe to the terminals of the battery. T1 is to be placed on the positive terminal and T2 the negative terminal of the battery.
The schematic shows the simple connections where the reference voltage at pin 8 of U1 can be adjusted by adjusting the variable resistor VR1. The voltage at pin 8 will set the maximum scale of the LED. In testing dry cell battery of 1.5V, set the voltage at pin 8 to 2.0V. Each of the LED will thus represent 200mV when lighted up.
If testing of rechargable battery such as NiCd or NiMH is required, set the reference voltage to a lower value such as 1.5V as the typical voltage of a rechargable battery is approximately 1.2V.
When testing the battery, take note of the polarity of the probe to the terminals of the battery. T1 is to be placed on the positive terminal and T2 the negative terminal of the battery.
Color Sensor
Colour sensor is an interesting project for hobbyists. The cir- cuit can sense eight colours, i.e. blue, green and red (primary colours); magenta, yellow and cyan (secondary colours); and black and white. The circuit is based on the fundamentals of optics and digital electronics. The object whose colour is required to be detected should be placed in front of the system. The light rays reflected from the object will fall on the three convex lenses which are fixed in front of the three LDRs. The convex lenses are used to converge light rays. This helps to increase the sensitivity of LDRs. Blue, green and red glass plates (filters) are fixed in front of LDR1, LDR2 and LDR3 respectively. When reflected light rays from the object fall on the gadget, the coloured filter glass plates determine which of the LDRs would get triggered. The circuit makes use of only �AND� gates and �NOT� gates.
When a primary coloured light ray falls on the system, the glass plate corresponding to that primary colour will allow that specific light to pass through. But the other two glass plates will not allow any light to pass through. Thus only one LDR will get triggered and the gate output corresponding to that LDR will become logic 1 to indicate which colour it is. Similarly, when a secondary coloured light ray falls on the system, the two primary glass plates corres- ponding to the mixed colour will allow that light to pass through while the remaining one will not allow any light ray to pass through it. As a result two of the LDRs get triggered and the gate output corresponding to these will become logic 1 and indicate which colour it is.
When all the LDRs get triggered or remain untriggered, you will observe white and black light indications respectively. Following points may be carefully noted :
1. Potmeters VR1, VR2 and VR3 may be used to adjust the sensitivity of the LDRs.
2. Common ends of the LDRs should be connected to positive supply.
3. Use good quality light filters.
The LDR is mounded in a tube, behind a lens, and aimed at the object. The coloured glass filter should be fixed in front of the LDR as shown in the figure. Make three of that kind and fix them in a suitable case. Adjustments are critical and the gadget performance would depend upon its proper fabrication and use of correct filters as well as light conditions
Wednesday, August 12, 2009
Fire Monitor
This project “Fire Monitor” is used to monitor the Temperature of two Rooms and if the sensor found any fire in the Room then the alarm will be switched ON until the Fire is put off else the Reset button is pressed. The Fire was sensed by using the Thermistor. The Thermistor is a passive device which has a Negative Temperature Co-efficient (NTC), i.e when the temperature increases then the resistance of the Thermistor will decrease. A analog comparator is used for the fire sensor circuit , at normal temperature the output of the comparator is low, and if there is any fire hazard, then the temperature increases and therefore the resistance of the Thermistor decreases and the output of the comparator goes High which Trigger the Microprocessor though the PPI 8255. Then the Microprocessor will switch ON the Alarm for fire. The above system is monitored and controlled by the 8 bit Microprocessor. The Microprocessor continuously monitors the two sensors and if any one of the sensor sense Fire then it latches the sensor and the microprocessor switch on the Alarm according to the software stored on the RAM.
Subscribe to:
Posts (Atom)