Professional Documents
Culture Documents
INTRODUCTION
Technology is the word coined for the practical application of scientific knowledge in the industry. The advancement in technology cannot be justified unless it is used for leveraging the users purpose. Technology, is today, imbibed for accomplishment of several tasks of varied complexity, in almost all walks of life. The society as a whole is exquisitely dependent on science and technology. Technology has played a very significant role in improving the quality of life. One way through which this is done is by automating several tasks using complex logic to simplify the work.
respect to micro controller instructions. In this project, ultrasonic sensor is also used to detect the distance at which the obstacle. An LCD is interfaced to a microcontroller (AT8051). The distance that is detected by the sensor will be displayed in the LCD.
CHAPTER -2
EMBEDED SYSTEMS 2.1 Introduction
An embedded system is a specialized computer system that is housed in a large system in order to carry out certain specific applications. Some embedded systems include operating systems and most are so specialized such that the entire logic can be implemented as a single program.
2.3 Sensor
A sensor (also called detector) is a converter that measures a physical quantity and converts it into a signal which can be read by an observer or by an (today mostly electronic) instrument.
This technology can be used for measuring wind speed and direction (anemometer), tank or channel level, and speed through air or water. For measuring speed or direction a device uses multiple detectors and calculates the speed from the relative distances to particulates in the air or water
CHAPTER-3
MICROCONTROLLER 3.1 Introduction
A microcontroller is a computer on a chip. It is an integrated chip that is usually a part of an embedded system. It is a microprocessor that is meant to be more self contained independent and yet function as a tiny, dedicated computer. It lays emphasis on high integration, low power consumption, self sufficiency and cost effectiveness. It is typically designed using the CMOS (complementary metal oxide semiconductor) technology and has the following features:a central processing unit A central processing unit discrete input and output pins serial input/output ports(UARTs) peripherals such as timers, counters RAM,ROM,EPROM,Flash Memory(EEPROM) Clock generator May include analog to digital converters
Memory (RAM/ROM)
Micro controller
I/O ports
Peripherals
3.2 Advantages
Design with microcontrollers has the following advantages: It has low overall system cost as all the peripherals are integrated onto a single chip. The product size is small, therefore the product is handy. System design and troubleshooting is simple. Since the peripherals are integrated on the same chip, the system is reliable. Additional RAM and ROM can be easily interfaced as and when required. Microcontrollers with on-chip ROM provides a software security feature.
write/erase cycles). Fully static operation: 0-24 MHz Three level program memory lock 128 bytes internal RAM 32 programmable I/O lines(4 ports) Two 16 bit timers/counters Six interrupt sources Programmable serial channel Low power idle and Power down modes 8 bit CPU optimized for controlled applications
6
RST (PIN 9)
Reset input. A high on this pin for two machine cycles while the oscillator is running resets the device. This pin drives high for 98 oscillator periods after the Watchdog times out. The DISRTO bit in SFR AUXR (address 8EH) can be used to disable this feature. In the default state of bit DISRTO, the RESET HIGH out feature is enabled.
internally latched on reset. EA should be strapped to VCC for internal program executions..
10
CHAPTER-4
DESIGN AND IMPLEMENTATION 4.1 Design and Implementation
Power supply circuit supplies +5V DC to all the passive components like resistors, capacitors, IC and Microcontroller. Here voltage regulator is used to convert 12v DC to 5v DC.
OBSTACLE SENSOR
VOICE PROCESSOR
11
12
4.5: speaker
A loudspeaker (or "speaker") is an electro acoustic transducer that produces sound in response to an electrical audio signal input. Non-electrical loudspeakers were developed accessories to telephone systems
13
4.7: LCD (16 bit LCD) It is a flat panel display, electronic visual display, or video display that uses the light modulating properties of liquid crystals. Liquid crystals do not emit light directly. LCDs are used in a wide range of applications including computer monitors, televisions, instrument panels, aircraft cockpit displays, and signage. They are common in consumer devices such as video players, gaming
14
4.8: Regulator(7805)
A device that maintains a designated characteristic, as in: Battery regulator Pressure regulator Diving regulator Voltage regulator Regulator (economics), an agency established by central government for the control of or intervention in the operation of markets
Fig: 4.10 MICROCONTROLLER Intel's original MCS-51 family was developed using NMOS technology, but later versions, identified by a letter C in their name (e.g., 80C51) used CMOS technology and consume less power than their NMOS predecessors. This made them more suitable for battery-powered devices .Some derivatives integrate a digital signal processor (DSP).
4.12 : capacitors
A capacitor or condenser is a passive electronic component consisting of a pair of conductors separated by a dielectric. When a voltage potential difference exists between the conductors, an electric field is present in the dielectric. This field stores energy and produces a mechanical force between the plates. The effect is greatest between wide, flat, parallel, narrowly separated conductors. Capacitors are widely used in electronic circuits to block the flow of direct current while allowing alternating current to pass, to filter out interference, to smooth the output of power supplies, and for many other purposes.
4.13. Resistors
A resistor is a two-terminal electronic component that produces a voltage across its terminals that is proportional to the electric current through it in accordance with Ohm's law (V = IR) Resistors are elements of electrical networks and electronic circuits. The primary characteristics of a resistor are the resistance, the tolerance, maximum working voltage and the power rating. Other characteristics include temperature coefficient, noise, and inductance.
18
CHAPTER-5
SOFTWARE USED 5.1 Vision3 software
The Vision3 IDE is a windows based software development platform that combines a robust editor, project manager, and integrated make facility. Vision3 integrates all tools including the C compiler, macro assembler, linker/locator, and HEX file generator. Vision3 helps expedite the development process of our embedded applications by providing the following: Full-featured source code editor Device database for configuring the development tool setting Project manager for creating and maintaining our projects Integrated make facility for assembling, compiling, and linking our embedded applications Dialogs for all development tool settings True integrated source level Debugger with high-speed CPU and peripheral simulator Advanced GDI interface for software debugging in the target hardware and for connection to keil ULINK Flash programming utility for downloading the application program into Flash ROM Links to development tools manuals, device datasheets and users guides. In the Build Mode, we maintain the project files and generate the application. In the Debug Mode, we verify our program either with a powerful CPU and peripheral simulator or with the Keil ULINK USB-JTAG Adapter (or other AGDI drivers) that connect the debugger to the target system. The ULINK allows us also to download our application into Flash ROM of our target system.
19
The Vision3 Simulator is the Write and test the application code before only Debugger that completely production simulates all on-chip peripherals. Investigate hardware different is available. hardware
configurations to optimize the hardware design. Simulation capabilities may be Sophisticated systems can be accurately expanded using the Advanced simulated by adding our own peripheral Simulation Interface (AGSI). drivers.
The Code Coverage feature of the Safety-critical systems can be thoroughly Vision3 analysis execution. Simulator of our provides tested and validated. Execution analysis programs reports can be viewed and printed for certification requirements.
The Vision3 Device Database Mistakes in tool settings are practically automatically configures the eliminated and tool configuration time is
development tools for the target minimized. micro controller. The Vision3 IDE integrates Quickly access development tools and additional third-party tools like third-party tools. All configuration details VCS, CASE, and FLASH/Device are saved in the Vision3 project. Programming.
20
Create Project file and Select CPU Project Workspace-Books Create New Source Files Add Source Files to the Project Create Files Groups Set tool Options for Target Hardware Configure the CPU Start-up Code Build Project and Generate Application Program Code Create a HEX File for PROM Programming
Create New Folder in this dialog to create a new empty folder. Select this folder and enter the file name for the new project, i.e. Project1. Vision3 creates a new project file with the name PROJECT1.UV2which contains a default target and file group name. We can see these names in the Project Workspace Files.
22
CHAPTER-6
PROJECT DESCRIPTION
The input unit comprises of an ultrasonic sensor in order to compute the distance to the point on the surface of any object and also to project a structured wave grid on the objects in the field of vision. The voice processor and control unit performs the necessary integration between the sensed data streams from the sensors, and the computation needed in order to relate distance to each grid point in the field of vision. Control unit also functions to adapt the sensors to any required depth of the field of vision. The input unit is wired or wirelessly linked via port to the controller unit. This link enables bi-directional flow of information.
23
24
25
CHAPTER-7
7.1: ADVANTAGES: It has small physical dimensions, allowing the user free
movement to carry from one place to other place, hence it is portable. Low power consumption. Ultrasonic sensor can cover distance upto 20m ,hence distant objects can be detected 7.2: DISADVANTAGES:
Due to the usage of ultrasonic sensor ,cost increases. If sensors fail, total system wont work. It
detects
even
minute
obstacles,
for
example:
small
7.4: LIMITATION:
The radiations produced by the sensors will harm the person and those radiations can be limited by varying the resistor values.
Single sensor cannot cover 360degrees .By placing two more sensor it is possible to cover entire 360degrees which increases complexity
26
CHAPTER-8
Code Implementation
#include<reg51.h> sbit sensor=p3^0; sbit voice1=p1^0; sbit voice2=p1^1; unsigned char check=1; void delay (unsigned int n) { unsigned int j,k; for (j=0;j<n;j++) for (k=0;k<500;k++) } void main() { delay(50); while(1) { if(sensor==1) { if(check==1)
27
{ check=0; voice1=0; delay(200); voice1=1; } else if (check==0) { check=1; voice2=0; delay(200); voice2=1; } else; while(sensor==1); delay(500); } else if(sensor==0) { voice1=1; voice2=1; } } }
28
CONCLUSION: A multi system controller allows several electronic gadgets to be controlled by a single device. This enables automation in any environment that has several electronic devices. During the course of our project, we have developed a working model to demonstrate the functioning of a multi system controller using RF communication. The device developed is simple and controls three devices i.e. bulbs, fan and a remote controlled car. This device is capable of controlling devices that run on both ac and/or dc power supply. FUTURE SCOPE: With increased complexity, this device can be successfully used in any environment where automation is desired. If we increase the number of sensors to three we can detect the obstacles at an angle of 270degrees.with further automation we convert the distance displayed on the LCD to be played on the headset (speaker).
29
APPENDIX
BIBLIOGRAPHY REFERENCE SITES: www.keil.com www.wisegeek/microcontroller.com www.wikipedia.com www.mytutorialcafe.com www.avrfreaks.com www.softpedia.com www.rfsolutions.co.uk www.freewebs.com www.tpub.com www.electronics4u.com www.ipic.co.jp www.electronics.howstuffworks.com www.consumer.phillips.com www.amazon.co.uk www.directron.com www.remotecontroltechnology.com www.zilog.com www.atmel.com
30