Lesson 2 Intro To Tinkercad
Lesson 2 Intro To Tinkercad
LESSON 2
Prepared by:
ENGR. SPRINZTSIE MAYE T. GARRUCHA
CPE317 Instructor
LEARNING OUTCOMES:
Logic gates are used in a computer to transform the 1s and 0s from input wires. It accepts inputs,
and then outputs are results based on their state. The logic gate is a small transistor circuit that
is part of different forms in an integrated circuit. Each type of gate has one or usually two inputs
and one output.
Truth Tables
Truth tables are used to trace the output from a logic gate or circuit. When we construct truth
tables, there can be only 1s and 0s, and all combinations of 1s and 0s can be input are considered.
It defines the function of a logic gate using a list that shows all the output states in tabular form
for each possible combination of the input variable.
A truth table is used in mathematical representation to represent all the combinations of values
for inputs and their corresponding outputs.
Logic Circuits
When Logic Gates are put together, they can carry out a function, and a truth table for it. Logic
Circuits in real life can be found in many devices that do not require an operating system and
devices which only have a certain set of instructions such as a microwave, air conditioner, TV
remote, etc.
Logic Gate Pins
Example:
𝑭 = ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
(𝑨𝑩 ̅ ) + (𝑩 ̅ + 𝑪)
𝑨 𝑩 𝑪 ̅
𝑩 𝑨𝑩̅ ̅ +𝑪
𝑩 ̅ ) + (𝑩
(𝑨𝑩 ̅ + 𝑪) ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
(𝑨𝑩 ̅ ) + (𝑩 ̅ + 𝑪)
1 1 1 0 0 1 1 0
1 1 0 0 0 0 0 1
1 0 1 1 1 1 1 0
1 0 0 1 1 1 1 0
0 1 1 0 0 1 1 0
0 1 0 0 0 0 0 1
0 0 1 1 0 1 1 0
0 0 0 1 0 1 1 0
Logic Diagram
TOPIC 2: ELECTRONIC CIRCUIT BASICS WITH TINKERCAD
The process used in TinkerCAD is often used Click the create button to build a new circuit.
for rapid prototyping. Prototyping is a
process where we can develop components
in a flexible manner than can be quickly
updated and modified to test a variety of
options when developing a project or
product. We will use this process of
prototyping to learn how to create basic
electronic circuits.
The Breadboard will be selected and The edges of the board contain two columns
temporarily attached to the mouse pointer. with the same number of rows. These
Move the mouse pointer onto the workspace columns have negative and positive
and click the mouse button to place the
symbols. These columns and holes are used
Bread-board onto the workspace.
for the power supply. The components in the
center part of the board will tap into these
columns to draw electric current.
Our first project will create a basic closed An LED has connections that make it
circuit with a light. Our light will be supplied different from a regular light bulb. An LED
by a Light Emitting Diode, LED. Click the has one connection called a Cathode and
Components button to open the components another called an Anode. The Anode lead is
drawer if it isn’t already open. usually longer than the cathode. This
distinction is important because the anode
must be connected to the positive end of an
electric circuit. Current flows in only one
direction through an LED.
In this topic, we will be using a pushbutton to Looking at the button from the side we see
complete a circuit with an LED. Before that the button floats above the two wires
creating the circuit with the pushbutton, let’s with a spring. The spring isn’t shown in the
take a look at how the pushbutton works. The image. When the button is above the wires
pushbutton is a temporary connection. as shown in the illustration, the electric
Clicking the mouse button on your computer current cannot flow through the circuit. The
over the pushbutton will simulate pushing a current is shown in the image uses a red
button and closing a circuit. The mechanism dashed arrow pointing up.
for doing this is not visible so I have created
illustrations to help explain.
Circuits usually have a button that is used to terminal so it connects to the other side of the
open and close the circuit. We will be using but-ton. This will complete the circuit.
the same circuit constructed in the previous
topic and add a button.
In the previous topic, we used a Pushbutton Find the Slide switch component and place it
to pass voltage to the LED. The Pushbutton on the breadboard.
is a temporary button. When the button is
released, so is the connection that closes the
circuit. A Slide Switch is more permanent
because it will continue to maintain either an
open or close circuit without the user having
to keep a finger on the switch.
The LED is not lit because the switch is in the Connect the right side of the switch to the
OFF position. Click the switch once to move negative rail with a jumper wire.
it to the ON position.
The LED will light and remain lit until we click The Cathode side of the LED needs to be
the switch again to move the Slide switch or connected to the negative side of the switch
stop the simulation. Click the switch to open to close the circuit when the switch is flipped.
Click once on the jumper wire for the LED
the circuit and turn the LED OFF.
Cathode.
moved in order for the circuit to be closed.
Click the Switch once to open the circuit.
Connect the wire to the row that connects the We can use one side or the other of the
right side of the switch lead. Switch to complete a circuit. We cannot use
both sides of this switch at the same time. Try
connecting a jumper wire to both sides of the
switch and see what happens.
Find the small Breadboard component and Place the Multi-meter near the center of the
place it on the canvas. breadboard in the upper half. Make sure to
leave columns f and g available so we can
make jumper wire connections.
Connect jumper wires from the negative Connect two more jumper wires. One wire
battery terminal to the negative rail on the will connect the positive terminal of the
bread-board and connect a jumper wire from Multimeter to the lower half of the bread
the positive battery terminal to the positive board. The other jumper wire will connect the
rail on the breadboard. negative rail to the multi-meter along one of
the rows. In the image below that would be
along row 14.
The error message doesn’t mean much in To understand the meaning of the colors of
this example because we know that the these bands we need to have access to a
resistance value is 1 kilo-ohm. We know this table that lists the hundreds of possible
because we set the value on the resistor resistors. There are web pages that have
configuration panel. down-loadable tables. There are web pages
that al-low us to select the color bands and it
pro-vides the necessary information. There
are also apps that can be used on mobile de-
vices
Another way to find the resistance value of Click on the letter “V” on the meter to read
the resistor is to use Ohms Law. To find the the voltage. The voltage is 4.50. Dividing
resistance we divide voltage by the current. these two numbers will give us 1 kilo-ohm.
The meter provides this information for us.
The voltage is 6 and the current is 5.99 Teachable Moment: This example is very simple,
amps. Dividing 6 by 5.99 comes very close to try changing the value of the resistor to other
1, and 1 kilo-ohm is the value of our resistor. values like 1.5 or 1.75 and verify these values
with the meter and Ohm’s Law.
It is a good idea to keep track of our projects A properties configuration box will open. In
in TinkerCAD. Throughout these lessons we this box, we can change the name of the
will be creating a variety of projects and project. We can also provide a description for
many of them will look very similar. The
the design. Providing a description here is
preview im-age in the main page doesn’t
always help. This is why it is important to very important as designs get more
provide a descriptive name to each project. elaborate. A good description can distinguish
Go to the TinkerCAD circuit main page by one of your designs from another.
clicking the TinkerCAD logo at the top of the
page.
Select the option to duplicate the design. Click the Save Changes button.
A potentiometer is a dial with three Find the 9 Volt battery in the components
connectors. The dial is used to vary the panel and place it to the right of the bread-
amount of voltage that flows through the board.
potentiometer and sent to a circuit or
component. Potentiometers are used as
volume controls on audio equipment and
usually don’t handle a lot of voltage.
Connect jumper wires from the center and Click the “Start Simulation” button. The dial
left potentiometer to the LED. The center on the potentiometer is all the way to the left
connector on the potentiometer will be used and no voltage is being sent to the LED.
for the positive flow. Move the dial slowly to the right until the LED
lights.
A capacitor is a component that stores Place a small breadboard onto the work
electrostatic energy. This is a form of area. Place a 9-volt battery on the right side
potential energy. Capacitors contain two of the breadboard and place a push button
electrical conductors and are separated by switch to connect the top half of the
an insulator. The conductors are thin films of breadboard with the lower half.
metal. The insulators can be glass, ceramic,
plastic, or air. When a capacitor is connected
to battery positive charges collect on one
plate and negative charges collect on the
other plate. When the capacitor is filled with
an electric charge it will not allow current to
flow through the capacitor. The electric
charge can be released by the capacitor into
a circuit. Capacitors store electrical energy
as potential energy and release it into a
Click the All Components section to search
circuit as voltage and current.
for the capacitor. The capacitor we will use in
Teachable Moment: Take a look at the various this circuit is not part of the basic
materials used as insulators and think about components.
which material might provide the best resistance.
What makes a good resistor? Most capacitors
use air for the capacitor because air is a much
better resistor. Why is air a much better resistor?
Think about the properties of air and the other
resistor materials.
The Arduino board is a micro controller. A Place the micro controller to the left of the
microcontroller is a very simple computer Breadboard. There are several components
that accepts basic code and translates that that are part of the Arduino board. Let’s look
code into instructions that interact with the at a couple of these components.
physical world. In this lesson, we will use a
micro con-troller to take the place of a switch.
The micro controller will do more than take
the place of the switch. We will use the micro
controller to augment what can be done with
the circuit and a push button.
Blinking LED
Reference:
• Digital Maestro Magazine URL: digitalmaestro.org