Showing posts with label EDA. Show all posts
Showing posts with label EDA. Show all posts

Thursday, July 17, 2014

What is Artwork and Artwork Scale in PCB Design?

Once a PCB is designed an accurate drawing of the PCB layout can be produced called the Artwork. The Artwork can also be scaled up or down while retaining the dimension. It can also be used to create the PCB pattern using photography process. The Artwork drawing shows drawing of the copper traces, the solder pads and any conducting parts, their location, dimension and clearances to be imprinted on the board.

It is not the actual PCB file that is used for PCB manufacturing. It is the Gerber files, NC drill files etc are used for PCB board manufacturing. However for small scale design using manual PCB design process, the artwork can be used for PCB design. Artwork design are used to show design prototype and for analysis.

artwork

Artwork Scale is a term that refers to information about the scaled version of the artwork. It is indicated in terms of ratio which gives the relative accuracy of the artwork scale dimension over the PCB area. For example, one talks about artwork scale of 2:1 or 4:1. What artwork scale of 2:1 means is that the artwork drawing is 4 times that of the actual PCB area. The 4:1 artwork would give artwork 16 times the actual PCB area. Thus 4:1 is finer, more accurate and more detailed than the 2:1 artwork.

Artwork scale is useful in the manual PCB production. A manual layout design may require more precision and thus higher artwork scale. Added to this requirement is also the type of design. An integrated circuit with plated through holes also requires precise artwork scale for the PCB design.





Wednesday, July 16, 2014

How to select a good PCB design software?

PCB design automation is essential in today's market competition. Even if it is not for selling design design professional want to know the best PCB design software for research for example. While small design can be completed with open source software, larger and complex design requires high accuracy, high performance software. In the PCB design process routing is perhaps the critical part that designers constantly focus on. Many PCB has auto router feature but often it does the provide the optimum path. And what is design automation if this part of work cannot be automated? Modern PCB software does take great deal of work load from the designer.

So how to select a good PCB design software?

Most of the PCB design software provides schematic design, simulation, PCB design, auto routing features.

A typical PCB CAD software vendor offers demo. The demo software has demo license and one should use it to exploit its strength and weakness. Once you have the demo software, you should look into couple of things as follows.

hole in pcb


Check the demo board but don't rely on that. Instead think of it as the best you can get from the software if the software really functions are advertized. Because the vendor always would, should and do provide their best PCB design to demonstrate the software capability.

Now what really matters and the things one should watch in the application is the Auto Routing program, the EMI and thermal technological support and restrictions, the accuracy of the wire frames, the units accuracy, the number of PCB layers it can support, the export to other CAD software, the CAM support. Another important selection criteria is the library support, the parts and documentation, how footprints have to be created, the simulation capability for the parts.


You don't want to spend time on debugging your design once you buy the PCB CAD. You want to have the PCB CAD automate most of the design work with high accuracy as much as possible.

See schematic and PCB design tutorials


Open Source Virtual Electronics breadboard Software

Fritzing is an open source Virtual Electronics design with virtual breadboard software. It is an interesting software because the look of the PCB and schematic looks very realistic. The components looks very realistic which makes it easy to understand and imagine the final design. The components can be dragged into the virtual breadboard and together they look very realistic. It is also a schematic drawing software which means schematic of the electronics circuit can be drawn easily and transferred to the PCB. Components if not available can be created with the component editor quickly.

A view of virtual breadboard and printed circuit board where components are placed is shown for illustration.



This virtual electronics design software is useful for students, beginners and electronics hobbyist and for teaching purpose. The realistic view of the design makes it easy to learn schematic and PCB design. Following shows a picture of parts which looks very nice and realistic.

 
Also various kinds and size of project can be completed with Fritzing such Arduino microcontroller project, RF project, robotics and others. A large number of schematic and pcb design tutorials are provided in the Fritzing website which makes it even more easier for people to learn designing with the software.

How to start and configure web application developement with Matlab

