IEEE Paper Template in A4 (V1) - ECE Senior Design

advertisement

Hardware-in-the-Loop Testbed

Douglas Pence, Ken Gobin, Aaron Eaddy, Advisor Sung Yeul Park

ECE Team 186 Senior Design, University of Connecticut, Spring 2014

Abstract— In this document, a proof-of-concept design is developed and implemented to show the benefits of a hardwarein-the-loop testbed for energy storage devices. extends even more abstractly in that after our system is working and tested, we can connect an energy storage device and provide results using the same concept for the system that contained the energy storage device being tested.

I.

I NTRODUCTION

This project is aimed at developing a proof-of-concept multi-functional diagnostic test bed for potential use in batteries, fuel cells and various electronic energy storage devices. Our system focuses on the development and implementation of a universal sensor test bed, an interface circuit and a monitoring display which will be potentially operated in conjunction with battery charging technology developed by a previous senior design team. This test bed will allow dynamic diagnostic monitoring through a digital interface with a micro-controller. The aforementioned sensor test bed will relay useful diagnostic data related to the connected electronic storage device being monitored to a computer, where the data can be read and analysed with ease.

II.

S YSTEM M ODEL

IV.

S YSTEM D ESIGN

There are three main phases of our system design; sensor circuitry, analog-to-digital interface circuitry and digital signal processing.

For the sensor circuitry, there are three main sensors; voltage, current and temperature. The temperature circuit interface is a simple thermistor attached directly to the energy storage device being measured. The thermistor output is then electrically connected to the interface circuit board where it is scaled and filtered prior to being fed into the digital signal processing area as shown in Figure 2. The temperature interface circuit is shown in Figure 3 and uses a reference voltage to allow for direct signal comparison of the temperature values and ratios due to scaling. There are four total temperature channels located on the interface circuit board.

Fig. 1: Simplified block diagram of hardware-in-the-loop testbed.

III.

B ACKGROUND

The hardware-in-the-loop test bed has been used for approximately 20 years in the automotive and aerospace industries. This concept allows the testing and troubleshooting of electrical circuits without testing the supporting mechanical components. An electrical test bed is used to simulate real world conditions in real-time. This concept prevents unforeseen catastrophic failures, which saves time and money as well as increasing safety conditions for engineers and workers in the field.

In this project, the hardware-in-the-loop test bed concept allows us to test our circuitry prior to connecting physical energy storage devices to our system. Also, the concept

Fig. 2: Thermistor signal.

Fig. 3: Temperature interface circuit.

The voltage sensor is located directly on the interface board and contains a voltage divider, scaling circuit and filtering circuit. Capacitors were also placed across the operational amplifier (OPAMP) supply to eliminate any feedback noise which may be present. This circuit is shown in Figure 4. For a larger image, please see Appendix A on Supplemental

Materials. There are 4 component voltage channels as well as a total test bed voltage channel on the interface board.

Fig. 4: Voltage interface circuit.

The four current sensors have their own circuit board separate from the interface board to prevent any ground or power issues between the analog and digital signal flow paths.

These outputs from the current sensor is then fed into the current sensing circuit on the interface board where it is scaled and filtered prior to digital signal processing. The current sensor is shown in Figure 5 and the current sensing circuit on the interface board is shown in Figure 6. Both of these circuits are shown larger in Appendix A. analog and conditioned signals on the board. Separate polygon planes were poured to allow for ground and power isolation across the digital isolator during PCB manufacturing.

This circuit is shown in Figure 7 and the PCB Layout is displayed in Appendix A.

The signal processing was done with the dSPACE® RTL

1104 microcontroller. The interface contained 8 ADC inputs and along with the ability to generate PWM signals and digital inputs and outputs which were accessible and controllable with Simulink and dSPACE® Controldesk. In order to accommodate the 12 sensor outputs to the 8 dSPACE® ADC inputs, the interface circuitry needed to utilize synchronized

Time Division Multiplexing to be able to input alternating input signals on the same channel. The PWM generated from the dSPACE® controlled both the select bits from the multiplexors in the sensor circuit and the internal switches inside Simulink which allowed bussed alternating data to be channelled and accessed from their own respective variables on Simulink and dSPACE® Controldesk. The dSPACE®

