Creating New Devices I | Creating New Devices III |
We'll use the following required attributes:
device Diode is |
The diode has the following schematic symbol:
As you can see, it has two pins to map, the anode and cathode.
device Diode is |
Let's go ahead and give it some more attributes.
device Diode is |
It's always nice where we can find parts after the design flow is complete. Since we put this information into the device declaration, it will show up in a generated bill of materials later, making aquiring parts much simpler.
Let's move onto the LEDs. Obviously we need to assign the refPrefix and footprint.
device LED is |
And we also need to assign the pins: the cathode and anode, as shown in the image below:
Therefore, the device declaration becomes:
device LED is |
Now, you may be wondering how you could add a "color" attribute to the LED device, but you want it to be different for each one you instance on the board. Don't worry, these attributes are by no means set in stone; later, when we begin instancing devices, you can add/change attributes for individual device instances. For now, however, we'll just make the attribute and give it a default value.
device LED is |
And, as with the Diode, we'll put the supplier and cost information about the device in the declaration.
device LED is |
Now we declare the BJT.
device BJT is |
Now let's take a look at the schematic diagram:
There are three pins to declare, the emitter, the collector, and the base.
device BJT is |
Now for the supplier and cost information.
device BJT is |
Hopefully you're not getting too tired of making devices yet. Don't worry, this won't take much longer. After the next section, you'll learn a way to make this process a lot faster (especially after you have made several devices).
But until then, keep grinding-- the pain will be over soon enough.
Creating New Devices I | Creating New Devices III |