Matlab has a feature to create web application. For people who are trying this feature for the first time to make the feature work can be quite confusing. How this matlab web application development feature works is that the Matlab code are converted to java code(java class strickly speaking) by Matlab Builder JA. Malab Builder JA is smaller and essential part for the conversion. The overall conversion of matlab code to web is through the Java application package creation which contains java components of all matlab code of your project and required components. Java package is created using the Library Compiler.

In order to use Matlab for web application deployment you need Java Development Kit(JDK). So the first thing to do is find the compatible version of the JDK that you have to download and install for your computer.

Enter the following matlab command to know which version of JDK you need,
!java- version


In matlab command window it looks like this if you did install version 1.7,
>> !java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b14)
Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing) 
Once you know this you should download that version of JDK.

Alternatively, you can also visit the following matlab page where you can see what version of different compilers and third party tools you requires according to the Matlab version you are using.

Assuming that you are using Matlab 2014a then the following url provides the information about the JDK version you need.

http://www.mathworks.com/support/compilers/R2014a/index.html

There you can see what Java JDK version you need as shown below
Choosing JDK version for matlab web developement
Choosing JDK version for matlab web developement

The figure shows that Matlab 2014a requires Java Development Kit(JDK) 1.7. So go to the Java website and download it. On the Java website it is listed as Java v7 which might cause confusion because it means the JDK v1.7.

Once you have download and installed the correct JDK you need to next set the JAVA_HOME environment variable path to the directory where you installed the JDK,something like C:\Program Files\Java\jdk1.7.0_65 so that Matlab knows and applies the java function. If this is not set then during the java package compilation you may get error.

Assuming you know how to set system environment variable, below is a screenshot of how it looks like,

setting JAVA_HOME environmental variable
setting JAVA_HOME environmental variable

That it, now you should be able to convert the matlab m code or GUI to Java Package using the Library Compiler. the Libary compiler is shown below. In the library compiler you select the Java Package in the application type and also select the matlab file to be exported.

Using Java Package Compiler in Matlab
Using Java Package Compiler in Matlab

The process of conversion produces three folders as follows,

for_redistribution — A folder containing the installer to distribute the package
for_testing — A folder containing the raw generated files to create the installer
for_redistribution_files_only — A folder containing only the files needed to redistribute the package
PackagingLog.txt — A log file generated by the compiler

Then one can check whether the produced java application is successful using the following command in the matlab command window,

 java -classpath "matlabroot\toolbox\javabuilder\jar\javabuilder.jar";<file_name>.jar <file-name>.Class1 5

See matlab tutorials page for more tutorials


Tuesday, July 15, 2014

An Open Source PCB design Software | Kicad

You don't need to buy expensive PCB design software to learn creating PCB or for your professional work. There are many free like Cadsoft Eagle free and open source PCB design software and one of the good ones is KiCad. It is free to download and use. Like most of other PCB design software, it is also a schematic drawing software. That means it has schematic editor where you can draw your electronics or electrical wiring diagram with components. It has large open source library and library manager so searching and finding the right component is no big deal. Since it is an open source software, there are much more library component depositary and support. There are also various links to open source library parts where you can search for the footprints and symbols. It also supports 3D object so visualization of the final design and creativity and innovation is what KiCad also has.

kidcad pcb design software

Another thing about KiCad noteworthy is the large community and groups. That means you can join those community and get help, take part in their discussion, do projects and see how they are doing the projects. Such social participation is essential for learning specially for beginners.

The best thing about open source software is that you can modify and contribute the software development and security to your own system and designs.

Monday, July 14, 2014

Cadsoft Eagle Professional Download Free

Download Cadsoft Eagle Professional v6.6 software free. This cadsoft eagle free download is a fully functional working software for schematic and PCB design. In the electronics design industry and PCB design Eagle is one of the most known software. The software is used by students, electronics designers, hobbyist and professional worldwide. It is both a schematic design software and a PCB design software. This version of cadsoft eagle free provides unlimited number of pcb layers and other feature not available in the free version.



 Download Cadsoft Eagle Professional Free links:

http://uploaded.net/file/f1c1kkif/E1glePro6.6.0.rar
or,
http://rapidgator.net/file/131c2db0ec8062326202bf9d25da95d5/E1glePro6.6.0.rar.html


With this software users can create any complex electronics design from schematic to PCB design. It has a nice and easy to use schematic editor and library of components so that users can easily create the electronics circuit schematics. Once the schematic design entry is finished it can be checked for errors and transferred to the PCB layout editor. The PCB editor has many pcb design tools such as mask, pad designer, via holes, DRC and auto routers. Many PCB are designed in Eagle software so that new comers to the PCB design will find it useful for importing the ready made PCB and study them.

Design and Simulation of RC Phase Shift Oscillator in Matlab 2014

An RC Phase Shift Oscillator is used as audio oscillator and is an oscillator in simple form. An RC phase shift oscillator can use transistor or operational amplifier for its amplifier part. A BJT Transistor amplifier with RC feedback network is designed and stimulated in Matlab 2014 simscape/simelectronics.

In the earlier post the BJT transistor amplifier with RC feedback network was modeled in Simscape/ Simelectronics tools. The Oscillator model is again shown here,
 The amplifier block contain is shown below,
and the content of the RC feedback subsystem is shown below,
What lies ahead is series of calculation for modelling the BJT transistor for use in the transistorized amplifier above. In matlab simelectronics the NPN transistor requires parameter inputs obtained from datasheet and many which are not available in the datasheet. For example the reverse current transfer ratio and problem of how to calculate collector and emitter resistance from the transistor datasheet.

In the BJT amplifier part we need to select the transistor and bias the transistor with appropriate value of resistors.

Using small signal modelling one can derive the requirement for a transistor to be used as an amplifier. The frequency for sustained oscillation in Hz is given by,
\[f=\frac{1}{2\pi \sqrt{6}RC}\]
From the above equation, selecting frequency of oscillator as 20KHz and using R=4.7Kohm we get the value of C as 0.6915uF

One can derive and show that one transistor property for using it as an amplifier for the RF phase shift oscillator circuit is the minimum value of forward current gain of the transistor and is given by,
\[h_{fe}=44.5\]

A transistor with forward current gain of more than 44.5 should work as the amplifier's transistor. We select the 2N3904 transistor. Once we select a transistor, we have to change the parameters of the NPN Transistor. The parameters required for the transistor is seen when it is double clicked.


 Now we have to make appropriate changes so that the transistor behaves like the 2N3904 transistor. The parameters above can be obtained from the 2N3904 transistor datasheet. Part of the datasheet is shown below.


Here, the forward current gain is taken as 100. The output admittance can be found out from the output admittance graph available in the datasheet as shown below.


The output admittance from the graph is 60μmhos.

The collector current at hfe=100 is 10mA and collector-emitter voltage is 1V both obtained from the datasheet. The Vbe voltage is 0.65 and the Ib current can be calculated using the equation,
\[\beta=h_{fe}=\frac{I_c}{I_b}\]
which gives Ib=10mA

The reverse current transfer ratio,BR is the Ideal maximum reverse current gain. This value is not found in transistor datasheets as it is not important when the transistor is biased to operate in the normal active region. Since the transistor will not be operated on the inverse region, we can use the default value of 1.

Altogether the values in the window is shown below,


Next is the the Ohmic Resistance tab which allows to specify the collector, emitter and zero bias base resistances.



In the capacitance tab, we require the junction capacitance and the transit time which are as follows,


This completes the frequency, R and C values and the transistor setting.

Next the biasing resistor values have to be calculated which will be done in the next blog post.

See the earlier posts on oscillator-
Oscillators in communication system
Condition of producing Oscillation from oscillators
How RC Phase Shift Oscillator Works?

Open source Schematic drawing software you should try

It is good to have open source software since they are vendor independent and are for free. There are many Open source/ Freeware Schematic drawing software and Circuit Simulator but the ones below are worth trying out. These application are meant for windows operating system which can be downloaded for free from their website.

LTSpice