RTL contains its own custom blocksets that mirror the dSPACE® microcontrollers’ functions and inputs. From within Simulink, the proper gains were added to the current and voltage in order to correct their values. The temperature’s voltage reading was converted to Fahrenheit based on the expected voltage relative to the resistance value of the thermistor.

Fig. 5: Current sensor.

Fig. 6: Current sensing circuit.

The largest and most extensive piece of our design was the interface board which takes all of the analog sensor inputs and conditions the signals and prepares them for use by the dSPACE® simulation tool. The interface circuit board contains all of the sensor signal conditioning circuits, the dSPACE® input 37-pin d-sub connector for pulse width modulation (PWM), and two multiplexers (MUXs) for Time

Division Multiplexing (TDM). Eight BNC connectors are also on the board and provide a path to transfer the conditioned signals through an Analog-to-Digital Conversion

(ADC) interface into dSPACE® for manipulation. A digital isolator separates the digital dSPACE® interface from the

Fig. 7: Interface circuit.

V.

E XPERIMENTAL S ETUP

To achieve the safe and efficient simulation environment mentioned in the background, we used a microcontroller subsystem called dSPACE®. This hardware embedded microcontroller system works directly with MATLAB®

Simulink to build the C++ code and arrange the simulated environment within its system. Parameters can be changed and mathematical manipulation of the input sensor data from the interface board can be used to calculate useful data, such

as State of Charge (SOC), State of Health (SOH), and

Remaining Useful Life (RUL).

Our experimental setup on senior design presentation day consisted of using a bench power supply to simulate voltage and current changes similar to a battery. We chose the bench supply over an actual battery for many reasons. Firstly, it is much safer to have a completely controllable source, which helps predict circuit operation. Secondly, it was a safety concern with electrochemistry, current flow values, and predictability related to the potential for personal injury. An oscilloscope and digital multimeter were used in conjunction with our circuit to provide backup measurements and show signal flow through our circuit. An adjustable potentiometer was used as the simulated load to allow current flow and the current sensing portion of our design to be tested safely and efficiently. Our general layout is shown in Figure 8.

Conclusions

The outcome of our Hardware-in-the-loop Testbed design gives us the functionality to diagnose and monitor any type of electronic energy storage device or fuel cell. Our design currently has the capabilities of diagnosing 4 different inputs’ voltage, current, and temperature along with the total voltage and current if these inputs were connected together. We achieve this through three main parts: the dSPACE® microcontroller, interfacing circuit, and sensors. These three components allows us to get the information we need to in the future calculate state of charge, state of health, and the remaining useful life of the battery. Potential future improvements to the design include a more compact commercial design for our sensor circuit, as well as the ability to expand the number of battery cells that can be analysed at one time. Eventually preset dSPACE® Control Desk layouts can be made so that the user can select from multiple layouts to monitor the different characteristics of the energy storage devices.

R EFERENCES

[1] R. A. Gayakwad, Op-Amps and Linear Integrated

Circuits , Prentiss Hall, 2000.

[2] dSPACE® Operating Mauals, RTI-1104.

Fig. 8: Experimental layout.

VI.

R ESULTS

Analysis

The analysis of the voltage, current, and temperature readings currently contains a lot of ripple in the signal. When processed through dSPACE® and displayed on the computer the signals seem to be getting up to a maximum of 50% ripple.

This may have been caused by the errors in the initial PCB design. In the PCB the poured polygons do not seem to transfer the power and ground signals throughout the entire board, which leads us to assume that there might be a break in the polygon at some point in the PCB. In order to get over this problem we had to supply our external current sensor and other ICs that needed the 5V supply using jumpers. Also for the voltage reading there is an isolated ground issue where the

BNC for voltage is not grounded to the right reference, thus giving us the wrong value. To fix this problem we used the signal form the BNC and used wires external to the PCB to connect them to the right grounds. For the temperature sensor the scaling will need to be altered in the future to show more minimal changes in temperature. Also, the signal processing model did not incorporate a sample and hold block, so the sample and hold block will need to be utilized in order to hold the channels previous value in periods where the multiplexors are not switched to that specific channel.

Appendix A: Supplemental Materials

Printed Circuit Board Design for Interface Board

Download