joel feinstein austin buchan ben morse theodore martin

13
Joel Feinstein Austin Buchan Ben Morse Theodore Martin 1 18-549: Embedded Systems Design

Upload: ocean

Post on 22-Mar-2016

38 views

Category:

Documents


3 download

DESCRIPTION

18-549: Embedded Systems Design. Joel Feinstein Austin Buchan Ben Morse Theodore Martin. Team Members. Austin Buchan [email protected]. Ben Morse [email protected]. Joel Feinstein [email protected]. Theodore Martin [email protected]. http://www.ragebraker.com/. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

Joel FeinsteinAustin Buchan

Ben MorseTheodore Martin

1

18-549: Embedded Systems Design

Page 2: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

2

Team Members

Austin [email protected]

Ben [email protected]

http://www.ragebraker.com/

Joel [email protected]

Theodore [email protected]

Page 3: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

3

RageBraker is a way to provide drivers with a better sense of how the car in front of them is braking. The device is aimed at helping drivers avoid rear-end collisions.

The device is a brake light system that shows how hard a car is braking using the size and intensity of the light. The data is read from a sensor on the brake pedal and sent to the light. The device can interface with a standard car network.

The alternatives to this device are regular binary brake lights, which do not change based on brake intensity, and the BMW brake light system which has 3 modes: off, normal, and emergency braking which cause the brake lights to flash.

Concept

Page 4: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

4

RageBraker is a proof of concept for putting brake lights onto a car network. The end goal would be for the system to come standard on new cars. The product as displayed could be installed in a car, but would require calibration.

For RageBraker to be successful it must:Be able to update faster than human reaction time under high bus loads at a low priority, so as to not hamper normal car functions.

Handle a broken connection by turning offHave clear enough states for drivers to understand its output.Operate off of a 12V car battery.

Goals

Page 5: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

5

Architecture

Position Data

Page 6: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

6

Components1. Hall Effect Sensor2. Pedal with Magnet3. MC9S12C128 Processor 4. CAN Bus Connector5. Suction Cup6. Commercial LED Brake Light

(Completely Rewired)7. 12V Battery (Can use car

battery)8. ~10ft cable for power and CAN

1

2 3

4

4

5

567

8

34

56

8

5

Page 7: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

7

We decided to measure:Worst case response time with an idle load.Sanity test for the ID filtering mechanism.Visual lag with varying loads provided by two other MCU’s on the CAN.Timeout when CAN is disconnected/resuming operation when restoredWorst case system uptime from power on/reset to LED output (idle load).Data we found: Effect of growing light pattern on human braking.

The testing without load can confirm that the product could run if the product is independent of the car. The ID filtering must work for the receiver to pick up only relevant data. The timeout and system uptime deal with fault tolerance. A real car network will have many devices at a higher priority than RageBraker, so we need to test with a load on the network.

All code from the tests has been kept and can reproduce our results.

Experimentation Campaign

Page 8: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

8

Our CAN bus is running at 400kbps.

Our results are:Worst case response time with an idle load- 200µsID filtering mechanism – Interfering data did not appear on the LED’sVisual lag with varying loads- No visual lag with up to a 99.5% load. When the load is increased to 99.9%, RageBraker does not respond fast enough to be effective, so the system would need at least 1 in 200 messages.Timeout when CAN is disconnected/resuming operation when restored- Lights are set to turn off after ~.2 seconds of no received data.

Worst case system uptime from power on/reset to LED output (idle load). -800µs

From a University of Toronto study by Zhonghai Li and Paul Milgram: Driving simulators that use brake lights that grew in size and got brighter, “We got people to brake 100 to 300 milliseconds sooner.”

http://www.physorg.com/news93882626.html

Experimentation Results

Page 9: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

9

Response time with idle load: 200µs is much faster than a human can notice. With no load RageBraker would never have any lag problems.

The ID filtering mechanism allows for multiple ID’s to be accepted by the receiver. This means code could be added to indicate when the anti-lock brakes are engaged for example, or other data.

The load experiments are the most encouraging: RageBraker can be scheduled to send 1 data frame for every 200 on the bus, and as long as it is not extremely starved, it will work fast enough. Since most car CAN communication is event based, this scheduling seems realistic.

The timeout experiments shows that if RageBraker does become starved, or if the CAN bus gets disconnected, the device will not show false data. Also, when the connection is restored or data is received, the response is immediate.

The power-on/reset experiment shows that if the power gets interrupted briefly, RageBraker can be operational again extremely quickly.

The study about human reactions gives us confidence that our product is useful and will help prevent accidents.

Insights from Measurements

Page 10: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

10

The major areas of performance that need to be addressed are:

Usability: People’s driving styles, attention spans, and reflexes vary wildly. Further testing on brake light shapes and intensity patterns may reveal a better approach to get the maximum effect from the data that RageBraker provides.

Response Time/Starvation/Scheduling: For our testing purposes, RageBraker’s code attempts to send data as much as possible. On a real car system, this would permanently starve out any devices which have a lower priority. Also, because most car systems are event driven rather than scheduled, the worse case starvation time is theoretically infinite. Tuning the timeout time, and perhaps having a blinking light state that reflects a timeout vs. the brakes being off might be better. By testing on a real car system, the appropriate priority can be determined and the scheduling can be calibrated.

Performance of our System

Page 11: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

11

In order to test with load, we made a test rig that consists of two of the same processors that we use. The one processor sends messages over CAN to the other, and we set the priority of that processor higher than RageBraker. We can change how often it sends messages, so we can attempt to simulate a very simple loaded can bus. This test rig can be adapted to other CAN formats, and could be a useful resource for further testing.

Other Features

Page 12: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

12

We did not get to test on the car node system. We feel that it would be beneficial to refining our code and ironing down the specifics of the CAN standard that a sample car uses.

We did not implement the back off mode. We would have liked to do some signal processing and see if we could effectively extract a pattern.

We did not implement any machine learning algorithms. We received a lot of negative feedback about the usefulness of the data, and we do not have extra lights to display the information on.

Open Issues

Page 13: Joel Feinstein Austin Buchan Ben Morse Theodore  Martin

13

What we learned:Staying on top of a project is mostly about communication. Scheduling combined work times is very difficult. Splitting up work makes combined sessions that much faster.

Projects always involve more soldering and crimping than you imagine.

What we accomplished:We finish this project with a proof of concept that should really be able to help solve a serious problem.

We took a idea that was simple and kept it simple. The system is easy to pull apart and put back together, and the code is not hard to tweak. We spent well under our budget.

What we would do differently:Many people believe that a brake light that uses accelerometers for data might be more useful. We would look into this possibility.

Conclusions