LTSpice is a freeware program by Linear Technology. It provides schematic design, simulation and waveform analysis and can be used for analog and digital design and analysis, RF design and simulation, power electronics application. Electronics circuits with transistors, amplifiers, diodes, passive components can be build in the schematics and stimulated to analysis the performance of the circuit. LTSpice supports Transients, DC and AC analysis and parametric analysis. After simulation has been performed circuit netlist can be generated from the schematic and exported to PCB design software of other vendors to create the PCB.



Quite Universal Circuit Simulator(QUCS)

 QUCS is an open source integrated circuit simulator that has schematic editor which means an electronics circuit can be drawn into it. It has also library of electronics components- passive and active components. It supports different kinds of simulation for the designed circuits such as transcient, DC and AC analysis(small and large signal), noise, parametric analysis and also S-parameter analysis. This software can be used for RF and Microwave design, analyze Power Amplifiers, Mixers etc with S-parameter and can be used for plotting Smith charts, perform stability analysis. It also has mathematical equation input feature which allows equation to be used in the simulation analysis.



 Logic Circuit

 Interested in Digital Design and looking for digital logic circuit design program, then try this Logic Circuit. This program is an open source program free to download and use. This program is helpful for testing new microcontroller and microprocessor idea. It has library of digital circuit components such as logic gates(and, or, nand etc) and flip flops that can be drawn into the schematic sheet and perform logic simulation and analysis.


Schematic design software provides an excellent way to learn electronics design.

Sunday, July 13, 2014

Oscillators in Communication System

Oscillator are essential components in communication system. Oscillator generates an output signal with constant amplitude and constant frequency without any input signal. They are used to produce carrier signal onto which message signal are embedded and transmitted over the air to the destination receiver. They are required in all communication system such as AM modulation and circuits, FM and in digital communication system.

Below is a block diagram of a typical transmitter and receiver in which the function of oscillator is illustrated.

In the block diagram the oscillator produces the carrier signal of desired frequency. This carrier signal is mixed with the message signal in the modulator. The modulated signal is sent to the power amplifier which amplifies the signal to the desired power level and gets transmitted over the air the receiver via the antenna.

The basis and principle of oscillator is an amplifier connected with a feedback block. The amplifier can be a non inverting and inverting type. In the non inverting type amplifier, the signal is fed to the positive terminal of the opamp and in inverting opamp the signal is connected to the negative terminal of the opamp. A non-inverting opamp has output that is in phase with the input while an inverting opamp produces ouput signal that is 180 out of phase with the input signal.

A non-inverting opamp requires a positive feedback.  A feedback is said to be a positive one if the phase of its output signal is in the same phase(in phase) with the input signal.

In the above picture the Operational Amplifier and the Feedback Network are the parts of the oscillator. If the amplifier is non inverting then the phase of input and output signal of the amplifier are in phase. The positive feedback provides no phase change and therefore the phase of the input signal of the amplifier and the output of the feedback network are also in phase.

The positive feeedback network feed backs some fraction of output signal Vo back to the input of the amplifier. This is called feedback gain beta and is defined as follows,
\[\beta= \frac{V_f}{V_o}\]     -----(1)

  The open loop gain 'A' is defined as the ratio of Vo to Vin,
 \[A= \frac{V_o}{V_{in}}\]            -----(2)
 The overall gain for the circuit, is called the closed loop gain or the gain with feedback and is given by-
\[A_f= \frac{V_o}{V_s}\]       -----(3)
 The signals Vs, Vin and Vo are related by the equation-
\[V_{in}=V_s+V_f\]    ------(4)
using (1) Vf is,
\[V_f=\beta V_o\]     ------(5)
Using (5) in (4) we get,
\[V_{in}=V_s+\beta V_o\]
or, \[V_s=V_{in}-\beta V_o\]    ----(6)
using (6) in (3) we get,
 \[A_f= \frac{V_0}{V_{in}-\beta V_o}\]   ----(7)
Dividing RHS of (7) by Vin and using (2) we get relation between Af and A as follows,
 \[A_f= \frac{A}{1-\beta A}\]

This is a relation between the closed loop gain and open loop gain.


