Sequential LED Tail Lights For Ford Mustang

Similar documents
Sequential LED Tail Lights For Ford Mustang

Dealing with customer concerns related to electronic throttle bodies By: Bernie Thompson

EXTERIOR LAMPS - OPERATION

SOLID-STATE POWER DISTRIBUTION

1 Introduction. 2 Cranking Pulse. Application Note. AN2201/D Rev. 0, 11/2001. Low Battery Cranking Pulse in Automotive Applications

Indian Speedometer and Body Control Module Service Tool Users Guide

POWER LOCK SYSTEMS 8P - 1 POWER LOCK SYSTEMS TABLE OF CONTENTS

POWER MIRROR SYSTEMS

Timing is everything with internal combustion engines By: Bernie Thompson

Modifying the exterior lighting of the Ram truck

NOTE: The Smart Junction Box (SJB) is also known as the Generic Electronic Module (GEM).

ELM327 OBD to RS232 Interpreter

EEL Project Design Report: Automated Rev Matcher. January 28 th, 2008

VEHICLE THEFT/SECURITY SYSTEMS

REC-11+ REMOTE RECEIVER UNIT

SUBJECT: Automatic Stability Control with Traction Control System (ASC+T)

FOUR-WHEEL ANTI-LOCK BRAKE SYSTEM (4ABS)

GTWY505 Fast Idle, Shift Interlock, I/O Ford E-Series

Chapter 1: Battery management: State of charge

Vehicle Diagnostic Logging Device

GENERAL MOTORS SERVICE PARTS OPERATION 6200 Grand Pointe Drive, Grand Blanc, MI 48439

Infinitybox Express Road Race Car Kit Installation Guide

IVTM Installation Manual

1998 E-Series Workshop Manual

Ford Mustang V6 OEM-Style Fog Light Kit Parts List: Quantity: Tool List:

Preparing and programming of ESGI 2 LPG supply system manual

STARTING SYSTEMS 8B - 1 STARTING SYSTEMS CONTENTS

Installation Instructions

Installation and Maintenance Instructions. World Leader in Modular Torque Limiters. PTM-4 Load Monitor

VEHICLE REGENERATIVE DECELERATION ACTUATOR AND INDICATOR SYSTEM AND METHOD

Powertrain Control Software

ELM327 OBD to RS232 Interpreter

Vehicle Control System with Accident Prevention by Using IR Transceiver

How to fit the remote parking heater module

P0030, P0036, P0050, P0053, P0054, P0056, P0059, P0060, P0135, P0141, P0155, or P0161

Occupant Classification Sensor

Test Plans & Test Results

P1110-EVAL-PS. PowerSpot RF Wireless Power Development Kit for Battery Recharging. User Manual

Water in Fuel Sensor Kit

AS-4000 OPERATING INSTRUCTIONS (PS-5000)

OSC is your electric meter expert. When you have questions or need assistance in selecting the proper meter for the job, call us!

MB A 12V/24V DC PROGRAMMABLE DUAL BATTERY ISOLATOR

Optional: Wiring a Relay for Gauge Controlled Output

MANUAL TROUBLESHOOTING. ECM Motor. ECM / ECM-DX Series. v100 Issue Date: 08/15/ Price Industries Limited. All rights reserved.

OVERVIEW. Table of Contents. Bikes with a H4 or H7 (with P43t expander) headlamps

GTWY515, GTWY516* Fast Idle, Shift Interlock, I/O Ford Transit Introduction

Nickel Cadmium and Nickel Hydride Battery Charging Applications Using the HT48R062

J1939 POWERCELL Setup and Configuration Guide Universal Switch Interface

University of Houston Master Construction Specifications Insert Project Name SECTION ELECTRONIC VARIABLE SPEED DRIVES PART 1 - GENERAL

SECTION Instrument Cluster and Panel Illumination

VEHICLE THEFT/SECURITY SYSTEMS

Part Number: kW 800 Incoloy Element kW 800 Incoloy Element With 4kW Titanium Element kW 800 Titanium Element

Design and Experimental Study on Digital Speed Control System of a Diesel Generator

