VS02
VS02
VS02
Jovitha Jerome is with the Department of Instrumentation and Control Engineering,PSG College of Technology Coimbatore - 641 004.Email: jjovitha@yahoo.com V Ranganayaki is with the Department of Instrumentation and Control Engineering,PSG College of Technology Coimbatore - 641 004.Email: ranganayaki11@gmail.com Digital Object Identifier No: IISM 00620100002
International Conference on Intelligent Information Systems and Management (IISM2010), June10-12, 2010
The overall design is composed of Spartan 3-based FPGA and Virtual Simulator environment implemented in LABVIEW. The architecture is shown in Figure 1, where a communication system is implemented by using RS232 serial protocol. Additionally it include temperature sensor, gear position sensor, fuel level sensor and speed sensor. The analog data are acquired by FPGA through ADC.
The output of the ADC is digital signal and is given to FPGA in order to find the temperature of the engine.
Figure 1. Block Diagram of Virtual Panel
III. HARDWARE A. Temperature Sensor (Thermister) A Thermister is a type of resistor used to measure temperature changes, relying on the change in its resistance with changing temperature. The relationship between resistance and temperature is linear so that it forms the firstorder approximation and is given in equation (1). R = k T Where, R = change in resistance, T = change in temperature k = first-order temperature coefficient of resistance. Thermister used is negative temperature co-efficient in which the resistance value is decreased when the temperature is increased. Thermister is connected with resister bridge network is shown in Figure 2. The bridge terminals are connected to inverting and non-inverting input terminals of comparator. The comparator is constructed by LM 324 operational amplifier. Initially the reference voltage is set to room temperature level so the output of the comparator is zero. When the temperature is increased above the room temperature level, the thermister resistance is decreased so variable voltage is given to comparator. The comparator delivered the error voltage at the output. Resistor is adjusted to get desired gain. Then output voltage is given to final stage of DC voltage follower through this the output voltage is given to ADC. (1)
B. Level Sensor (Float) Float is the one type of transducer which is used to measure the fuel level in the tank. The float changes the resistance value depending on the fuel level. This change is a resistance and is converted into corresponding voltage signal which is given to inverting input terminal of the comparator is shown in Figure 3. The reference voltage is given to non inverting input terminal. The comparator is constructed by the operational amplifier LM 741.
The comparator compares with reference fuel level and delivered the error voltage at the output terminal. Then the error voltage is given to next stage of gain amplifier which is constructed by another operational amplifier LM 741. In the gain amplifier the variable resistor is connected in the feedback path, by adjusting the resistor to get the desired gain. Then the final voltage is given to ADC for convert the analog signal to digital signal. Then the corresponding digital signal is given to FPGA in order to find the fuel level in the tank. C. Speed Sensor (IR Sensor) Infrared transmitter [6] is one type of LED which emits infrared rays generally called as IR Transmitter. Similarly IR Receiver is used to receive the IR rays transmitted by the IR
International Conference on Intelligent Information Systems and Management (IISM2010), June10-12, 2010
transmitter. One important point is both IR transmitter and receiver should be placed straight line to each other is shown in Figure 4. The transmitted signal is given to IR transmitter whenever the signal is high, the IR transmitter LED is conducting it passes the IR rays to the receiver. The IR receiver is connected with comparator. The comparator is constructed with LM 358 operational amplifier. When there is an interruption between the IR transmitter and receiver, the comparator output is in the range of +5V otherwise zero. D. Gear Position Sensor (Toggle Switch) Speed of the vehicles is changed based on the gear position. Here four gear positions are considered and also they are also monitored. Four toggle switches are used to measure the gear position. S1 1 1 1 1 S2 0 1 1 1 S3 0 0 1 1 S4 0 0 0 1 Gear Position 1st 2nd 3rd 4th
The features of ADC 0808/0809: High speed High accuracy Minimal temperature dependence Excellent long term accuracy and repeatability Consume minimal power F. DAC 0800 A digital-to-analog converter is a device for converting a digital (usually binary) code to an analog signal (current, voltage or electric charge). Digital-to-analog converters are interfaces between the abstract digital world and analog real life. An analog-to-digital converter (ADC) performs the reverse operation.DAC usually only deals with pulse-code modulation (PCM)-encoded signals, typical setting times of 100ns. The output from the FPGA is given to DAC. The output of the DAC is current signal. So it is given to current to voltage converter which is constructed by the LM 741 [9] operational amplifier which is shown in Figure 6. Finally the analog voltage is given motor control circuit.
The output from the toggle switch is given to LabVIEW [7] through FPGA to indicate the correct gear position. E. ADC 0808 The ADC 0809 has one type of 8-bit ADC Figure 5 which can very easily be interfaced with any of the microprocessors. This type of converter changes the analog voltage input V in to an 8-bit digital output (D7-D0). The conversion process is initiated by a pulse applied to the ADCs START conversion terminal. The completion of conversion takes an amount of time depending upon the method of conversion time can be as large as 100ms for some ADC. During conversion the ADCs end of conversion (EOC) output goes LOW. The EOC output returns HIGH only when the conversion is completed. Here the output from the thermister and level sensor is given to ADC in which it converts analog voltage to Digital output and also sent the digital output to FPGA hardware.
G. DC Motor Speed Control Circuit This circuit is designed to control the speed of the 12V DC motor [8] is shown in Figure 6. Here the variable resistor is used to give the different voltage signal to amplifier circuit. The amplifier circuit is constructed by the LM 741 operational amplifier. The variable voltage is given to non inverting input terminal. Then the amplified signal is given to SL 100 power transistor.
3
International Conference on Intelligent Information Systems and Management (IISM2010), June10-12, 2010 V. SERIAL COMMUNICATION INTERFACE In telecommunications, RS-232 is a standard for serial binary data interconnection between a DTE (Data terminal equipment) and a DCE (Data Circuit-terminating Equipment). It is commonly used in computer serial ports. In this circuit the MAX 232 IC used as level logic converter. FPGA transmitter pin is connected in the MAX232 T2IN pin which converts input 5v TTL/CMOS level to RS232 level. Then T2OUT pin is connected to reviver pin of 9 pin D type serial connector is directly connected to PC in which LabVIEW coding is created. Figure 9 shows the LabVIEW code to measure communication performances.
Figure 7. Speed Control Circuit of DC Motor
The 12v motor is connected in the transistor side. Depending on the amplified signal current through the transistor is controlled due to that the motor speed is controlled. H. Spartan3 FPGA (XC3S100E) Spartan3 FPGA Member family offers densities ranging from100, 000 to 1.6 million system gates. FPGAs avoid the high initial cost, the lengthy development cycles, and the inherent inflexibility of conventional ASICs (Application Specific Integrated Circuits). Also, FPGA programmability permits design upgrades in the field with no hardware replacement necessary, an impossibility with ASICs. The FPGA coding is completed using VHDL language. The Figure 8 shows the following components and packages are written in Xilinx to implement the design. Binary to BCD is converted by Left Shift and Add 3 algorithm.
VI. RESULTS The FPGA is programmed by VHDL language. It uses Spartan3 device for the hardware implementation. The simulation is done in LabVIEW environment. The serial RS 232 communication protocol is defined between the FPGA hardware and LabVIEW simulation environment. The LabVIEW program was capable to represent the reconfigurable virtual front panel of the vehicle in real time and a realistic way. This performance includes the serial communication (with the implemented protocol), the calculation and the computational cost of the system interface in the PC. The baud-rate of serial communication can be changed in both programs: FPGA hardware and the LabVIEW. The current baud rate of the serial communication is 9600 bauds. The Front panel shows temperature value, Fuel level in the tank, Gear position and Speed also. The virtual panel created which provide the rich environment for users is as shown in Figure 10. VII. CONCLUSION
IV. THE SIMULATOR ENVIRONMENT The model of virtual instrument panel is performing all functions and tasks of the original instrument panel. LabVIEW is a general-purpose graphical programming system with extensive libraries of functions for any programming tasks. In addition, this system includes libraries for data acquisition, instrument control [10], data analysis, data presentation, and data storage. The program was designed by means of several software modules, involving the RS232 interface. The LabVIEW front panel of vehicle instrument panel is shown in Figure 7.
The following conclusions can be drawn from the executed functionality analyses for both the types of instrument panels of motor car. Currently used analogue or electronic systems can be successfully replaced by the virtual instrument panels. Functionality of the virtual systems is higher than functionality of the conventional systems. Virtual instrument panels systems are characterized by higher reliability (lack of single systems). Virtual instrument panels enable improved processing of the signals received from individual control systems and sensors and in consequence higher precision of readings.
4
International Conference on Intelligent Information Systems and Management (IISM2010), June10-12, 2010
Virtual instrument panels enable an implementation of new functions and, in consequence, higher versatility of their use. An application of the virtual instrument panel is directly associated with rather high costs of hardware and software installation to be incurred by the user. LabVIEW also has many facilities to add with the virtual panel, and also have the facility to connect the camera for Rear view and include route map through GPS. REFERENCES
Correia A.; Llanos C. H. Q.; Carvalho R. W.; Alfaro S. A. (a), A Design/Testing Platform Based on Reconfigurable Architectures and Virtual Instrumentation Applied to the Hands-free Driving Automobile Problem. WSEAS Transactions on Systems and Control, 2007, Issue 3, vol. 2, pp. 297 304. [2] Correia A.; Llanos C. H. Q.; Carvalho R. W.; Alfaro S. A. (b), A Platform Based on Reconfigurable Architectures and Virtual Instrumentation Applied to the Driving Automobile Problem. 6th WSEAS International Conference on Signal Processing, Robotics and Automation (ISPRA '07). Greece, February 2007, pp. 1 8. [3] Marcin Buczaj, Andrzej Sumorek, Simulation Of Motor Vehicles Instrument Panel In LabVIEW , TEKA Kom. Mot. Energ. Roln. OL PAN, 2007, 7, 5158 [4] Donecker, S. M., Lasky, T. A., Ravani, B., A Mechatronic Sensing System for Vehicle Guidance and Control. IEEE-Transactions on Mechatronics, Vol.8, n.4, December 2003, pp. 500 510. [5] Yang, E., Gu, D., Mita, T., Hu, H., Nonlinear Tracking Control of A Car-Like-mobile Robot via Dynamic FeedbackLinearization. Control 2004, University of Bath, UK. [6] Tzuu-Hseng, S., Chang, S-J., Chen, Y-X., Implementation of Autonomous Fuzzy Garage-Parking Control by an FPGA-Based CarLike Mobile Robot Using Infrared Sensors. International Conference on Robotics & Automation, Taipei, Taiwan, September, 2003, pp. 3776 3781 [7] http://www.ni.com./labview. [8] Giove, D., Martinis C. D., Mauri, M.Reconfigurable Hardware Resource in Accelerator Control System. EPAC, Lucerne, Switzerland, 2004, pp. 701 703. [9] Robert F Coughlin, Frederick F Driscoll Operational Amplifiers and Linear Integrated Circuits (Book) Sixth Edition, PHI, New Delhi, 2008. [10] Tan, H.S., Guldner, J., Patwardhan, S., Chen, C., Bougler, B., 1, Development of an Automated Steering Vehicle Based on Roadway Magnets A Case Study of Mechatronic System Design. IEEE/ASME Transactions on Mechatronics, Vol. 4, 1999, No. 3. pp. 258 271. [1]