вторник, 2 апреля 2019 г.

Antilock Brake System Abs Model Based Design Computer Science Essay

Anti pursue halt form Abs Model Based Design Computer Science EssayAn Antilock Brake ashes (ABS) is a closed loop restrainer brass that modu slows the pasture halt tortuousness that is applied to the flap in influence to prevent the run intoled datethe from becoming fully locked. ABS is among the most important safety arrangements in a fomite. In automatic highway placement, automatic halt actuation is a really important exposit of the overall fomite subordination st prisegy. It prevents the stand lock-up under critical braking conditions, such as those encountered with wet or tricky road surfaces and device driver panic reaction (Bosch, 1995). By preventing the motorcycle lock-up, ABS ensures that the vehicle re main(prenominal)s responsive to bakshising pluck inputs. Reduced stopping outdo on account of ABS is more evident on wet or jiggery-pokerypery road surfaces (Garrick et al., 1998).1.2 MODEL BASED DESIGNDesigners of insert inhibit system package intersection face difficult challenges. In minimal brain dysfunctionition to the privation to complete projects at low cost and indoors tight schedules, imbed bind system softw ar system graphic nameers must grant predictable proceeding and competitive features for the products they deliver. Traditional modes of imageing, testing, and implementing embedded rule systems cause room decorators to wait until late in the design effort, when actual or exemplar products and real time embedded scores be get down forthcoming, to find out if softw be really interpret-up the ghosts as it was intended to. Only consequently, as system integration occurs, loafer the designer uncover the fractures that w sum upethorn have found their way into the product during the archeozoic design stages.Model-Based Design with MathWorks tools provides a proven technique for creating embedded go steady systems. It is used today for satellites, aircraft, and many other aerospace applicat ions, in the automotive industry, and for butt against adjudge, computer peripherals and industrial machinery. Through Model-Based Design, embedded control system design teams pile begin evaluating softw atomic number 18 designs without using prototype products and real-time targets. The MathWorks surroundings for Model-Based Design allows engineers to mathematically baby-sit the mien of the physical system, design the softw ar and form its behavior, and then affect the wide-cut system form to accurately predict and optimize cognitive work. The system impersonate becomes a specification from which you piece of ass mechanically generate real-time softw atomic number 18 for testing, prototyping, and embedded implementation, thus avoiding manual(a) effort and reducing the potential for errors. material body 1.1. Model-Based Design for embedded control system softwareChanges or dressions to the system requirements and specifications are soft incorporated into the manaki n, fully evaluated by pretension, and mechanically reflected in the final real-time embedded software.1.3. MODELING AND benefit-believeTo effectively design an embedded control system and accurately predict its performance, designers must understand the behavior of the full(a) system in which the control system will reside. MATLAB and Simulink form the core out milieu for Model-Based Design for creating accurate, mathematical examples of physical system behavior. The graphical, block-diagram paradigm of the MathWorks environs lets you drag-and-drop predefined exemplar elements, connect them together, and create simulations of dynamic systems. These dynamic systems hatful be continuous-time, multi-rate discrete-time, or virtually any combination of the three. You substructure create usage stumper elements or reuse legacy statute-based specimens by incorporating C, Fortran, or adenosine deaminase code straight off into the modeling environment.The modeling environment is hierarchical and self-documenting. System structure and function finish be clearly expressed by grouping model elements in virtually any combination, allowing large teams to work concurrently on the design. Libraries of hierarchical elements can be stimulateily created, allowing those elements to be reused slowly by other members of the design team or on subsequent designs. Fully integrated into the environment is the capability to graphically model event-driven systems using state charts, truth tables, and flow diagrams. Specialized capability for machinethe likes of and electrical power systems allows models of these systems to be constructed using modeling elements that correspond directly to the structure of the physical system, avoiding the penury to express them as mathematical equatings. If prototype or actual physical systems are available and input/yield data can be acquired from them, mathematical models can also be created using system identification techniques .As soon as a hierarchical element of the model is constructed, that element can be simulated. manikin allows specification, requirements, and modeling errors to be found immediately, rather than waiting until later in the design effort. As the model becomes big, through the addition of hierarchical elements or by increasing the complexity of existing match slights, the designer can uphold to find and correct errors during simulation by using the model coverage, performance write, and interactive debugging features. When the physical system model is specified to the required train of detail and simulation has shown the model to be accurate, the control system can be designed.1.4. CONTROL SYSTEM SOFTWARE DESIGNWith the behavioral model of the physical system available, the designer can begin the embedded control system software design. The MathWorks environment for Model-Based Design supports many types of control system design techniques and requirements that range from the si mple to the most complex and large-scale. For example, some product designs may require using linear control design methods to line up the correct algorithms and parameters for the control system software. Using MATLAB and Simulink, the designer can automatically create the linear physical system models needed by this design technique, calculate the parameters, and then visualize the chairs using Bode plots and root locus diagrams. Other applications may require less(prenominal) sophisticated techniques to determine the correct control system design. Regardless of the control system design method used, the MathWorks environment for Model-Based Design helps the designer use interactive simulation to quickly evaluate each control system design model in conjunction with the physical system model and avoid the risk, expense, or need for prototypes or actual physical systems.As the control system useable design is completed and the target environment needs to be considered, the des igner can specify implementation details for the software directly in the modeling environment. The MathWorks environment supports all aspects of control system software design, including processor, interface, or standards issues. For example, you may need scaled integer or fixed- blot data types for target processors that have no floating- point math capability. The effects of fixed-point mathematics can be evaluated by simulation, to see if the proper data sizes and scale factors have been selected. data structures that are needed to meet software standards or target environment interface requirements can be defined as leave-taking of the system model and then complete when the embedded control system software is automatically generated.When the control system software design is complete, you can simulate the en tucker system model. During simulation, you can automatically collect model profiling and coverage information that will help you assess performance and fancy errors. I f performance does not meet expectations or errors are found, you can easily change the model to correct the problem and then simulate the model again to confirm the change or correction. Once simulation of the en wipe out system model has shown that the design meets the desired performance requirements, you can automatically generate software for real-time testing and implementation, using the model as a specification.1.5. EMBEDDED SOFTWARE TESTING AND IMPLEMENTATIONUsing the system model and Real-Time Workshop, real-time code for testing, validation, and embedded implementation on the production target processor can be automatically generated. As it is created, the code is automatically optimized for unfaltering execution and efficient use of memory. automatically generating code from the system model avoids errors due to manual translation of the model into code, and saves time, allowing software developers to focus on more demanding tasks.The MathWorks provides a turnkey softw are environment called xPC Target for real-time prototype testing, calibration, and validation of this automatically generated code using a PC-based hardware target system. xPC Target includes a real-time kernel, device drivers, and all the support software needed to create a rapid control prototyping system for real-time software testing and validation. It can also be used to provide hardware-in-the-loop capability, using code generated automatically from the physical system model. Hardware-in-the-loop testing allows the designer to simulate the real-time behavior and characteristics of their physical system, so that prototype or production control system software can be tested without the need for the actual hardware or operational environment. For embedded system designers who prefer an integrated capability, The MathWorks has a fully tested, custom con enrold, PC-based target hardware system.Chapter 2MODELING AND theoretical account2.1. MODELINGA computer model, as used in m odeling and simulation science, is a mathematical mold of something-a person, a building, a vehicle, a tree-any object. A model also can be a representation of a process-a weather pattern, traffic flow, air flowing over a wing.Models are created from a mass of data, equations and computations that mimic the actions of things represented. Models usually include a graphical display that translates all this number crunching into an animation that you can see on a computer screen or by government agency of some other visual device.Models can be simple images of things-the outside shell, so to s full stop-or they can be complex, carrying all the characteristics of the object or process they represent. A complex model will simulate the actions and reactions of the real thing. To conduct these models behave the way they would in real life, accurate, real-time simulations require fast computers with lots of number crunching power.2.2. SIMULATIONSimulations (and models, too) are abstract ions of reality. Often they deliberately evince one part of reality at the expense of other parts. Where as models are mathematical, logical, or some other structured representation of reality, simulations are the specific application of models to arrive at some outcome.2.2.1 Types of simulationsSimulations generally come in three styles live, virtual and constructive. A simulation also may be a combination of deuce or more styles. blend in simulations typically involve humans and/or equipment and activity in a decorateting where they would operate for real. Think war games with soldiers out in the subject field or manning command posts. Time is continuous, as in the real world. other example of live simulation is testing a car stamp battery using an electrical tester.Virtual simulations typically involve humans and/or equipment in a computer-controlled setting. Time is in discrete steps, allowing users to concentrate on the important stuff, so to speak. A flight simulator fall s into this category.Constructive simulations typically do not involve humans or equipment as participants. earlier than by time, they are driven more by the proper sequencing of events.A simulator is a device that may use any combination of sound, sight, transaction and smell to make you feel that you are experiencing an actual situation. Some picture games are good examples of low-end simulators. Simulations are complex, computer-driven re-creations of the real thing. When used for training, they must take on reality accurately otherwise you may not learn the remediate way to do a task.2.3. MODELING AND SIMULATING ORDINARY SECOND collection DIFFERENTIAL EQUATIONConsider the second order differential gear equation(1)This can be written as deuce firstly order differential equations if we introduce two new variables, x1(t) and x2(t). Let x1(t)=y(t). We can then write two coupled first order equations.(2)(3)The solution can be approximated in Simulink by using two integrators t o integrate the first order differentials.2.3.1. building a Simulink ModelWe bulge out Simulink from the Matlab prompt by typing Simulink. We will be needing blocks from the Source, Sink, Linear and Non-linear libraries, so double snarl on them to dependent them up. In the window labeled untitled, drag two integrators from the Linear library, connect them, and change their labels. digit2.1. Building Simulink Model (Step 1)The input to the left integrator is the derivative of x2, and its output is x2. The input to the rightmost integrator is the derivative of x1 (=x2), and its output is x1.We can complete the representation of the differential equation debar for the input, by adding two gain blocks (and flipping them using the Format option of the Simulink notice. soma2.2 Building Simulink Model (Step 2)To add the input we will use the clock (from Source), the trigonometric function (from Non-Linear) and another gain block. The completed diagram should look like the one show n below. material body2.3. Building Simulink Model (Step 3)2.3.2. Running Simulation and Viewing ResultsTo stead the results of the simulation, add a scope (from Sink). In this strip we only indispensableness to view 80 ms of simulation, so go to the Simulation menu and choose Parameters, and set the stop time to 0.08 seconds. To sustain the simulation hit the start button, or go to Simulation-Start. The scope output is shown below (after zooming with the binocular tool at the top of the scope window.Fig2.4 Simulation Results of the ModelIt is oftentimes desirable to save the data to Matlab. To save the time variable, the input and the output, we add three To Workspace blocks (from Sink) and present them each a different name (these are the names of the variables that will be in the Matlab workspace).Fig2.5 Building Simulink Model (Step 4)Chapter 3ANTI-LOCK BRAKING SYSTEM3.1 INTRODUCTIONAntilock Braking Systems (ABS) are closed loop control devices within the braking systems w hich prevent the wander lock-up during braking and as a result, retain vehicle steerability and stability. The main ABS components are hydraulic modulators, bicycle urge oning sensing elements, ECU for signal processing and control and triggering of the signal lamp and of the actuators in the hydraulic modulator.Fig 3.1 Location of the ABS in a vehicle3.2 DESCRIPTION OF THE SYSTEMThe theory behind anti-lock halt is simple. A skidding roll (where the peter out contact patch is sliding congress to the road) has less traction than a non-skidding wheel. If we have been stuck on ice, for example, we know that if the wheels are whirl we have no traction. This is because the contact patch is sliding relative to the ice. By keeping the wheels from skidding while we slow down, anti-lock brakes benefit in two ways The vehicle stops faster, and we will be able to steer while we stop.There are cardinal main components to an ABS system recreate Sensors, Pump, Valve and an ECU.3.2.1 S peed SensorThe anti-lock braking system needs some way of keen when a wheel is about to lock up. The look sharp demodulators, which are located at each wheel, or in some cases in the differential, provide this information.3.2.2 ValvesThere is a valve in the brake line of each brake controlled by the ABS. On some systems, the valve has three setsIn position one, the valve is open obligate from the master cylinder is crystalliseed right through to the brake.In position two, the valve blocks the line, isolating that brake from the master cylinder. This prevents the blackjack from rising barely should the driver push the brake pedal harder.In position three, the valve releases some of the pressure from the brake.3.2.3 PumpSince the valve is able to release pressure from the brakes, there has to be some way to put that pressure back. That is what the pump does when a valve reduces the pressure in a line, the pump is there to get the pressure back up.3.2.4 The ECUThe ECU receives , filters and amplifies the festinate up sensor signals and ascertains from them the degree of wheel drift off and the acceleration of the individual wheels as well as the reference stop number which is the best possible deliberation of the vehicle road speed. Most of the systems use vehicle specific LSI circuits for this purpose.Fig 3.2 Anti Lock Brake Pump and Valves3.3 WORKING OF ABSThere are many different variations and control algorithms for ABS systems. We will discuss how one of the simpler systems works. The control condition monitors the speed sensors at all times. It is looking for decelerations in the wheel that are out of the ordinary. Right before the wheel locks up, it will experience a rapid deceleration. If left unchecked, the wheel would stop much more quickly than any car could. It might take a car volt seconds to stop from 60 mph (96.6 kph) under ideal conditions, but a wheel that locks up could stop spinning in less than a second.The ABS controller knows that such a rapid deceleration is impossible, so it reduces the pressure to that brake until it sees acceleration, then it increases the pressure until it sees the deceleration again. It can do this very quickly, before the tire can actually significantly change speed. The result is that the tire slows down at the same rate as the car, with the brakes keeping the tires very near the point at which they will start to lock up. This gives the system level best braking power.When the ABS system is in operation we will feel a pulsing in the brake pedal this comes from the rapid opening and closing of the valves. Some ABS systems can cycle up to 15 times per second.3.4 TYPES OF ABSAnti-lock braking systems use different schemes depending on the type of brakes in use. Referring them by the number of channels, that is, how many valves that are individually controlled and the number of speed sensors, we have the followingi) Four-channel, four-sensor ABS This is the best scheme. There is a speed sensor on all four wheels and a separate valve for all four wheels. With this setup, the controller monitors each wheel individually to make sure it is achieving level best braking force.ii) Three-channel, three-sensor ABS This scheme, commonly found on lam trucks with four-wheel ABS, has a speed sensor and a valve for each of the front wheels, with one valve and one sensor for both rear wheels. The speed sensor for the rear wheels is located in the rear axle. This system provides individual control of the front wheels, so they can both achieve maximal braking force. The rear wheels, however, are monitored together they both have to start to lock up before the ABS will jaunt on the rear. With this system, it is possible that one of the rear wheels will lock during a stop, reducing brake effectiveness.iii) One-channel, one-sensor ABS This system is commonly found on pickup trucks with rear-wheel ABS. It has one valve, which controls both rear wheels, and one speed sensor, located in the rear axle. This system operates the same as the rear end of a three-channel system. The rear wheels are monitored together and they both have to start to lock up before the ABS kicks in. In this system it is also possible that one of the rear wheels will lock, reducing brake effectiveness. This system is easy to identify. ordinarily there will be one brake line sledding through a T-fitting to both rear wheels. We can locate the speed sensor by looking for an electrical connection near the differential on the rear-axle housing.Chapter 4IMPLEMENTATION OF ANTI-LOCK BRAKING SYSTEM4.1 BLOCK DIAGRAM OF ABSOn initial braking, the brake pressure is increased, the brake rusticity rises and at the maximum point on the adhesion/ lift curve, it reaches the limit between the unchangeable and unstable ranges. From this point on, any further increase in the brake pressure or braking tortuosity does not cause any further increase in braking force FB. In the stable range, the brak e dockage is largely deformation slip, it increasingly tends towards skidding in the unstable range.ActuatorDesired rusticityControllerVehicle DynamicsActual SlipFig4.1. Block plat of ABSWe model the ABS using Matlab/Simulink where in the various mechanical blocks are realized and mathematical models of the same are readily available in the Simulink library. The ABS simulation model follows the below shown control loop. The reference variable is the desired relative slip which is fed as an input to the system. The control system in our case is the wheel whose parameters like wheel speed are mensurable. The feedback route consists of the user defined equation which measures the relative slip of the wheel and the error is rectified at the initial stage. The model represents a single wheel, which may be replicated a number of times to create a model for a multi-wheel vehicle.Fig 4.2. ABS Control Loop4.2 ANALYSIS OF ABSFor understanding the model of ABS, we make use of the free body diagram of a wheel. We make use of the formulae for force and tortuousness acting on the wheel. The below figure gives us a clear understanding about the forces acting on a wheel. The wheel rotates with an initial angular speed that corresponds to the vehicle speed before the brakes are applied. We used separate integrators to compute wheel angular speed and vehicle speed. We use two speeds to calculate slip, which is dictated below. Note that we introduce vehicle speed expressed as an angular velocity (see below).. (Equal to wheel angular speed if there is no slip.) (1)Fig 4.3 Free Body Diagram of a single wheel(2)(3)is the wheel speed divided by the wheel radius.is the vehicle linear velocity.is the wheel radius.is the wheel angular velocity.We can also write (3) as(4)WhereV is the vehicle speed, is the wheel speed and r is the radius of the wheel. From these expressions, we see that slip is zero when wheel speed and vehicle speed are equal, and slip equals one when the wheel is locked. A desirable slip value is 0.2, which way that the number of wheel revolutions equals 0.8 times the number of revolutions under non-braking conditions with the same vehicle velocity. This maximizes the adhesion between the tire and road and minimizes the stopping distance with the available abrasion.If an excessive brake tortuousness is applied, the wheel will be locked, which instrument that it slides on the road surface but does not rotate at all. A locked wheel has no lateral stability and less longitudinal friction force, which is the ultimate force to stop the vehicle. Thus, a braking with a locked wheel will cause longer stopping distance and lateral instability. The tire force from the road surface causes the wheel velocity to increase, thus decreases the wheel slip. A high leads to a large tyre force and a low leads to a small tyre force. In the increasing part of the -slip curve, an increase of the wheel slip leads to a larger and a larger tyre force, whic h reverses the wheel slip to a small value. However, in the decrease part of the -slip curve, an increase of the wheel slip leads to a smaller and a smaller tyre force, which causes the wheel slip to increase continuously. So, the peak point of the -slip curve is critical.When a braking is initiated, the wheel velocity starts to decrease and the wheel slip starts to increase from zero. The wheel slip may stop increasing and start to decrease before the reaches its peak point. But if an excessive brake torque is applied, the wheel slip may go straightly to a large number, which causes the to pass its peak point and reach somewhere in the decreasing part of the -slip curve. If the brake torque is not reduced quickly at this point, the decline of the road friction force will lead to a rapid increase of the wheel slip and eventually to a wheel lockup. ABS tries to line up when this peak point is going to be reached and then reduces the brake torque properly so that a wheel lockup co uld be avoided.Fig 4.4. -slip Friction CurveIt appears to be true that maintaining the wheel slip at the peak point of the - slip curve is ideal. However, the position of the peak point varies on the different road surfaces. In addition, stay at the peak point of the - slip curve sometime may lead to a poor lateral stability. Thus, many control strategies define their performance determination as maintaining the wheel slip near a value of 0.2. This represents a compromise between the lateral stability, which is best at =0 and the maximum deceleration which usually appears when is between 0.1 and 0.3.4.3 IMPLEMENTATIONThe friction coefficient between the tire and the road surface, , is an empirical function of slip, known as the -slip curve. We created mu-slip curves by red MATLAB variables into the block diagram using a Simulink lookup table. The model multiplies the friction coefficient, , by the weight on the wheel, W, to yield the frictional force, Ff, acting on the circumfer ence of the tire. Ff is divided by the vehicle mass to produce the vehicle deceleration, which the model integrates to obtain vehicle velocity.In this model, we used an ideal anti-lock braking controller, that uses bang-bang control based upon the error between actual slip and desired slip. We set the desired slip to the value of slip at which the -slip curve reaches a peak value, this being the optimum value for minimum braking distance (see telephone circuit below.).Note In an actual vehicle, the slip cannot be measured directly, so this control algorithm is not practical. It is used here to illustrate the conceptual construction of a simulation model.Fig 4.5. Simulink Model of the ABSIn the supra figure, the wheel speed, vehicle speed and the stopping distance are measured and the error value is fed back through the feedback path. Also, tire torque and the relative slip are fed as inputs to the wheel speed block. Notice that the model is a reference model which has its own intr insic block. Double click on the Wheel Speed subsystem in the model window to open it. Given the wheel slip, the desired wheel slip, and the tire torque, this subsystem calculates the wheel angular speed.To control the rate of change of brake pressure, the model subtracts actual slip from the desired slip and feeds this signal into a bang-bang control (+1 or -1, depending on the sign of the error). This on/off rate passes through a first-order lag that represents the delay associated with the hydraulic lines of the brake system. The model then integrates the filtered rate to yield the actual brake pressure. The resulting signal, multiplied by the piston area and radius with respect to the wheel (Kf), is the brake torque applied to the wheel.Fig 4.6. Wheel Speed Model for the ABSThe model multiplies the frictional force on the wheel by the wheel radius (Rr) to give the accelerating torque of the road surface on the wheel. The brake torque is subtracted to give the net torque on the w heel. Dividing the net torque by the wheel rotational inertia, I, yields the wheel acceleration, which is then integrated to provide wheel velocity. In order to keep the wheel speed and vehicle speed positive, peculiar(a) integrators are used in this model. afterwards we build the ABS model in simulink, we have to configure the parameters related to simulation of the model. We need to specify that the signals are exported to the Matlab workspace where they are analyzed and results are viewed. This is done by checking the signal put down field in the configuration parameters option provided in the simulation tab.Fig 4.7. Configuring Parameters for the modelWe make a Matlab code which makes use of the inputs and outputs used by the simulink model and we plot the waveforms.4.3.1 ABS Codeh = findobj(0, Name, ABS Speeds)if isempty(h),h=figure(Position,26 239 452 257,Name,ABS Speeds,NumberTitle,off)endfigure(h)set(h,DefaultAxesFontSize,8)logsout.unpack(all)plot(Vs.Time, Vs.Data)set(find obj(type,line),color,0 1 0)hold onplot(Ww.Time, Ww.Data)title(Vehicle speed and wheel speed)ylabel(Speed(rad/sec))xlabel(Time(secs))set(gca,Position,0.1300 0.1500 0.7750 0.750)set(get(gca,xlabel),FontSize,10)set(get(gca,ylabel),FontSize,10)set(get(gca,title),FontSize,10)% Plot arrow with eminencehold onplot(5.958 4.192,36.92 17.29,r-,5.758 5.958 6.029,36.55 36.92 35.86,r- )text(8.533,54.66,Vehicle speed (omega_v),FontSize,10)plot(7.14 8.35,43.1 56.3,r-,7.34 7.14 7.07,43.4 43.1 44.1,r- )text(4.342,15.69,Wheel speed (omega_w),FontSize,10)drawnowhold offh = findobj(0, Name, ABS Slip)if isempty(h),h=figure(Position,486 239 452 257,Name,ABS Slip,NumberTitle,off)endfigure(h)set(h,DefaultAxesFontSize,8)slp = logsout.slp.Datatime = logsout.slp.Timeplot(time,slp)title(Slip)xlabel(Time(secs))ylabel(Normalized Relative Slip)set(gca,Position,0.1300 0.1500 0.7750 0.750)set(get(gca,xlabel),FontSize,10)set(get(gca,ylabel),FontSize,10)set(get(gca,title),FontSize,10)Chapter 5RESULTS AND CONCLUSIONA fter building the model, we simulate it using the options provided in the same Simulink window.5.1 RUNNING THE SIMULATION5.1.1 With ABSPress the Play button on the model toolbar to run the simulation. We can also run the simulation by executing the sim(FILE NAME) command in MATLAB. ABS is turned on during this simulation.Fig 5.1 Vehicle Speed and Wheel Speed(with ABS)The model logs relevant data to MATLAB workspace. Logged signals have a blue indicator. In this case yout and slp are logged (see the model).The above figure visualizes the ABS simulation results. The first plot in figure shows the wheel angular velocity and corresponding vehicle angular velocity. This plot shows that the wheel speed stays below vehicle speed without locking up, with vehicle speed going to zero in less than 15 seconds.Fig 5.2 Normalised Relative Slip(with ABS)5.1.2 Without ABSFor more meaningful results, consider the vehicle behavior without ABS. At the MATLAB command line, set the model variable ctrl = 0. This disconnects the slip feedback from the contro

Комментариев нет:

Отправить комментарий