I think the point of the flat parts is that if the LEDs get fully inserted to the epoxy case topuching the circuit board, overheating is more likely, especially during something like hand soldering, where the time of heat applied to the leads may be longer than the heat it gets during wave soldering. Also, having air space with exposed leads would probably give a lower operating temperature for the LEDs, which gives a longer lifespan since heat kills LEDs.
Crude but effective stand off
It also allows for some differential expansion between the epoxy package and the PCB.
I bought some LED car lamp replacements (as a light source for a microscope), where the LEDs were flush to the board. Even under-running them, they didn't last long - they started the flashing behaviour characteristic of detached bond wires (package stress).
Leftowers of leadframe used during production.
Crude but effective stand off
and looking at the datasheet it is also the only specified distance from the top of the led
Thanks to all for the explanations.
Actually that photo does not explain "why". It only shows the origin of the wider part of the leads. There is absolutely no reason in the world why that horizontal metal buss can not be trimmed flush with the rest of the lead's length to a very high degree of accuracy.
The other posts indicate two excellent reasons why it is there in the first place and why some of it is left after the part is complete. One, since it is the basis for the specified height of the LED, it can be used both in the production process to mold the plastic around the working end in a precise manner. And secondly it can be used to space the LED a precise height above the PCB for mechanical assembly as the circuit board is assembled. Many products will have an outer case with a hole which the LED protrudes through. It needs to be high enough to be seen but low enough to not interfere with final assembly.
It can also be used to automate the precision bending of the leads if that is needed for assembly.
This is a feature, not a problem. Really it is.
Possibly dumb question, not sure where/which forum to ask...
I needed some white LEDs and ordered these without looking at the mechanical diagram:
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiV_pacwbn0AhWQRDABHRNbCA8QFnoECAcQAQ&url=https%3A%2F%2Fcree-led.com%2Fmedia%2Fdocuments%2FC512A-WNS-WNN-942.pdf&usg=AOvVaw3QdQwqfQ8r9sg_H6kaspxO
There are flat spots on the leads that prevent fully inserting the LEDs into my PCB. Never seen that before. What purpose do they serve?
Huh? It’s rare for through-hole LEDs not to have those wider sections. Their size varies significantly (with some having them trimmed to almost nothing), but they’re basically always there, and wraper’s image explains why.
it can be used both in the production process to mold the plastic around the working end in a precise manner.
Dunno how it is supposed to help, neither I've ever seen the plastic molded around the LED. EDIT: seems I understood what was meant wrong
And secondly it can be used to space the LED a precise height above the PCB for mechanical assembly as the circuit board is assembled. Many products will have an outer case with a hole which the LED protrudes through. It needs to be high enough to be seen but low enough to not interfere with final assembly.
It has little use for such application since does not help to keep the LED straight on the board.
It can also be used to automate the precision bending of the leads if that is needed for assembly.
I don't see how it will help with this either. It only bakes bending harder, since bending close to wider area will cause the bend area to have a sharp radius where the width changes and make it prone to cracking.
it can be used both in the production process to mold the plastic around the working end in a precise manner.
Dunno how it is supposed to help, neither I've ever seen the plastic molded around the LED.
the plastic that makes up the plastic part of led is molded ...
When LEDs were a novelty, I remember through-hole parts (low-power red LEDs) in a metal case similar to TO-18 (with clear plastic top) that had non-rigid wire leads (again, similar to a 2N2484 transistor) without the steps. I haven't seen them in decades, however.
it can be used both in the production process to mold the plastic around the working end in a precise manner.
Dunno how it is supposed to help, neither I've ever seen the plastic molded around the LED.
the plastic that makes up the plastic part of led is molded ...
I understood it as if after the LED was produced someone molds the plastic over it. Leadframe in a way to keep its shape not only during plastic molding but during the whole manufacturing process, such as die attaching, wire bonding.
When LEDs were a novelty, I remember through-hole parts (low-power red LEDs) in a metal case similar to TO-18 (with clear plastic top) that had non-rigid wire leads (again, similar to a 2N2484 transistor) without the steps. I haven't seen them in decades, however.
JSYK you can still get some from Digikey though they are expensive, apparently they are for rather exotic sounding applications.
Digikey Metal Can LEDs