The condition of producing oscillation in oscillator

To make an oscillator requires amplifiers or Opamp. The input signal to opamp can be connected in non-inverting and inverting terminal. A non-inverting amplifier produces no phase shift between the signal at the input and output. But an inverting amplifier produces a phase shift of 180 degree.

When an inverting operational amplifier is used as an oscillator, the feedback network must produce a phase shift of 180 degree so that the feed backed signal is again in phase with the original input signal. This ensures positive feedback as required for the oscillation.

The figure below shows a circuit drawn in Matlab 2014 and in the figure the input signal Vs is connected to the negative terminal of the opamp so the signal Vo coming out operational amplifier is has a phase which is 180 degree away from the input signal Vs.

 The feedback network provides adds a phase shift of 180 degree to the signal Vo and the ouput signal Vf is then in phase with the signal Vs.

The condition for the sustained oscillation is that the feed back signal Vf should act as Vs. In other words, the amplifier pluse the feedback network should produce signal with only Vf without Vs.

Now,
  \[A=\frac{V_o}{V_{in}}\]   ----(1)
therefore,
\[V_o=AV_{in}\]      ----(2)
Similarly, Vf is,
\[V_f=\beta V_{o}\]   ---(3)
and placing Vo from (2) into (3) gives,
\[V_f=A\beta V_{in}\]    ---(4)
And the oscillation should happen with the input signal Vs when Vs=Vf which gives,
\[|A\beta|=1\]    ----(5)

So in order to produce sustained oscillation without the external signal we require-
(1) that the total phase shift around the loop should be 0 or 360 degree
(2) the product of open loop gain and beta should be 1 as per the equation (5)

See the earlier post oscillator in communication system

How RC Phase Shift Oscillator Works?

Oscillator is made up of amplifier and a feedback network. When the amplifier used is an opamp then the input signal can be connected to the inverting and non-inverting terminal of the operational amplifier. If the input signal is connected to the inverting terminal then a 180 phase shift must be produced by the feedback network so that the input signal and the feed backed signal are in phase.

The application of oscillator in communication system and condition for oscillation was introduced and derived in earlier post. This post is about how the RC phase shift oscillator works.

Consider the RC circuit drawn in Matlab 2014 simulink/ Simscape as shown below

In this circuit by using appropriate values for the capacitor and resistor we can produce desired phase shift between the input signal Vin and the output voltage signal Vout. The phase shift difference is given by the formula-
\[\phi=\tan^{-1}(\frac{X_c}{R})\]
where, Xc is the capacitive reactance of the capacitor and R is the resistance of the resistor
and, \[X_c=\frac{1}{2\pi fC}\]
where C is the capacitance of the capacitor

If we were to produce a 60 degree phase shift between Vin and Vout(the voltage across resistor) then we have tan60=1.732 and using R=1 ohm, we get Xc=1.732. This gives C value of 0.02758F when frequency of the input signal is taken as 10Hz.

Using these values the circuit above can be stimulated in Simscape to verify the phase shift graphically. For the simulation to work few parts have to be added to the above circuit.

The scope shows the waveform of the input signal(upper waveform) and the output signal(lower)-

To view the signal together in the same window we can use the mux.


This shows that there is a phase shift of 60 degree between the input and output signal.

If such RC circuit is used 3 times connected in a ladder fashion as shown below we get a total phase shift of 180.

The waveform of the input and output signal of this RC ladder circuit is shown below-

This graph shows 180 degree phase shift between the input signal(Vin) and the output signal (Vout) of the first circuit above. Also there is decrease in magnitude of the output signal.

Hence when this 3 section RC circuit is used in the feedback network as it produces the required 180 phase shift. Below the structure of the oscillator with feedback network.

The content of the feedback network block is the RC network-

The operational amplifier in the above circuit can be replaced by amplifier designed with transistor biased in the linear region of operation.

An oscillator with transistor amplifier and RC feedback network would look something like this-


See also matlab 2014 download and matlab tutorials on this blog.

Saturday, July 12, 2014

How to transfer Eagle PCB design to Altium Designer?

