Installing Qucs on Ubuntu

December 16, 2009

Qucs is a free circuit simulator for Windows, Linux and Mac. It comes complete with a schematic editor, project manager and other useful tools.
Qucs is very easy to use and support the standard DC, AC, Parameter Sweep, Transient, digital and other simulations, it also includes a selection of popular component models.
Qucs can display the simulation data in a number of ways such as Cartesian Plot, Polar, Tabular, Smith Chart, Timing Diagram and Truth Table.

Installing

First open the terminal and type the following:

cd ~
wget -t5 http://downloads.sourceforge.net/project/qucs/qucs/0.0.15/qucs-0.0.15.tar.gz?use_mirror=kent

This is download the latest version of Qucs, once that is done you will need to extract it:

tar -xvzf qucs-0.0.15.tar.gz

If you want to delete the Qucs source archive you can do so by using this, if not skip this next command.

rm qucs-0.0.15.tar.gz

Now you need to move the folder to where you want to compile it, if you don’t mind it being in your home folder skip this:

sudo mv qucs-0.0.15 /usr/src
cd /usr/src/qucs-0.0.15

Next move into the folder and download the dependencies required to compile Qucs:

cd qucs-0.0.15
sudo apt-get install libqt3-headers

Finally you can compile Qucs:

./configure
make
sudo make install

Once this is done (hopefully without any errors) you can run Qucs simply by typing:

qucs

That’s all, although I’d suggest adding a shortcut to your menu.


Semiconductors Explained

December 10, 2009

A semiconductor is a material that has an electrical resistance between that of a conductor and an insulator. Semiconductor materials also contain 4 electrons in their outer electron shell (valence shell).

Most group 14 elements in the periodic table can be semiconductors, these are carbon, silicon and germanium, most modern semiconductor components are made from silicon that has been grown into a cubic crystal structure.

The arrangement of atoms in the semiconductor is very important, semiconductors must have a cubic crystal structure to function properly, pure silicon or germanium is never used to manufacture working semiconductor components as its resistance cannot be controlled very well, it is only effected by changes in temperature.
In a pure semiconductor all the high energy outer electrons are used up maintaining the tight crystal structure save for those dislodged thermally.

P and N type Semiconductors
Two different types of semiconductor can be made by adding tiny amounts of impurities to the semiconductor material in a process known a doping, one type of semiconductor is the P type which is made by adding a small amount of boron.

Boron (B) is a group 13 element, it had 3 electrons in its outer shell, so when it is added to the crystal structure it leaves a gap known as a ‘hole’, because of this it is known as an acceptor impurity because the hole can accept an electron.

The other type is the N type semiconductor which is doped with phosphorus (P) which is a group 15 element that has 5 electrons it its outer shell, when added to the crystal structure it leave a free electron, thus it is known as a donor impurity.

A hole is an empty space in the crystal lattice that can accept an electron to fill the gap, holes cannot move as such, however they may appear to do so as electrons in the semiconductor move around.
P type semiconductors have many holes and few electrons, thus holes are the majority charge carrier with electrons being the minority.
The reverse is true with N type semiconductors, electrons are the majority charge carrier with holes as the minority.

Placing a piece of N and P type semiconductor results in diffusion, where some of the electrons in the N material jump over to fill some holes in the P material, this results a small region forming in each type.

In the P type semiconductor a small N type area is formed where the materials touch.
In the N type semiconductor a small P type area is formed where the materials touch.

Depletion Region
This results in a very small region forming in the semiconductor known as the depletion region, this region is very important in the manufacture of useful semiconductor components as they are all made up of both P and N type material.
The simplest electronic device made from semiconductors is the diode which is made of one P type and one N type semiconductor material sandwiched together, this results in a depletion region forming a P-N junction.

I will add more information on how diodes work in my next post.


Ohm’s Law

December 3, 2009

Ohm’s Law is a simple mathematical law that shows how voltage, current and resistance are related.
It was discovered by Georg Simon Ohm in 1827, the three main equations given by Ohm’s Law are:

V = IR
I = V / R
R = V / I

Using Ohm’s Law it is possible to find the voltage, current and resistance in any circuit.

For example, a simple circuit containing one 9V battery and a resistor of 1kΩ it is possible to find the current through the resistor by using Ohm’s Law.
V = 9V
R = 1000Ω
I = 9V / 1000Ω = 9mA

It can also be used to find the resistance of the resistor or any other component.
V = 9V
I = 9mA
R = 9V / 9mA = 1000Ω

And the voltage drop over the resistor.
I = 9mA
R = 1000Ω
V = 9mA * 1000Ω = 9V


Follow

Get every new post delivered to your Inbox.