Mar H: SUPPLEMENTAL PARALLELING GEAR (16315-H)

ZT-USB Series User Manual

Overview of operation modes

VEHICLE THEFT/SECURITY SYSTEMS

SCHEMATIC AND ROUTING DIAGRAMS

SECTION B1: MACHINE COMPONENTS

DLKEK3HN INSTALLATION INSTRUCTIONS

Vehicle Improvement Products

Vehicle Security System

ATOTH-G Series BLDC Motor Controller. User s Manual

SPA MICROPROCESSOR 3 STAGE PROGRAMMABLE SHIFT LIGHT INSTALLATION AND OPERATING MANUAL PAGE 2...INSTRUMENT FEATURES. PAGE 3...INSTALLATION NOTES.

Product Guide: Series III Pump Control Board Set (RoHS)

QUICK INSTALLATION GUIDE

An ISO 9001:2008 Registered Company

DQT S GENX 6 INSTALLATION GUIDE

SECTION B: SYSTEM OPERATING COMPONENTS

2002 Dodge Intrepid ES ACCESSORIES & EQUIPMENT Anti-Theft Systems - Concorde, Intrepid & 300M

Diagnostic. Enlightenment. The Path to

Eclipse Solar Suitcase

Introduction...3. System Overview...3. PDC Control Unit Sensors PDC Button Interfaces Activation of the PDC...

Basic voltmeter use. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Purpose of the System...3. System Components...3 Instrument Cluster Display...4

User Manual. Compact Tester II st Edition

EPC DC MOTOR SPEED CONTROL

model ps600 Address all communications and shipments to: FEDERAL SIGNAL CORPORATION

AUTOMATIC CONTROL ROLLING DOOR OPENER

ITCEMS950 Idle Timer Controller - Engine Monitor Shutdown Isuzu NPR 6.0L Gasoline Engine

TECHNICAL SPECIFICATIONS OF 2 KVA POWER CONDITIONING UNIT

Part Number AEM 4-CH WIDEBAND UEGO CONTROLLER

U L T I M A T E R A D A R / L A S E R D E F E N S E S Y S T E M

Wiring Installation Instructions for : Pressure. Wiring Installation Instructions for : Temperature. 2 1/16 Spek Pro Professional Racing Gauge

PowerCommand 2100 digital generator set control

Optimal Series. Automatic Transfer Switch. Installation and User Manual for the OPT2225 Automatic Transfer Switch. Full Version

Detailed Design Review

2001 Chevrolet Corvette ACCESSORIES & EQUIPMENT Remote Keyless Entry Systems - Corvette

SERIES VAC Microprocessor Based Direct Spark Ignition Control FEATURES DESCRIPTION APPLICATIONS THE TOTAL SOLUTION FOR GAS IGNITION CONTROL

METROLOGIC INSTRUMENTS, INC. MX001 Industrial Control Interface Installation and User s Guide

Slippage Detection and Traction Control System

Depress each tab as you pull the bezel off. The bezels are tight. L.H. shown.

Application Engineering

NEW. NanoService for tyre specialists and service areas

Property of American Airlines

SECTION Exterior Lighting


U S A INSTALLATION GUIDE EP400 / E8-B

Evaluation of the visibility of direction indicators for motorcycles

INSTALLATION MANUAL SPECTRUM BRAKE CONTROL

Transcription:

Sequential LED Tail Lights For Ford Mustang Project Description Brandon Delgado Western Washington University EET Fall 2013 Page 1 of 14

I. FUNCTIONAL DESCRIPTION: a. Project Summary The Proposed project is the design and creation of a microprocessor controlled CAN connected, sequential LED tail light system specifically for early model Ford Mustangs. The unit will be able to detect user input such as left/right turn indicator activation, running light activation, and brake system operation. LEDs will be used in the tail light housing. Multiple light sources will allow for an aesthetically pleasing and noticeable display al erting other drivers to the user s intentions. Microcontrollers will control the timing of the LEDs and the CAN network will transmit data from one controller to the other. b. Description There will be three main components in the system, user input detection, signal light controller, and the lighted signals themselves (Figure 1). The user input detection will rely on a microcontroller (MCU) that will detect activation of the turn signal switch including the direction of the switch throw. This will be handled by routing each of the two 12V leads of the turn signal switch into ports of the MCU that can detect high low states. This will be the same method used to detect when the user activates the running lights. However, there wil l be provisions for a pressure sensitive device connected through and A/D converter to activate the brake lights. This will allow the MCU to detect when the driver performs a panic stop and will alert the signal controller to flash the brake lights quickly to ale rt other drivers of a rapid stop (Figure 2). The lights should flash at 4 Hz as required by UN regulation 48 for emergency stop signals. All communications to the signal controller will be made over the CAN. The signal controller will also use an MCU to process the signal states sent from the user input detection controller. The signal controller will then use pulse width modulation (PWM) to control the signal board. The signal controller will also handle the timing and direction of the LEDs. For running lights the LEDs will constantly run at lower than 100% power producing no more than 25 candela, to illuminate the rear of the vehicle (Figure 2). For a turn indicator the lights will be flashed in sequence from the inside of the light housing to the outside at a higher power than that of the running light no more than 420 candela so that other drivers will be able to distinguish the difference (figure 2). For brake lights all LEDs will run at higher power, again, no more than 420 candela to alert others to a stop. If a panic stop signal is received then all LEDs will flash at 4 Hz as defined by UN emergency stop signal (ESS) regulations; to gain the attention of other drivers quickly. The signal board will be of my own design and use surface mount LEDs. The LEDs will be arranged so that they are visible in all three panels of the tail lights and will operate in individual banks. They will be powered off of the vehicles 12v rail and operated via PWM signal from the signal controller. Additional features that could be included are extra modules that operate on the CAN buss. Such as an engine monitoring board with data logging. Also, the whole car could be converted to use the CAN buss so that all electronics are controlled via MCU, including the heater fan which could be controlled using PWM. Of course the light boards will need to fit within the OEM housings. The maximum dimensions must be no more than 6 inches by 8.5 inches.(figure 2) The other units must only fit within the under dash area of the vehicle which is rather large though I intend to keep the unit confined to a 5x3 inch area which should fit nicely beside the fuse box. Page 2 of 14

+12v Figure 1 Turn Indicator Switch +5v Headlight Switch User Input Detection MCU +12v Brake Pedal Switch Signal Control MCU Light board Page 3 of 14

Figure 2 All off Running lights Brake Lights Panic Brake Lights (flashing) Turn indicator sequence 3 8.5 8.5 Page 4 of 14

Figure 3 14k RAM 512k Flash EEPROM ATD0 AN0 Brake Pedal pressure +12v Low Voltage Headlight switch +12v +12v 5 V regulator Reset 9S12DP512 GPIO PTT0 PTT1 PTT2 MCU over voltage protection Turn indicator R Turn indicator L XTAL CAN2 PM6 CAN Transceiver 16MHz Crystal Page 5 of 14

Figure 4 2k RAM Low Voltage 32k Flash EEPROM GPIO PTT0 Orientation Switch 9S12C32 Reset PWM PWM0 PWM1 PWM2 PWM3 +12v LED Power Driver 0-2 5 V regulator LED Power Driver 3 LED Banks 0-2 LED running Lights 8MHz Crystal XTAL CAN0 PM0 CAN Transciever Page 6 of 14

c. Feature List: i. User control via OEM switches ii. CAN communication between control module and light module iii. PWM LED control iv. Separate running, turn indication, and breaking modes Possible Features: i. Panic breaking indication ii. Headlamp control iii. Front turn indicator retrofit iv. Engine diagnostics and data logging d. Detailed Functional Description: Both the user input controller and the light controller will use the 9s12 famil y microcontroller. The input controller will be a 9S12DP512 while the light controller will be a much smaller MC9S12C32. These seem to be the most appropriate units. They were designed for automotive applications in mind. Additional benefits include developer familiarity and the inclusion of MSCAN module. Communications will utilize MSCAN on the CAN 2.0 network. Early research suggest the ability to use a single wire protocol allowing for the use of the original wiring. Communication will be over the driver side break light line while power will be sourced from the passenger side break light wire. As seen in Figure 3 there in the cab of the vehicle controlling the user input will be the 9S12DP512. Connected to it; a hydraulic pressure transducer, a headlight switch and the turn indicator. The 9S12DP512 will handle all of the input from the driver by applying a system that will check the status of each port. This will be stored on the available 512k EEPROM and will utilize the available 14k ram. Also, used be the GPIO, AtoD convertor and the CAN protocol via a CAN transceiver. The brake pedal pressure transducer should use standard 1\4 inch NPT fittings or at least be adaptable and should be optimized for use in a hydraulic circuit. Also, it should operate in a range from 9-15 volts. This will allow operation of the tail lights even when the vehicle is powered off. It will monitor the pressure in the brake circuit and report back to the MCU no other function is required of this unit. The headlight switch is the standard switch installed in the vehicle it has three positions. Off, parking lamps, and headlights. In the off position it 0V will appear on the input to the MCU over voltage protection which in turn will register off on the GPIO port assigned it. In both parking lamp and headlight mode the switch will apply 12V to the MCU over voltage protection circuit which will register as on at the GPIO port assigned it. The turn signal indicator is a single pole center off switch which when activated will apply 12V on one of two channels which will feed into protection circuitry and then Page 7 of 14

into their own individual GPIO ports to alert the Microcontroller that directional signal is required. Figure 4 deals with the control of the actual signaling lights. This is accompl ished by using a 9S12C32 chip. The Microcontroller will use a simple task to check for incoming CAN messages via the CAN transceiver described above. It will then use the PWM ports to drive the required combination of LEDs. There will also be an orientation switch that the controller will use to determine which side of the vehicle it is installed. This, allows the two board to be identical keeping the costs low. The 9S12C32 is also a 5V unit and will require a regulator to protect it from the voltage range of 9-15V. LED power drivers 0-2 will be functionally identical driving a bank of high power LEDs. This can be accomplished with a constant current or constant voltage design. The driver will however require a PWM enable function and both buck and boost characteristics so that the lights will operate regardless of the ignition status. LED power driver 3 will be used to drive the low power LEDs that are used for the running lights. This should be a constant current device with boost characteristics. There a large bank of LEDs however they will use much less current than the high power LEDs. Also, the low power LEDs will also use PWM control. This driver could also use multiplexing to save power. The orientation switch needs be no more than a jumper that will be set to driver or passenger during installation that the MCU will reference so it knows which bank of LEDs is the inboard bank. With this in place it is possible to use the same design for both sides of the vehicle. e. Software Requirements: The primary coding language will used will be ANSI C. Code conventions will be strictly followed. µc/os will be used on the 9S12DP512 as a preemptive kernel which will handle the required tasks and run them at an interval quick enough to keep up with the inputs from the driver; about 5ms. Tasks include, Switch polling, brake pedal polling, and a CAN task. The switch polling will simply check GPIO pins for a high level indicating the activation of either the head light switch or the turn indicator. This information will be sent to the CAN task, which will then send instructions over the CAN network if required. A high priority check of the AtD convertor will be used for the brake pedal as it is a critical indicator. If the brake pedal is depressed then the CAN task will alert the light controller immediately. Also, time permitting, there will be a task to sample the analog output of a hydraulic pressure transducer when the brake pedal is depressed. This will then determine if the panic braking warning need be sent. The preemptive kernel will increase the required amount of ram, however there is 14k available and the program is likely to be less than 5K. The light controller will use a time slice kernel in order to save on required memory as only 2k of RAM is available. Function of the light controller is to receive instructions over the CAN network and activate the corresponding LEDs. This will be done by applying a PWM signal to one of the PWM port pins. Also upon initialization the micro controller will check a switch mounted on the light board to determine which side of the vehicle it is located on. When not actively illuminating the rear lights the board will go into pseudo-stop mode and monitor the CAN network for communications. Page 8 of 14

