We will use the Wire tool button to connect the components. There is also a bus function for adding a bus line, but it is unnecessary for this project as it is simple enough to interconnect without using a bus.


Click the Wire tool button and start by connecting POS to C1, then C1 to pin 1 of U2. After the trace is complete, press the ESC key to start a new trace.



Figure 14.14

Connect the next traces as follows.

U2 pin 2, C2

C2, Atmega16 pin VCC

NEG, C1

C1, U2 pin 3

U2 pin 3, C2

C2, Atmega16 pin GND


Here is what the circuit should look like at this point.



Figure 14.15


Connect the switches to the Atmega with the following trace orders.


Atmega16 pin 42, R1

R1, S1 pin 3

Atmega16 pin 43, R2

R2, S2 pin 3

Atmega16 pin 44, R3

R3, S3 pin 3

Atmega16 pin 1, R4

R4, S4 pin 3



Figure 14.16

Connect the LED's and then the switches to ground and LED's to positive voltage.


Atmega16 pin 40, R5

R5, LED1

Atmega16 pin 41, R6

R6, LED2

S1 pin 1, NEG

S2 pin 1, NEG trace

S3 pin 1, NEG trace

S4 pin 1, NEG trace

LED1, C2 pos term

LED2, C2 pos term trace


After making the connections and terminating some of the traces to other traces (to keep from having to make several traces to the same location of GND and VCC) you need to add a junction to each location the traces were connected by clicking the Junction tool button and adding a junction on top of the connecting point of each of the junctions as shown in figure 14.17.



Figure 14.17


Make sure you save your work regularly in case you lose power or your system locks up. In the next section we will cover creating the circuit board layout.

Circuit Traces