element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Hardware What went wrong
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mcb1
  • Date Created: 15 Sep 2017 12:09 AM Date Created
  • Views 1831 views
  • Likes 13 likes
  • Comments 4 comments
  • hardware testing
  • casting
  • automotive application
  • brake
  • tailight
  • epoxy_resin
  • arduino projects
  • indicator
Related
Recommended

What went wrong

mcb1
mcb1
15 Sep 2017

My electronics skills get called upon for all sorts of things.

 

What

Some years ago a close friend asked if I could help with some LED tailights he was fitting to his Hotrod.

He had purchased some american made units that had allowed for tail, brake and Indicators, but he was going to have two on each side.

They were rectangular and had one section for Indicators, and hence it only partially illuminated and looked strange.

 

The question that came my way was there a way to make the whole thing light up for both brake and indicators.

Obviously if you know American cars they often flash the whole light, rather than other countries that add a orange indicator.

 

 

 

Design

Older cars used to have a special contact within the indicator switch assembly, and the brake light feed was physically interrupted when the left or right indicator was engaged.

Clearly this wasn't an option for this car, and hence the solution had to be electronic.

 

So I put some thought into something and more surprising it was simple and worked.

 

 

Some years later I was asked if I could replicate this for another project.

The second model was easier as they were using these LED lamps which included the necessary dimming for the tailight.

 

image

I've since found them here Philips Red Led Brake Lights S25 P21/5W 1157 BAY15D 12836 2 Dual Brightness

 

I was very impressed with the lamps, as most of the retrofit LED's are rather 'feral' in their design, while these look properly engineered to provide proper light distribution.

(They do come in various base designs)

 

 

So I made version 2.0 of the modules and this time I added a fuse and encased them in resin to provide protection. (and prying eyes)

I'll find out this weekend how they went, but I suspect I'd hear if they weren't working.

 

 

Set number 3 were offered to a local Hotrodder, as he struggled with the wiring and then hit the issue with combining tail/brake and indicator into a twin filament lamp.

His budget didn't extend to an automotive electrician and relays or whatever they would suggest (no-one else offered a solution).

 

We came to an arrangement where he provided some of these stickers

image

and I made him some modules

 

 

 

I had built the units and tested them before delivering them, but last week after the LED lamps arrived, I got a phone call and he was having some issues.

 

 

 

Testing

The testing needed to simulate the product in everyday use. This includes indicators only, brake only and combinations of brake and indicator.

What better use for an Arduino and three relays.

 

The code is below

/*
  Tail light Tester
  This turns on several relays and is used to test the LED Tailight boards
  Sequence is :-
  Left Ind
  Right Ind
  Brakes
  Brake plus Left
  Brake plus Right
  Left plus Brake
  Right plus Brake


*/

//Define Outputs
const int L_Indicator = 12;
const int L_Indicator_LED = 11;
const int Brake     = 10;
const int Brake_LED = 9;
const int R_Indicator = 8;
const int R_Indicator_LED = 7;

int x=0;

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
  pinMode(L_Indicator, OUTPUT);
  pinMode(L_Indicator_LED, OUTPUT);
  pinMode(Brake, OUTPUT);
  pinMode(Brake_LED, OUTPUT);
  pinMode(R_Indicator, OUTPUT);
  pinMode(R_Indicator_LED, OUTPUT);
  
}

