Professional Documents
Culture Documents
sd
16 hertz
www.16hertz.com
support@16hertz.com
33
16 hertz
www.16hertz.com
education@16hertz.com
Inventory of Parts
Quantity
1
1
1
1
1
1
1
2
5
5
5
1
2
2
2
2
2
1
1
5
5
2
2
5
1
5
Item
400 point breadboard
Jumper Wires, assorted lengths
AA battery holder
DC Motor (3V)
RGB LED (common cathode)
Thermistor
10k Potentiometer
Photoresistors
PN2222 Transistors
BC547 Transistors
1N4001 Diodes
RGB LED
Red LED (5mm)
Blue LED (5mm)
Green LED (5mm)
Yellow LED (5mm)
White LED (5mm)
Thermister
Piezo Buzzer
22pF Ceramic Capacitor
0.1 F Ceramic Capacitor
50V 100F Electrolytic Capacitor
50V 10F Electrolytic Capacitor
Push-button switches
9V Battery Connector
10, 100, 200, 330, 1k, 10k, 100k, 1m Resistors
sd
16 hertz
www.16hertz.com
support@16hertz.com
RESISTOR
A resistor is a passive electrical component that
acts to reduce the current flow while lowering the
voltage across a circuit. The current flow through a
resistor, or any component for that matter, is given
by Ohms law (I=V/R)
Resistors are some of the most common elements
in all circuits. In your kit you have resistors in 10
different values.
16 hertz
www.16hertz.com
education@16hertz.com
Remember, to create values of resistance you can always connect resistors in series, one
5
after another. For instance, if you need 530 of resistance, you can combine a 200
resistor and a 330 resistor.
The color bands on the resistor arent just there to make it look pretty, the resistance value
and the tolerance of the resistor are encoded in them.
Each color of each band
represents a different value.
You can read the resistance
value of a resistor shown to
the right the following way:
First band Red 2
Second band Black 0
Third band Blue 1M
Fourth band Gold 5%
tolerance
The schematic symbol for a resistor is a line that resembles a triangular wave.
Remember, resistors dont have a polarity, so it doesnt matter which way you
connect them to your circuit.
55
sd
16 hertz
www.16hertz.com
support@16hertz.com
vertical columns
labeled by a + and
a on either side
connections.
77
16 hertz
www.16hertz.com
education@16hertz.com
sd
16 hertz
www.16hertz.com
support@16hertz.com
You can vary the brightness of the LED by increasing the resistance in the circuit. Now that
you know how to get one LED to turn on, lets try getting a whole lot of them on! There are
many different ways to connect components in a circuit. Lets explore a few of them and
note their differences. The two of the simplest and most frequently occurring ways are
connecting components in series or in parallel.
Youve just built a series circuit. Components connected in series are all connected in a
single path.
16 hertz
www.16hertz.com
education@16hertz.com
CURRENT
VOLTAGE
Since the same current is flowing
throughout the entire circuit, the
brightness of all the LEDs should be the
99
10
sd
16 hertz
www.16hertz.com
support@16hertz.com
A parallel circuit is another way to build a circuit. In a parallel circuit, there is more than one
way to form a closed loop, for instance, the battery R1 & LED1 form a closed circuit on their
own. This configuration leads to the voltage across the parallel circuit being the same, while
the resistance in each of the individual closed circuits determines the current flow through
each component.
RGB LED
In your kit, you shouldve gotten an RGB LED. The RGB LED is essentially 3 LEDs in one. It is
a blue LED, green LED and a blue LED in one package. With the RGB LED
you can create almost any color by varying the intensity of each
each of the primary colors. Remember, you can vary the intensity
of an LED by limiting the current that is sent to it.
1
0
111
1
16 hertz
www.16hertz.com
education@16hertz.com
RGB LEDs come in two common flavors, common cathode and common anode. Cathodes
1
are normally (-) and anodes are (+).
The RGB LED in the kit is a common cathode LED. This means that each of the 3 LEDs that
make up the RGB LED have a common cathode i.e. you can ground the long lead (the
cathode) and a positive voltage to each of the other 3 leads.
If you connect all the 3 colors with the same resistance, the same amount of current will
12
sd
16 hertz
www.16hertz.com
support@16hertz.com
flow through each of them and each color will glow with about the same intensity. We all
know what happens when you combine the three primary colors, red, green and blue you
get white!
So the RGB led in this circuit, with the same resistors connected to each color will glow
white.
TO TRY
QUESTION
POTENTIOMETER
A potentiometer or pot, is a variable resistor. Your kit comes
with a rotary potentiometer with a range of about 10k.
As you turn the knob of the potentiometer, a sliding wiper
inside moves along a track. This mechanism allows for varying
resistances that depend on where the wiper is along the track
at any given time.
Instead of changing resistors each time
we want a new resistance in the circuit, we can use a potentiometer.
Lets try using a potentiometer to control the intensity of one of the
colors in the RGB LED to see what colors we can create.
Potentiometers are used often in many devices from volume controls to
scroll wheels on mice
1
2
16 hertz
www.16hertz.com
education@16hertz.com
1
3
Lets go one step beyond Circuit 4 where we left having to change resistors every time we
CIRCUIT 5: A Pot at the End of the Rainbow
This circuit will allow you to control the amount of current going into one of the leads of the
RGB LED by changing the resistance in that circuit by turning the knob.
TO TRY
TROUBLESHOOTING
PHOTORESISTOR
Photoresistors, sometimes called photocells or light dependent resistors (LDR),
are variable resistors that change their resistance based on how much light is
incident upon it.
The resistance of a photoresistor decreases as the
intensity of the incident light increases. In other
13
1
3
14
sd
16 hertz
www.16hertz.com
support@16hertz.com
words, the brighter the light, the lower the resistance and vice-versa.
Photoresistors are very versatile and easy to use. They are ideal for projects needing light
sensitivity and dependency.
It is good practice to incorporate the photoresistor in a voltage divider circuit when using it.
You can see from this expression that when R1 decreases, Vout increases and when R2
increases, Vout also increases.
Voltage dividers might seem like a cure for everything, but be careful all that energy from
reducing 9V to 5V has to go somewhere, this turns into heat. If you application is stepping
down a large voltage or is drawing a considerable amount of current you will end up destroy
resistors.
1
4
15
1
5
16 hertz
www.16hertz.com
education@16hertz.com
CIRCUIT 7: Night-Light #1
1
5
This is our first attempt at a night-light. Try turning the lights on and off, or covering the
photoresistor with your hand. What do you see?
After learning about the photoresistor as a resistor that changes its resistance depending on
the light in the room, one might think that connecting it to an LED (Circuit 1) would suffice to
create a night-light.
What do you think the issue is?
16
sd
16 hertz
www.16hertz.com
support@16hertz.com
POSSIBLE FIXES
We will be able to remedy the first problem of the inverted response to light intensity by the
photoresister by making it R1 in a voltage divider circuit. Recall that in a voltage divider
circuit, as the resistance of R1 decreases, the voltage that comes out increases. Therefore,
we can get the desired effect of the LED getting dimmer as the room is brighter and viceversa.
For the second problem, this can be remedied by changing the value of R2 in the voltage
divider circuit such that the right voltage is given out of Vout.
CIRCUIT 8: Night-Light #2
1
6
17
1
7
16 hertz
www.16hertz.com
education@16hertz.com
1
7
TO DO
R1 330 ohm | R2 1k ohm
SWITCH
CIRCUIT 9: Breaking the Circuit
18
sd
16 hertz
www.16hertz.com
support@16hertz.com
Switches are a key part of any circuit. They allow for control by enabling you to break a
circuit when you dont want any current flowing.
TRANSISTORS
Transistors are semiconductor devices. They are the sole
reason why most of the modern electronics devices that
we use today are possible. Their invention in 1947 lead
to the modern electronics revolution of microchips and
other semiconductor devices.
Transistors are essentially variable resistors. They vary their resistance
based on another electric signal applied to its base (one of the three leads).
In other words, a voltage or current applied t o the base affects the current that
flows through the other two pins (emitter and the collector) of the transistor.
Transistor 1 NPN
There are many kinds of transistors, but in your kit you will find NPN transistors
(in later kits we include PNP transistors as well). In an NPN transistor you
have to apply a positive voltage to the base to have current flowing from the
collector to the emitter. On a PNP transistor a negative voltage has to be
Transistor 2 PNP
1
8
19
1
9
16 hertz
www.16hertz.com
education@16hertz.com
applied to the base to have current flow through the other two leads.
1
9
Hold onto probe one with your left hand and probe 1 with your right, and see what happens
to the LED.
Our bodies have a tremendous amount of resistance. When dry, our bodies have over
100k of resistance. So, one would think the amount of current that can flow thorough our
bodies when connected to a 9V battery for would be too miniscule to do anything
significant, but using a transistor, we can have that tiny bit of current to control the amount
of current that flows through the collector and the emitter of the transistor.
The LED in this circuit is connected in an independent circuit (parallel) with the battery and
the emitter and collector of the transistor. The small current that flows through the second
independent (parallel) circuit which connects the battery with the base of the transistor and
our body, causes enough current to flow through the LED circuit which lights it up.
20
sd
16 hertz
www.16hertz.com
support@16hertz.com
This night light design builds on the previous two that we tried. It works out the kinks and
should work best of all three.
THERMISTOR
The thermistor is a variable resistor like the photoresistor and the
potentiometer, but unlike those two, it changes its resistance based
on the temperature around it. The thermistor in our kit has a
resistance range of about 10k ohm.
2
0
16 hertz
www.16hertz.com
education@16hertz.com
2
1
A circuit similar to Circuit 8 or Circuit 11 can be made with the thermistor replacing the
CIRCUIT 12: Hot Light
photoresistor. This circuit would essentially turn the light on and off based on the
temperature around the thermistor.
PIEZO BUZZER
The word piezo comes from the phenomenon of piezoelectricity, electricity generated from
the pressure inside of solid materials.
Piezo buzzers are set up so that when a voltage is applied to its leads it gives off a particular
tone. Varying voltages give off varying tones. Though you would be able to connect it with a
battery pack and various resistors to see all the different types of tones you can make, it is
most effective connecting it to a microcontroller like the Arduino UNO, or the 16Hz UNO (an
Arduino compatible microcontroller)
21
2
1
22
sd
16 hertz
www.16hertz.com
support@16hertz.com
To learn more about Arduinos and how to program them, please consult our Arduino
Starter Guide.
The above circuit will get allow us to program the Arduino UNO to send different PWM
(average voltage) signals to the buzzer. This will allow us to play any tone we want with the
click of a few buttons instead of switching around resistors every time we want a different
tone.
The following code will have the buzzer cycle through 10 tones. You can change
Arduino code:
2
2
16 hertz
www.16hertz.com
education@16hertz.com
2
3
DC (direct current) motors are the simplest of electric motors. Though there are various
DC MOTOR (3V)
kinds of DC motors (brushed, brushless, stepper, servo etc.) usually when a component is
simply referred to as a DC motor it tends to imply a brushed DC motor.
DC motors are simple two-lead, electrically controlled
devices that come with a rotary shaft on which wheels,
gears, propellers, etc., can be mounted. DC motors can
generate a considerable amount of revolutions per minute
(rpms) for their size and can be made to rotate clockwise
or counterclockwise by reversing the polarity applied to the
leads. At low speeds, dc motors provide little torque and
minimal position control, making them not ideal for
precision, position-control applications.
To really understand how motors work and how to use
them effectively, we need to explore the intimate
relationship electricity and magnetism share in nature.
For starters, theyre essentially one and the same thing.
What might appear to one observer as an electrical
interaction between charged particles will appear to
another observer in another inertial reference frame as a
magnetic one. In other words, changing magnetic fields
produce currents and currents produce magnetic fields.
In essence, motors have coils of wires surrounded by permanent magnets. When a current
is sent through the coils, a magnetic field is produced. This magnetic field interacts with the
magnetic field from the permanent magnets and causes the motor shaft to spin around. If
the current is flipped around, the polarity of the magnetic field induced is also flipped
around, causing the motor to spin the other way around.
23
2
3
24
sd
16 hertz
www.16hertz.com
support@16hertz.com
Each motor is build to spin at a certain rate (rpm) for a given voltage. If for the motor is
caused to spin slower than it is rated for, due to a load, for example, then, the slower it spins
the more current it draws. If there is a voltage supplied to the motor and the load on it is
such that the motor does not spin, then the motor is drawing a tremendous amount of
current as the resistance in the circuit is very little.
To remedy this, circuits with motors have whats called a motor driver and motors are either
geared up or down depending on the typical load on them to prevent this stall from
happening. Motor drivers are circuits that allow for both current limiting and allow us to
reverse the direction of rotation by reversing the current (this part of the motor driver is
called an H-Bridge).
The easiest way to fully control your motor is with a microcontroller like the Arduino or the
16Hertz Arduino compatible microcontroller and an H-Bridge. Microcontrollers allow us to
send different signals to a transistor, which in turn controls the amount of current sent to the
motor.
2
4
16 hertz
www.16hertz.com
education@16hertz.com
We can control the speed of the motor by changing the signal that goes into the base of
2the
transistor. Recall that transistors are like variable resistors that change the resistance in5the
circuit that passes through the collector and the emitter. The motor is connected in the
circuit that passes through the collector and emitter of the transistor. As the signal applied
to the base of the transistor is changed by the microcontroller (16Hertz Arduino UNO
compatible board), the transistor changed the amount of current that is supplied to the
motor.
Okay, so you might ask, why not control the motor directly with signals from the digital
PWM pin on the microcontroller, the same signals that are being sent to the transistor?
Well, there are a few reasons. Firstly, motors can very easily draw lots of current and
microcontrollers like Arduino UNO cant supply more than 200mA reliably. To be absolutely
safe and ensure reliability, we should really use a battery pack to power the motor instead of
drawing current from the Arduino. Secondly, we can supply a smooth varying signal to the
motor from the transistor that we cannot from the Arduino digital pins.
Arduino Code:
25
2
5
26
sd
16 hertz
www.16hertz.com
support@16hertz.com
H-Bridge
The H-Bridge is a circuit that can drive a DC motor in both directions. Recall that simply
flipping the direction of the current does the same to the direction of motor. You can try this
out yourself by connecting the motor to the battery pack and then trying it again with the
polarities reversed.
The H-Bridge circuit enables us to do this without having to manually switch the polarities of
the motor every time we want to change its direction.
The H-Bridge consists of four transistors, which essentially function like switches that
complete the circuit when applied in pairs. When one pair is chosen the current flows in one
direction and when the other is chosen the direction of the current is reversed.
NOTE: both connections should not be chosen at the same time, as this will cause a short
circuit by connecting the + & - terminals of the battery together without much resistance in
the circuit leading to a very high current draw.
You might ask, why not just use physical switches instead of transistors. Well, would you
want to sit there flipping switches in pairs every time you want your motor to move forward
or backwards. I think not.
2
6
27
2
7
16 hertz
www.16hertz.com
education@16hertz.com
2
7
support@16hertz.com
www.16Hertz.com
MUMN Corporation
(718) 487 9085
2
8