Sponsor Success Thursdays: University of Washington

Even more than successes, failures can yield valuable insight and lessons.  In EcoCAR 2, failures can yield help from colleagues and competitors alike. The University of Washington’s controls lead Trevor Crain explains the trouble his team had with the dSPACE Hardware-in-the-Loop (HIL) simulator at the Winter Workshop in Austin last year:

One of the primary Winter Workshop presentations was a demonstration of our team’s progress on control system and HIL development.  The presentation had several components, including a dynamic presentation of the dSPACE HIL running our stock Malibu vehicle model in real time.  The model is set up to simulate all the primary powertrain components on the stock Malibu. The vehicle model on the HIL was supposed to take hardware inputs from an accelerator pedal and brake switch and receive commands from our supervisory controller, the MicroAutoBox (MABx), over a physical wiring harness.

In addition, the MABx control code needed to respond safely to potential failures in the vehicle to ensure occupant safety and prevent damage to the vehicle components.  These failures may take the form of short circuits in the wiring harness, mechanical failures and a host of other problems.  The goal of designing a fault-tolerant control system is to anticipate these faults and have a supervisory controller that reacts in the safest way possible.  At the workshop, we were supposed to simulate a few of these faults, such as an unreasonable accelerator pedal signal. The control code loaded onto the MABx was designed to recognize this fault, set a fault flag and use that flag to take corrective action.

Unfortunately, just before the workshop our team ran into some of these faults a bit earlier than intended.  We ended up losing our CAN communication channels into the MABx a few days before we shipped the HIL, and we were not able to diagnose if the error was due to software or hardware issues before we had to send the HIL to the workshop.  In the days after shipping, we modified both our code and wiring harness to try and increase our odds of regaining communication once we tested everything.

The workshop was a whirlwind of activity trying to get the HIL up and running, preparing for our presentation, and attending the training sessions offered by project organizers and sponsors.  Thankfully, we received a huge amount of assistance from dSPACE and our mentor, Vince Sabatini.  They were incredibly helpful in trying to get us back to operational, but unfortunately we ran out of time before we could reestablish communication between the HIL and MABx.  We finally ended up reverting to our last resort plan of presenting our supervisory control code and fault mitigation strategies using Simulink.  It was a disappointing outcome, but it also served as a good reminder that we always need to be ready for the worst possible scenario and have a plan of action, be it in our control code or in real life. Even more than that, we learned that we’re going to have to be more prepared for future workshops and competitions so that we won’t have to use our worst-case scenario plans.

In fact, the dSPACE members were awesome in helping us figure out where to go post-workshop.  They helped us determine that our harness could definitely use some work and caused a lot of the problems due to shorts in the connectors.  Vince helped us get a lot more familiar with diagnosing shorts in the harness and working with the hardware, and their presentations were really helpful for learning how to use the software more effectively.

As of right now we’re working on a new, more reliable harness with automotive-grade connectors in addition to setting up a more standardized signal processing blockset in Simulink.  In addition, we spoke a lot with University of Victoria’s controls team at the workshop, and we have already started swapping ideas and progress updates back and forth.  EcoCAR 2 has a great atmosphere of friendly competition, and we’re starting to really communicate with other teams to try and get everyone’s vehicles running in top form come next year.  It’s going to be a tough competition, but with the support from the sponsors, organizers, and other schools we’re really looking forward to Year Two.

Categories: