LED

LED Anode and Cathode

LED stands for light emitting diode and just as the name indicates, it's a diode that emits light. Just like a diode, an LED is sensitive to the direction it's connected. It will only work if it's connected in the right direction.

Getting Started

Reminder: to get out of any selected tool, just press escape.

First open up both the Component Editor and the Pattern Editor and then open the two files you created in the introduction.

Step One

In the component editor make sure you have a new component, otherwise just create a new one by going to Component> add new to library. In the component properties box in the upper right corner input the following values: name = LED, RefDes = D.

Component Properties window

In some cases, such as this one, the component is already done for you. So lets just add it in.

Warning: make sure you don't have any finished component selected, as this step will replace it.

Go to Component > Get From Library

Skip the blue text if discrete (_discrete.eli) is already there.

Click add and navigate to the library folder if you're not there yet (It's usually located in C:\program files\diptrace\lib). Select _discrete.eli.

Select discrete on the left column and type LED in search and click search (don't press enter). LED should show up as the first thing, select it and press OK.

Get Component window

Now right click on each of the sides and go to pin properties, change the value A to 1 and the value K to 2.

Pin Properties window

Save your work now.

Step Two

Now we have to create the physical representation of the diode.

Go to the pattern editor. Make a new pattern if there isn't one already by going to pattern > add new to library

Fill in the same information as you did with the component editor in the pattern properties box. Now in pattern properties box set type as lines with the following values: number 1 = 2, number 2 = 2, spacing 1 = 0mm, spacing 2 = 2.54mm.

Pattern Properties window

Right click on pad 2 (should be the top) and select pad properties. Deselect "default for pattern" and select rectangle for shape.

Pad 2 window

Using the line tool and arc tool, reproduce the shape in the image below. The line tool will be used for the flat edge and the arc tool for the curved edge. When using the arc tool make on click on the starting edge, another in the direction of the curve and the last on the end point.

Line Tool and Arc Tool with drawings

Save your work.

Step Three

We are now on the last and easiest step. In the component editor go to Component> attach pattern. In the library section, click on add and add your pattern file. Select LED, which we just created. If everything was done correctly, pin one should match up with pad one and so on.

Warning: make sure everything matches the picture as this component is sensitive to direction.

Attached Pattern window

Save your work.

Related Content