Charles Darwin University: HIT332: Embedded and Mobile Systems Casuarina Campus
Charles Darwin University: HIT332: Embedded and Mobile Systems Casuarina Campus
This practical / tutorial is designed to give you an introduction to schematic design concepts
relevant to embedded system development. Specifically, this tutorial will introduce the
process of drawing a schematic diagram for a circuit design using the open-source package
KiCad. Once a schematic has been drawn, the design can then be prototyped, source code
developed and debugged and a PCB design could then be created to build the final product.
• understand how to create a new schematic document using the KiCad Electronics
Design Automation (EDA) suite,
• be able to use the tools in KiCad to draw a schematic diagram.
IMPORTANT
Read the instructions carefully, and follow each step in the correct order. In particular,
make sure that you are logged into the INTERNET before connecting the board or starting
the software for the first time.
Alternatively, if you do not click the pop-up you should see the following pop-up
when installation is successful.
You will see that the board is installed as a USB Serial Port device and assigned a
COM port number (your COM port may be different). Your development board is
now installed and ready to use.
In all of these practical exercises, to minimise errors and maximise your success, make
sure you read the instructions carefully, enter commands and source code exactly as
shown and pay careful attention to wiring up your circuits. If you are unsure about
anything, ask you instructor for assistance.
Introduction to KiCad
KiCad is an open-source software tool for creating electronic schematic diagrams and PCB
layouts. It is a collection of tools, however we will focus on the schematic
editor only.
1. To start KiCad, from the CDU Embedded Toolbox, click the Launch
KiCad button.
2. You should now see the main KiCad manager window. This interface allows you to
access the various tools available within the KiCad suite. You can also see the files in
your currently open KiCad project.
The KiCad manager has 8 buttons for different tools. These tools are described below:
Pcb Calculator A tool to calculate track widths, and many other things.
The project tree view on the left shows the files in the current project directory. The top
toolbar gives access to basic project file operations (hover your mouse over the buttons
for a description).
1. To add this library to the project, select Preferences >> Component Libraries.
2. Click on the upper “Add” button (next to the component library files list). Browse to
the CDU Embedded Toolbox directory, then the “CDU_KiCad_Library” directory and
finally select the “CDU_KiCad_Library.lib” file.
3. If the library is not at the top of the list, select it and move it up with the Up button.
4. Click Ok.
1. Use the filter field in the component selector and enter “res”. Select the RES
component from the CDU_KiCad_Library.
2. While the resistor is floating on the cursor, press the E key to open the component
properties window. The component properties window should appear as shown
below.
3. In the fields list, select the value field. Change the Field Value from RES to 100k and
then click Ok.
4. Position the resistor slightly to the left and above the base of Q1 (again refer to the
hand-drawn schematic), adjust the rotation and then click to place the part. Make
sure that no part of the resistor is touching the transistor as all components will be
wired together later. If you need to move a component after it is placed, position the
cursor over the component and press the M key.
5. Now place the other 100K resistor R2 above and to the right of the base of Q2. You
can hover over the first resistor and press the C key to copy the resistor and then
click to place it in position.
6. R3 and R4 have a value of 1K, so press the E key and change the Value field to 1K.
7. Place R3 and R4 as appropriate then press Esc to exit part placement mode.
8. You can also edit the component value after placing the component by hovering
your mouse over the component and pressing the E key. If you hover over the
displayed value next to the component on the schematic and press E, a different
window will open to allow changing only the value field.
9. Alternatively, you can right-click on the component and choose Edit Component >>
Edit.
10. To delete a part, hover over the component and press the Delete key.
1. Set the filter field to “cap” and select the component “CAP” from the
CDU_KiCad_Library.
2. Set the value and place the capacitors according to the supplied schematic.
The connector is the last component to be placed, it is also located in the
CDU_KiCad_Library.
1. Use the filter field to find the “conn_2” component and place it in the schematic.
2. Remember, to exit the part placement mode (or any other mode), press the Esc key.
3. Save the schematic with File >> Save Schematic Project.
All of the components should be well spaced with plenty of room to wire each component
pin. This is important because you cannot place a wire across the bottom of a component
pin to get to a pin beyond it. If you do, both pins will connect to the wire. Basically, if you
place a wire over a component they will become joined, however if you place a wire over
another wire they will not become joined unless done so explicitly using a junction.
1. Hover over the resistor R1 and press E. The component properties window will open
and you can change the reference field to R1.
2. You can also hover over the reference field (R?) and press E to achieve the same
thing.