Cadsoft Eagle and Altium designer are widely used PCB design software. Altium designer users often find schematic, PCB and library in Cadsoft Eagle free file format and want to import them into Altium Designer. There is one trick that converts eagle design files to altium and that is using UCL scripts. But with newer Altium Designer version starting from v14 there is inbuild import program in Altium Designer software that converts Eagle files to Altium Designer.

Eagle provides many PCB designs and tutorials for free and in this post we are going to import one such design file to altium designer to see how the process of converting eagle to altium and also view imported file to see how they look like when they are converted.

Using the import feature is straight forward. The import function is under File > Import Wizard and this brings up the window like the one below,


Clicking Next, brings up the dialog box that allows us to specify what CAD files we want to import. Here we can see Eagle Projects and Designs listed in the list which was not previously on the list. We select that option.


 After selecting that option and clicking next brings up the next window which allows us to add the Eagle schematic and PCB design files. The add button allows us to browse and select the eagle design files.

Then the next screen allows you to convert the eagle library files to altium designer library files. Since in this illustrated pcb design conversion there are no library it is left alone. But if you had eagle library files it good to convert them.


Then alitum designer reads the files for conversion.

The next window allows users to make various reports of the conversion process and specify what things to recognize such as power ports, any ports, net names and others as shown below-


The next screen allows user to specify directory where the converted design files should be saved. The default directory is the same directory as the input directory.

The conversion process starts which takes just seconds to complete. Then the conversion is completed where the user now just has to click on the Finish button.


The converted PCB file is shown below-


The schematic document and the PCB document are under the project file panel.

A glance of 3D view,

The converted schematic design is shown below.


As you can see the schematic and pcb files are very nicely and accurately transferred from Eagle to Altium Designer.

Cadsoft Eagle Free is widely used by students, electronics hobbyist and professional designers and Altium Designer is preferred for more professional PCB designs because of its features and 3D modelling capabilities. Both are very good PCB design software and both can be used for most of the electronics design work.


Friday, July 11, 2014

Cadsoft Eagle Professional 6.1.0 Free Download

Download fully functional Cadsoft Eagle Professional 6.1 software free by using the password and link below. This software includes serial key, password and instruction on how to install it. It can be used for Windows, Linux and Mac operating system. Eagle was made in Germany is widely used by beginners, students, electronics enthusiasts and electronics engineers. This cadsoft eagle free provides schematic editor for drawing electronics circuits, simulation of the designed circuit, PCB layout editor for designing Printed Circuit Board, track autorouter, 3D visualization, export and import of other pcb cad software and has large library of ready to use components.


Download Cadsoft Eagle Professional 6.1

http://depositfiles.com/files/ypdx7ksk5

password: 4shar1ng

Another cadsoft eagle free is the cadsoft professional v6.3 which you might want to have a look at. There is a Schematic and PCB design tutorial page which contains links to electronics design tutorials with different schematic and pcb design software such as Orcad capture, altium designer and others. See also end of the page for links to RF design tutorials, antenna design tutorials, 3D design tutorials and much more.
 

Footprint and 3D body for Switch | Altium Designer Tutorial

This tutorial shows how to create a switch footprint and add a 3D model to the footprint in altium layout editor so that it is ready for PCB design.

The switch for which we gonna make a footprint is the TL3301AF160QJ from E Switch and is shown by the picture below-


This is a Surface Mount type switch with 4 pins and with J termination leads.

The dimension of this provided by the datasheet by its manufacturer is shown below-

And the footprint dimension is shown below-


As you can see there are four rectangular pads required for the footprint. Now one can start with creating directly rectangular pads on the PCB component editor but this is little bit difficult or little bit more time consuming because you have to calculate the position of each pad in this way.

Another way to create these pads is using the component wizard. Now with the dimension information above the footprint will be created in using component wizard.

Start altium designer and create a new PCB library project or simply begin with a new PCB library component.

Once you are in the PCB library start with the new component wizard that is available in Tools > Component Wizard. Here the details of this steps will not be provided, to see the details of this steps see creating capacitor footprint where the details steps of using component wizard is provided.