// the loop function runs over and over again forever
void loop()
{ 
  delay (1000);
  
  // L_Indicator ON
  for (x = 0; x <=10; x++)
  {
    digitalWrite(L_Indicator, HIGH);
    digitalWrite(L_Indicator_LED, HIGH);
    delay (500);
    digitalWrite(L_Indicator, LOW);
    digitalWrite(L_Indicator_LED, LOW);
    delay (500);
  }
  
  delay (1000);
  
  // R_Indicator ON
  for (x = 0; x <=10; x++)
  {
    digitalWrite(R_Indicator, HIGH);
    digitalWrite(R_Indicator_LED, HIGH);
    delay (500);
    digitalWrite(R_Indicator, LOW);
    digitalWrite(R_Indicator_LED, LOW);
    delay (500);
  }
  
  delay (1000);

      // Brakes ON   
      digitalWrite(Brake, HIGH);
      digitalWrite(Brake_LED, HIGH);
      delay (5000);
      
      // Brakes OFF 
      digitalWrite(Brake, LOW);
      digitalWrite(Brake_LED, LOW);
    
  delay(1000);                       // wait for a second


// Brake plus Indicator
      // Brakes ON
      digitalWrite(Brake, HIGH);
      digitalWrite(Brake_LED, HIGH);
      delay (500);
      
        // L_Indicator ON
        for (x = 0; x <=10; x++)
        {
          digitalWrite(L_Indicator, HIGH);
          digitalWrite(L_Indicator_LED, HIGH);
          delay (500);
          digitalWrite(L_Indicator, LOW);
          digitalWrite(L_Indicator_LED, LOW);
          delay (500);
        }

  delay(1000);                       // wait for a second

      // Brakes OFF
      digitalWrite(Brake, LOW);
      digitalWrite(Brake_LED, LOW);
      
  delay(1000);                       // wait for a second

       // Brakes ON
      digitalWrite(Brake, HIGH);
      digitalWrite(Brake_LED, HIGH);
      delay (500);
      
        // R_Indicator ON
        for (x = 0; x <=10; x++)
        {
          digitalWrite(R_Indicator, HIGH);
          digitalWrite(R_Indicator_LED, HIGH);
          delay (500);
          digitalWrite(R_Indicator, LOW);
          digitalWrite(R_Indicator_LED, LOW);
          delay (500);
        }

  delay(1000);                       // wait for a second

      // Brakes OFF
      digitalWrite(Brake, LOW);
      digitalWrite(Brake_LED, LOW);
      
  delay(1000);                       // wait for a second
      
  // Indicator plus Brake
        // L_Indicator ON
        for (x = 0; x <=10; x++)
        {
          digitalWrite(L_Indicator, HIGH);
          digitalWrite(L_Indicator_LED, HIGH);
          delay (500);
          digitalWrite(L_Indicator, LOW);
          digitalWrite(L_Indicator_LED, LOW);
          delay (500);
          if (x ==4)
          {
            // Brakes ON
            digitalWrite(Brake, HIGH);
            digitalWrite(Brake_LED, HIGH);
          }
        }

        // Brakes OFF
        digitalWrite(Brake, LOW);
        digitalWrite(Brake_LED, LOW);


        delay(1000);                       // wait for a second

        // R_Indicator ON
        for (x = 0; x <=10; x++)
        {
          digitalWrite(R_Indicator, HIGH);
          digitalWrite(R_Indicator_LED, HIGH);
          delay (500);
          digitalWrite(R_Indicator, LOW);
          digitalWrite(R_Indicator_LED, LOW);
          delay (500);
          if (x ==4)
          {
            // Brakes ON
            digitalWrite(Brake, HIGH);
            digitalWrite(Brake_LED, HIGH);
          }
        }
        
        // Brakes OFF
        digitalWrite(Brake, LOW);
        digitalWrite(Brake_LED, LOW);

}

 

As you can see it cycles around the various options, and I tested the modules before and after casting them.

 

 

The Wrong

Since I had tested these prior to delivering them, I had every reason to suspect that a wiring issue was the cause, and arranged to call around to his place and assist.

There were some minor issues with lack of stripping back the insulation on one earth, the rest seemed to be correctly wired.

 

Sadly both of the units showed different issues, but when I put them back on the bench tester, only one had a faulty input.

 

 

In the interests of good engineering, it's always useful to know what failed and see if you can determine why.

However these were encased in resin, and worse, it was coloured so the exact placement of the parts was invisible.

 

image

 

Several hours later with a Dremel and different tips exposed enough of the internals to do some testing.

image

Since there are three different components that could be at fault, I was trying to be careful and not damage the components.

 

I've always found that you need to be able to replicate the fault, in order to prove you've fixed it.

I was able to replicate the fault before attacking it, and again when exposed, so my work didn't cause a second issue.  ... image

 

 

Fault identification

I can really only get to the bottom of the board which is enough to verify what I suspect is the problem.

 

Thankfully jw0752 had sent me some of his Intrusive Meter Probes to test.

Meter Lead - JW special probes

 

 

These were able to penetrate the resin that was still on the veroboard and ensured the meter made good contact with the components.

image

 

While the unit has failed, the exact cause will never be truly known.

It could have been a wiring mistake in the vehicle that got rectified, or something else.

 

 

With the complexity of the wiring and the admission that vehicle wiring is not something he is confident with, it's possible there was a problem.

I'm not concerned if the fault was due to a mistake, but it would be nice to know that.

 

While I was helping, there were two other issues that I was able to solve, so any inconvienience is more than compensated for, and the failure isn't holding up the build.

 

As we've said before on this forum, it's not the failure but the after sales service that is more important.

 

 

 

Conclusions

The design has some limitations and I did look at fitting bigger transistors.

Sadly the next size transistor is both much more expensive and much larger, but I've still got an issue with 1A diodes.

 

The design is fine for one off's but it's time to design a board and use smd components.

It means they are much easier and less time consumming to make, along with the alignment in the mould.

The change to smd may provide some cheaper options for uprating it to handle 5A.

 

 

In the meantime I've made two new modules, tested them and I'm about to cast them tomorrow.

This time I have a better plan to hold the connector the right distance out in the mould, along with better measuring of the resin amount needed ..... image

(edit ... the support worked but despite measuring the amount and not removing anything for the contents, it was short .... more investigating required)

 

 

 

 

 

Mark

  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 7 years ago +5
    I forgot to update this. It seems that one unit was destroyed or it failed on it's own and the tear down proved that. The two new units cast much better, and tested just fine. I arranged to visit and help…
  • mcb1
    mcb1 over 7 years ago in reply to shabaz +5
    shabaz Thanks Years ago it would have taken some 555's, and other components, and still been somewhat manual. Now a few lines of code, an Arduino and hey presto. Mark
  • jw0752
    jw0752 over 7 years ago +4
    Hi Mark, I know how you feel. When something I put together doesn't work right I am absolutely obsessed with finding out what it was. It is a point of pride if nothing else. Fortunately over the last 4…
  • mcb1
    mcb1 over 7 years ago in reply to shabaz

    shabaz

    Thanks

    Years ago it would have taken some 555's, and other components, and still been somewhat manual.

    Now a few lines of code, an Arduino and hey presto.

     

    Mark

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 7 years ago

    Hi Mark,

     

    Great little product you've designed there, and cool way of testing with your Arduino car simulator : )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 7 years ago

    I forgot to update this.

     

    It seems that one unit was destroyed or it failed on it's own and the tear down proved that.

     

    The two new units cast much better, and tested just fine.

    I arranged to visit and help see they worked correctly.

    I fixed a couple of minor wiring issues that weren't incorrect, it's just that they might fail later.

     

    When we tried the units, they also behaved strangely and worked with just the brake, or just the indicator.

    After heading into some rabbit holes, the owner said he had the wiring diagram for the indicator unit somewhere and dug it out.

    Once I looked at it carefully, I noted that it had the ability to feed the brake signal into it.

     

    I hadn't realised it was from the USA and had the ability to combine brake and indicator into a lamp, but used a different flasher unit (one I've never seen here in NZ)

    Once we removed the brake feed into the indicator unit, the whole thing worked properly !.

     

    What a relief for both of us.

    So it's always surprising what is going to bite you, and the 'never give up' attitude certainly wins .... eventually.

    It also explains why I couldn't prove the fault on the bench, I wasn't simulating the exact conditions found in the vehicle.

     

    We also added the necessary extra piece I'd built so the indicator stork flashes when they are operated.

    The result was a very happy owner.

     

     

    Mark

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 7 years ago

    Hi Mark,

     

    I know how you feel. When something I put together doesn't work right I am absolutely obsessed with finding out what it was. It is a point of pride if nothing else. Fortunately over the last 4 years I have had you guys on E14 to help me pull the bacon out of the fire on numerous occasions. Thanks for sharing the adventure you had with these projects with us.

     

    John

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube