Catto / Topic Map · Computing for Electronics II Year 5
Computing for Electronics II · 120 h · Topic 3 of 5

Schematic circuit diagrams

The schematic is the parent document of an electronics project: the board, the bill of materials, the cost estimate and the repair instructions all come from it. A clear schematic saves weeks; a confusing one costs them.

CAD and design Netlist Libraries ERC

01What it represents and what it does not

Connectivity, not geometry

A schematic says what is connected to what. It does not say where each component goes, how long a wire is, or how big the circuit board is. Two schematics drawn in very different ways can describe exactly the same circuit, and the software knows it: internally both generate the same netlist.

Hence the freedom to draw it in the most readable way, which is the only criterion that matters.

+5V R11k D1 Q1 R2 · 10k IN netlist generated by the software +5V R1.1 N1 R1.2 D1.A COL D1.K Q1.C IN R2.1 BASE R2.2 Q1.B GND Q1.E The +5V net: everything hanging off the supply rail The COL net: joins the LED cathode to the transistor collector The BASE net: the output of R2 and the base of Q1 The GND net: the common reference of the whole circuit Each net is a set of electrically joined pins. That, and only that, is what passes from schematic to board.
Figure 1. From schematic to netlist, animated. Each net —each set of electrically joined pins— is highlighted together with its line in the listing. That is the only thing the software transfers to the board.

02Rules for making it understandable

Do
  • Signal from left to right: input on the left, output on the right.
  • Power rails at the top and ground at the bottom, always.
  • One functional block per area, with a title if the schematic is large.
  • Net labels with names that mean something: RESET, TX, VBAT.
  • Decoupling capacitors next to the IC they supply.
  • Margin notes for whatever the drawing cannot express: “adjust R7 to 2.5 V,” “mount on heatsink.”
Don’t
  • Crossing lines unnecessarily, or using little “hop-over” arcs at the crossings: today this is solved with labels.
  • Joining four lines at a single point: with a junction dot, the node is ambiguous. Make two separate T junctions instead.
  • Drawing the IC with its pins in physical order if that tangles the schematic.
  • Leaving nets unnamed and then hunting for them by color.
  • Using the same label spelled two different ways: VCC and Vcc can be two different nets for the software.
The junction dot

Two lines that cross without a dot are not connected; with a dot, they are. This is a universal convention and the source of half the reading errors on a printed schematic, especially if the resolution is low. That is why good practice is to avoid crossings and not depend on the dot.

Hierarchy and buses

Hierarchical sheet

A large project does not fit on one sheet. It is divided into blocks —power supply, input, control, outputs— each on its own sheet, with ports that connect them. The top sheet shows the block diagram and each block opens separately.

Bus

A set of related signals —D0 to D7, A0 to A15— is drawn as a single thick line, with the signals entering and leaving by name. It saves dozens of parallel lines and makes the schematic much more readable.

03Symbol, footprint and model

Every component in the project has three different representations that must be kept consistent. This is where beginners’ designs fail most often.

Symbol

What you see in the schematic. It defines how many pins the part has, what they are called and what type they are (input, output, power, bidirectional).

Footprint

The pattern of copper and holes on the board: the actual physical shape of the component. A single symbol can have many footprints: the same transistor comes in TO-92, TO-220 or SOT-23.

3D model

It is used to check heights and clearances against the enclosure, and is exported to mechanical CAD.

Always check the footprint against the datasheet

It is the most expensive error in board design, because it is not discovered until the manufactured boards arrive. Before sending the design to fabrication:

  • Compare the footprint with the dimensional drawing in the datasheet, millimeter by millimeter.
  • Print the board at 1:1 scale and place the real components on top. It takes a minute and catches almost every error.
  • Confirm the pin numbering: a TO-92 has three legs and at least three different pin orders depending on the manufacturer and the part.
  • Check the orientation of connectors and polarized components: the pin 1 mark has to be on the silkscreen.

04Electrical rules checking

The ERC (electrical rules check) examines the schematic for inconsistencies, using the declared type of each pin. It does not understand circuits: it understands rules. Even so, it catches most careless errors.

Unconnected input floating: in CMOS, a sure failure Two outputs tied together short circuit if they differ VCC U1 Power pin with no source nothing supplies that voltage The ERC checks the consistency of the drawing. It does not check the design: that is up to whoever made it.
Figure 2. Three typical errors the ERC detects, animated: an input pin left floating, two outputs connected to each other and a power rail that no source supplies.
WarningWhat it meansWhat to do
Unconnected pinAn input was left floatingConnect it, or explicitly mark it “no connect” if intentional. In CMOS, never leave it floating.
Two outputs tied togetherTwo output pins on the same netIt is a short circuit when one drives high and the other low. It is only valid with open-collector or tri-state outputs.
Power pin with no sourceThere are VCC pins but nothing that drives themAdd a power source symbol or mark the net as powered by a connector (PWR_FLAG in KiCad).
Single-pin netA label that does not match any otherAlmost always a typo in the net name.
Duplicate reference designatorsTwo R7s in the same schematicRenumber automatically.
Symbol with no footprint assignedThe component cannot be transferred to the boardAssign the correct footprint, checking it against the datasheet.
What the ERC does not see

It does not know whether the base resistor is too large, whether the filter capacitor is big enough or whether the transistor will saturate. The electrical check is about consistency of the drawing, not of the design. That is what calculation, simulation and the prototype are for.

05What comes out of the schematic

DocumentWhat it containsWho it is for
NetlistThe list of nets with all their pinsThe PCB software. It is the bridge between schematic and board.
BOM (bill of materials)Reference designator, value, footprint, quantity, supplier part numberPurchasing and assembly. It is generated automatically from the schematic.
Schematic as PDFThe drawing with its title block and revisionDocumentation, repair, presentation
Design notesCriteria, calculations, values to adjustWhoever picks the project up a year from now, who will probably be yourself
Revisions

Every schematic carries a revision number and a date in the title block, and a line saying what changed. Without that, as soon as two versions are circulating nobody knows which one matches the board on the bench, and more time is lost finding out than in the whole design.

ToolNote
KiCadFree, open source and full-featured. It is the standard in education and increasingly in industry. Runs on Windows, Linux and Mac.
EasyEDAIn the browser, with a huge library tied to a supplier. Very handy for getting started.
EagleHistoric and widely used; now integrated into Fusion 360.
ProteusIts strength is simulating the circuit, even with the microcontroller running the program.
AltiumProfessional, expensive and powerful; the standard in high-volume industry.

06In the lab

Lab 1 · Draw a known circuit

Take the regulated power supply with the LM317 already studied and draw it completely in the chosen software: symbols, values, reference designators, net labels and title block. Run the ERC until no warnings remain and export the PDF.

Lab 2 · Find other people’s errors

The teacher hands out a schematic with five planted errors —a floating pin, a misspelled label, a reversed electrolytic capacitor, two repeated reference designators and a wrong footprint—. Look for them first by eye, write them down, and only then run the ERC to compare what each one found.

Lab 3 · The same circuit, two drawings

Draw a simple circuit twice: once following the readability rules (signal from left to right, power at the top) and once in a rush. Generate both netlists and compare them: they are identical. This shows that readability is not for the machine, it is for people.

Lab 4 · Library and BOM

Create the symbol and footprint of a component that is not in the library, assign it, and generate the complete bill of materials of the project with quantities and part numbers. Get a quote from a local supplier: that is where the project stops being a drawing and acquires a price.

07Common mistakes

SymptomUsual cause
The board is missing connections that are in the schematicLines that look like they touch but are not joined: they were drawn on top of each other without the software creating the junction.
Two nets that should be oneLabels spelled differently: VCC and Vcc, or with a trailing space.
The component does not fit on the manufactured boardWrong footprint, or one not checked against the datasheet.
The IC was inserted backwardsThe pin 1 mark is not on the silkscreen, or the footprint places it wrongly.
The ERC reports nothing and the circuit does not workThe ERC checks consistency, not design. Nothing replaces calculation and the prototype.
The BOM does not match what was assembledA value was changed on the board and not in the schematic. The schematic is always the source: fix it there and regenerate everything.
Nobody knows which version is the good oneThe revision and date are missing from the title block.

08Self-assessment

What information does a schematic carry, exactly?

The connectivity: which pins are joined together, with which components and with which values. It does not carry position, size or conductor length.

What is a netlist and what is it for?

The listing of all the nets of the circuit with the pins that belong to each one. It is what the PCB software reads to know what it must connect: the bridge between the schematic and the board.

What is the difference between a symbol and a footprint?

The symbol is the representation in the schematic and defines the pins; the footprint is the physical pattern of copper and holes on the board. A single symbol can have several footprints depending on the package.

Why may two crossed lines be connected or not?

Because the connection is indicated by the junction dot. Without a dot, the lines cross without touching. Since the dot can get lost in a low-quality printout, it is best simply to avoid crossings by using net labels.

The ERC warns “power pin with no source.” What is going on?

There are power pins on the net but no element that supplies it. This is normal when the power comes from an external connector: it is resolved by marking that net with the appropriate power flag.

Why is it sometimes valid to tie two outputs together?

Only if they are open-collector or tri-state: in the first case each output can pull the net to zero but not to one, and in the second only one is active at a time. With ordinary totem-pole outputs, tying them together is a short circuit.

What is drawing with hierarchical sheets good for?

To keep a large project readable: each functional block on its own sheet, with defined ports, and a top sheet that shows how they relate. It also makes it possible to reuse a complete block in another project.

How do you verify a footprint before sending the design to fabrication?

By comparing it with the dimensional drawing in the datasheet, and printing the board at 1:1 scale to place the real components on top.

A resistor was changed on the circuit board. Where is that recorded?

In the schematic, which is the source of everything: the BOM, the netlist and the PDF are regenerated from it, and the revision number is incremented. Recording it only on the board guarantees that the next production run comes out with the old value.

What does it mean when two differently drawn schematics generate the same netlist?

That they are the same circuit. The difference lies in readability for people, which is precisely the criterion to draw by.

Development of the topic “Schematic circuit diagrams” of Computing for Electronics II (Year 5), based on the “Curriculum Proposal – Second Cycle of the Technical-Vocational Track, Secondary Education – Electronics,” Ministry of Education of the Province of Córdoba, DGETyFP. Back to the Topic Map · catto.ar