f. User Interface: The user interface will remain stock as the vehicle came from the factory. This includes the Headlight switch, the turn indicator lever, and the brake pedal. Figure 5 The round switch circled in red in figure 5 is the headlight switch. It is a dual triple throw single dual pole switch. All the way in is off, out one throw is parking lamps(including tail running lights), out two throws engages the headlights as well as the parking lamps. In this project only the pole associated with the parking lamps will be checked. If the driver pull the switch one or two clicks the running lamps will activate in identical function. The lever marked by the yellow rectangle in Fig. 5 above is the turn signal indicator lever. It is a single pole center off double throw switch. It is pressed towards the roof to indicate a right hand turn, and towards the floor to indicate a left hand turn. It automatically returns to the center off position after a turn of the wheel in the indicated direction. Each of the two throws has its own channel that will let the MCU know which direction the switch has been thrown. The brake pedal marked by the green rounded triangle is a lever with the fulcrum attached to the firewall. There is plunger just below the fulcrum that applies horizontal force to the hydraulic reservoir. This in turn creates pressure in the break system. A pressure which forces the brake shoes into the brake drums. The pressure will be monitored be the MCU. Thresholds for no pressure, normal breaki ng, and panic breaking will be established by monitoring brake line pressure in each situation. g. Communication Protocol: The CAN network will be used and will follow the SAE J1939 standard. There are 8 parts in a CAN transmission, start of frame, CAN-ID, Remote Transmission Request, Control, Data field, Cyclic Redundancy Check, Acknowledgement, and End of Frame. The CAN-ID uses a 29bit identifier which is then broken up into five sections. The first three bits sets priority with 0 being highest. A reserved bit and a data page bit used to extend max number of pages. Then the PDU format is 8 bits and is used to determine if the message is meant for the whole network or just one device. Then the last 8 bits are the destination address of the device specific message. The data field is where the message is transmitted in the case of this project, brake, left, right, running, or panic stop. According to SAE specifications the identifier is vehicle specific. If the Ford Motor Company is unwilling to share the current identifiers an arbitrary identifier will be assigned during development. Page 9 of 14

h. Sustainability: This project will use considerably much less power than the OEM 50watt bulbs. Also it will use a low power state to further increase fuel economy by reducing the draw on the engine. Waste must be taken into account by properly simulating the design before attempting to assemble a PCB in order to reduce the amount of unusable components. II. III. Standards: I will use the SAE J1939 CAN standard which will guide CAN integration into a highway legal vehicle. SAE J585 FEB2008 Tail Lamps (Rear Position Lamps) for Use on Motor Vehicles Less than 2032 mm in Overall Width SAE J586 JUL2007 Stop Lamps for Use on Motor Vehicles Less than 2032 mm in Overall Width SAE J588 MAY2006 Turn Signal Lamps for Use on Motor Vehicles Less than 9.1 m in Overall Length (SAE J1373 was removed as it concerned corning lamps which are not turn signals but are white lights used to illuminate the direction which the vehicle is turning. This does not fall in the scope of this project.) Development Plan: a. Development Tasks: First priority will be to design and build the light boards. This includes selection and testing of LEDs, circuit design and simulation, and finally construction. This should be complete by the end of winter quarter so that spring quarter may be dedicated to software design. Potentially development will be delayed if the PCB manufacturer is backlogged with orders, this is the component with the most lead time, up to 2 weeks. Page 10 of 14

WEEK Task 47 Test LEDs that have arrived 48 Begin schematic design and simulation 49 continue design and simulation 50 finalize design and simulation 51 order PCB prototype 1 52 Christmas break 1 study SAE CAN standards 2 Assemble PCB and test 3 Test PCB 4 Test PCB 5 Revise PCB Layout and simulate 6 order PCB prototype 2 7 write code to test light functions 8 Assemble PCB and test 9 Finalize PCB design and order final revision 10 begin writing CAN communication code 11 CAN communication code 12 CAN communication code 13 Software Review 14 Final software revisions 15 In vehicle testing 16 In vehicle testing 17 In vehicle testing 18 Hardware design review 19 Software Presentation 20 buffer 21 Code reviews 22 DEMO 23 Turn in final project b. Development Hardware and Software: Hardware used in development will include desktop power supplies, Oscilloscopes, and bread boards for circuit testing. Software will include DX designer for PCB layout and schematic capture. Also Code Warrior will be used in the development of software. Page 11 of 14