Once you start the Component Wizard, select the Small Outline Package(SOP), select metric(mm) as your unit.

The next thing the wizard ask is the pad size. From the footprint information above, the length is 2.795mm and the width is 1.4mm. So enter these lengths-


Next the relative position of the pads are requested by the wizard. Here again from the footprint information, the center to center distance in the length direction is 4.825mm(2.03+2.795) and the center to center distance in the width direction is just 4.5mm.


The width of the outline can be left in default value.

The next thing that the wizard requires is the number of pads. Here select 4. Then the last thing to enter is the name for the component, enter some suitable name like SW for switch.

Once the wizard work is done, the initial footprint looks the one below-


The footprint has top overlay running through the middle like the one required for a real SOP component. And the pads are not all rectangular.

So we can first just delete the overlay part.


We will add it later on, just don't worry.

Now, the next thing to do is to change the shape of the pad from rounded to rectangular and also change the Pin number assignment(look the datasheet picture above).

We can start with any one of the pins, lets start with pad with pin number 2 labelled.

Just double click on it. Check the shape to rectangular and change the designator to 1 as shown below.


Ok, now thats done here is what the footprint looks like with Pad changed-


See the Pad shape and pin designator number has changed, Wow. That was not difficult,right?

So changing all the rounded pads to rectangular and changing the pads pin number too gives us the following-


So what is left to do?

Yes, the outline in yellow, the overlayyyy has to added back, but we can do it after the 3D body is placed.

So lets add the 3D body. You can download the 3D body in step format of this part from the digikey or the manufacturer website.

Once you downloaded and saved it somewhere in your PC or whatever you are using, you can import that model into and attach to the footprint.

To place the 3D model, use Place > 3D Body. This brings up a dialog window to import the model. The importing is simple, 1st select Generic STEP Model, 2nd select Embed STEP Model as shown below-

 After this click OK and then window pops up again, this time click cancel and you should see the 3D body outline placed in the 2D view or the footprint view as shown below-



Not so interesting, isn't it. Click on 3 key on your keyboard. This switches to 3D view and the parts becomes more sensible-


Shit! this looks awkward... The thing is we have to orient the body and align with the footprint pads.
Double click on the 3D body and this brings up the dialog box we closed earlier. Then in the window make a 0 degree rotation of the 3D body by entering 0 in the X Rotation field(mine was at 90 degree).
This rotation change should bring the 3D body in correct orientation-
Now we have to align the 3D body with the pads. To do this we have to grab and select some points on the 3D body pins and then with the help of the visible points move the body to the pads.

So in order to do, we need to rotate the body so that its pins are visible.

Now go to Tools > 3D Body Placement > Add snap points from vertices. 
Now to select center of each pins of the 3D body, first click on the 3D body, the hit SPACE key. After this the next two clicks are the start and end point for the center of the two points. Once you finish the center of one pin, you can continue to another pin center by selecting the 1st start pin and then the 2nd end point for the 2nd center point and so on.


Once you have the center of the 4 pins switch to the 2D view to appreciate why this process was done.



Now its easy to align the 3D body pins with the pads on footprint.

Move the body to align the 3D body and the pads as shown below-


Switch to 3D view-


Rotating the view to get the view of the body pin and the pad, we can see that the pins are not on the correct level with the pads.
To set the correct height for the body. Go to Tools > 3D Body Placement > Set Body Height. Then first click on the body to select it, and second, click on the lower pin part of the body as shown below by blue cross-


This will pop up a window and here select Board Surface.


Now remove the snap points by going to Tools > 3D Body Placement > Remove Snap Points.


Now the body is in correct height-


Finally we have to add the outline, the top overlay to the final footprint with 3D body.

Switch back to 2D view by pressing 2 key. Then select the top overlay tab at the bottom. Use the line line tool create a box surrounding the component.


Select each line by double clicking and set the width to 0.18mm to reduce the thick wideness.


The final design is shown below-


There are also other tutorials using altium designers software related to PCB design, schematic design and simulation.