Add secondary components to CircuitDraw 0.2 projects
Today I'll show you how to add secondary components such as resistors, diodes and ICs to your diagrams.
For this tutorial we will add components to a PCB board in CircuitDraw.
Click Add Primary and select PCB.
Now we'll add a resistor to the board. Click Add Secondary and select Resistor.
Give your resistor a name and in the Board drop-down menu select PCB.
I am adding a resistor horizontally between W3 and T3. Remember Pin1 must be either left or top. In this case W3 is to the left, making it Pin1.
Enter an Ohm value and a rating in watts.
Click Add Resistor.
Now we'll add a standard diode. Click Add Secondary and select Diode.
Once again select PCB from the Board drop-down menu and give the diode a name.
This time I will add the diode vertically between pins R3 and R6. In the Type drop-down menu select Normal
In the Orientation drop-down menu select South
Click Add Diode.
Now we'll add a zener diode. Click Add Secondary and select Diode. Once again give it a name and select PCB in the Board menu.
This time I am adding it between P6 and M6. In the Type menu select Zener. Select East in the Orientation menu.
Click Add Diode.
For the last diode example we'll add a shottky diode. There are several types of shottky diodes but for now I am defining it as a diode in a two-pin IC package.
As usual, name it and select PCB.
I'm putting this one between K3 and K5. Notice again that I am working top-to bottom with pins one and two.
In the Type menu select Shottky and choose North for Orientation.
Click Add Diode.
That is the diodes out of the way, now for a three-pin IC. We'll add a LM317t voltage reulator.
Click Add Secondary and select IC. Select PCB from the Board menu and give the IC a name.
I am placing it from H3 to H5.
Click Add IC.
Now we'll add a relay. This is a little limited at the moment in that it can only go on the PCB board and it can only align North with the AC connections on top.
Select PCB and give your relay a name and a required voltage.
Pin1 is the lower left pin on the relay. In this case that is V16.
Click Add Relay.
Now some of the new components. We'll add a LED. Select Diode and for Type choose LED.
The other fields are the same as the diodes we added earlier.
Next we'll add a capacitor. From the Secondary menu select Capacitor and give it a name and a voltage. Enter the pin labels.
You'll also need to enter the orientation and a uf rating
The last onboard component is a screw terminal block. As usual, give it a name and select PCB for Board.
Choose Screw as Type.
Enter the pin labels, orientation and click Add Connector.
There you have it, you now know how to add all the on-board components currently available in CircuitDraw. Let's look at some peripheral components.
These components are in fixed positions on either the left or right of the canvas. You can currently use up to two of each.
You can move the peripherals around but you need to do that from within the code. I'll explain how to do that in the next article.
We'll start with a distance sensor. From the Secondary menu select Distance Sensor and click Add.
The entry fields are the same for all the peripherals.
You need a name that must end in either one or two. You also need to enter the side you wish to place the peripheral.
I have called this sensor "DIS1" and placed it on the left.
Click Add Sensor.
Notice the sensor is in the top left-hand corner of the diagram. That is just where I have them at the moment. The distance and movement sensors are on top, and the motor-controllers and motors are below. I'll show you how to move them later.
Now let's try a movement sensor.
Once again I have used a one in the name and placed the sensor on the left.
Now I'll add a motor-controller.
This will appear towards the bottom of the canvas
Last of all I'll add a DC motor
There is our motor
If I repeat these steps adding the peripherals to the right I end up with the canvas shown below.
In the next article I'll show you how to configure and modify the program.
I'll also demonstrate how you can move the primary boards and peripherals to suit you needs, and how to adjust the size and scale of the display.
Previous: Using CircuitDraw 0.2