c. Demonstration: The product will be demonstrated using two pieces of plywood. One sheet will have switches that mimic the vehicle switches one dual throw dual pole switch for the turn indicators, a single pull single throw for the headlights, and a pot to mimic the pressure transducer. If time allows a working brake system could be included with the demo. The second sheet will have an OEM tail light and the LED sequential tail light mounted side by side so that new versus old can be directly compared side by side. Users will be able to mimic all functionalities of the driver. IV. Electrical Specifications: a. Project Specifications: The system will need to monitor and respond to inputs within 25ms so that there is no perceptible delay. If there is any delay it could pose a serious safety issue especially with the operation of the brake light system, this will require both a laye r of redundancy and high speed processing. Input voltage will be 9-15V this range is due to battery. If the car is not running while systems are using power then the battery will discharge. While the vehicle is running the alternator applies 14.3 volts across the system. 9V was chosen as minimum input voltage because that is the minimum voltage required to start the car. If the voltage falls below 9v the battery will need to be charged. The tail lights are limited to 14 amps (fused) this should be more than enough current to drive the LEDs. Luminous output as defined in SAE J585, J586, and J588 is restricted to 25cd for the running lights, and 420cd for the turn indicator and stop lamps. (J587 specifies characteristics for the License plate lamp and is not within the scope of this project.) Input voltage for the 9S12 is 5V so voltage regulation is necessary to maintain operation in all vehicle states. Page 12 of 14

b. Power Requirements: Light control board Part Quantitiy Voltage Current Max Power Price 9S12C32 1 5 0.035 0.175 11 LED power Driver HP 3 12 0.05 0.6 2 LED power Driver LP 1 12 0.03 0.36 1 High Power LED 4 2.25 0.5 4.5 9.2 Running Led 78 2.2 0.035 6.006 10.14 Pressure transducer 1 12 0.05 0.6 20 Resistor 10 12 0.05 6 1 Jumper 1 0.63 PCB 1 35 18.241 89.97 User interface Part Quantitiy Voltage Current Power Price 9S12DP512 1 5 0.065 0.325 27.83 Pressure transducer 1 12 0.05 0.6 20 Resistor 10 12 0.05 6 1 PCB 1 35 6.925 83.83 c. Special Environment Requirements: As this is an automotive project, components will need to withstand both high and low temperatures from -10-70 degrees C as specified by commercial grade temperature ranges. Also, vibration must be taken into account because the vehicle will travel at speed on uneven roadways, as well as just the vibrations of the engine could pose an issue. Rubber dampers will be used to isolate the components. d. PCB Size limits: The control module will need to fit in a 5X3X2 inch space while the light boards must fit in a 6x8.5x3 inch space. Page 13 of 14

V. Preliminary Parts List: Light control board part Quantitiy Voltage Current Max Power Price 9S12C32 1 5 0.035 0.175 11 LED power Driver HP 3 12 0.05 0.6 2 LED power Driver LP 1 12 0.03 0.36 1 High Power LED 4 2.25 0.5 4.5 9.2 Running Led 78 2.2 0.035 6.006 10.14 Pressure transducer 1 12 0.05 0.6 20 Resistor 10 12 0.05 6 1 Jumper 1 0.63 PCB 1 35 18.241 89.97 User interface Part Quantitiy Voltage Current Power Price 9S12DP512 1 5 0.065 0.325 27.83 Pressure transducer 1 12 0.05 0.6 20 Resistor 10 12 0.05 6 1 PCB 1 35 6.925 83.83 Figure 5 referenced from Davit Toth; Restoring A 1965 Ford Mustang Metal Dash, And Installing a Ford Dash Pad. http://www.classicgarageblog.com/2012/04/27/restoring-a-1965-ford-mustang-metal-dashand-installing-a-ford-dash-pad/ END OF DOCUMENT Page 14 of 14