![]() © Randy Faris/Corbis |
Electronic Basics |
Before you begin using microcontrollers, you'll need some basic electrical definitions:
| Electricity | The flow of electrical energy through some conductive material. more... |
| Electronics | The process of using changing electrical properties to convey information. Electronic sensors convert one form of energy (light, heat, sound pressure, etc.) into electrical energy so that we can interpret what's going on electronically. For example, a microphone changes sound pressure waves in the air to a changing electrical voltage. By amplifying and reading that electrical signal, we can interpret what the sound was that caused it. This process of changing one energy into another is called transduction, and devices that do it are called transducers. Much of the technical work of physical computing is about figuring out what form energy a person is putting out, and what kind of transducer you can buy or build to read that energy. |
In order to make circuits and build interactive pieces it's necessary to understand a few things about electricity. |
The basics
| Current | The measure of the magnitude of the flow of electrons in a circuit.
It is measured in coulombs per second, but this unit is more commonly referred to as amperes, or amps.
If you compare electrical current to the flow of water, current would be
how much water (or electricity) is flowing past a certain point.
The higher the amperage, the more water (or electricity) is flowing.![]() |
||||||
| Voltage | The measure of the electrical energy of a circuit. To get the current to flow from one point to another, a voltage must exists between the two points. It is measured in Volts. In the water analogy, voltage would be the water pressure. Think of a geyser as high voltage, and the shower of a low-rent apartment on the fifth floor of a tenement building as low voltage . | ||||||
| Resistance | The measure of a material's ability to oppose the flow of electricity. It is measured in Ohms. A sponge in the pipe would act as a resistor, limiting the current (and the voltage) flowing through the pipe. | ||||||
| A circuit | A closed loop containing a source of electrical energy
(like a battery) and a load (like a light bulb). Every circuit has to
have a load of some sort. Electrical energy flows from the positive side of the source through a conductor to the load and from the load to the negative side. The load resists the flow of energy, converting it from heat to light. All of the electrical energy in a circuit has to get used by the load. The load will convert the electrical energy to some other form of energy.
A circuit with no load is called a short circuit. In a short circuit, the power source feeds all of its power through the wires and back to itself, and either the wires melt (if you're lucky), or the battery blows up, or something else disastrous happens. SHORT CIRCUITS ARE VERY BAD.
|
||||||
| Schematic | Diagrams of circuits, with symbols representing the components in the circuit. Many of the typical symbols are shown below. |
![]()
Electrical Components
| Conductors | Materials through which electrical current moves freely. | ||
| Insulators | Materials which prevent the flow of electricity. | ||
| Resistors | These provide resistance to the flow of electric current.
The larger the resistor, the more opposition to current it provides.
In doing this the resistor reduces the voltage of the electrons passing through it,
and that energy is let off as heat. So an overloaded resistor gets hot, and can even melt
(this is smelly) or burn (even smellier). Use them to control the flow of current.
Current can move either way through a resistor, so it doesn't matter which way they're
connected in a circuit. They are symbolized like this:
|
||
| Capacitors | Store up electricity while current is flowing into them, then release the energy when the incoming current is removed.
When the charging voltage is removed after the capacitor is charged,
the capacitor can push the electrons back through into circuit.
This results in smoothing out peaks and valleys in a varying voltage.
The larger the capacitor, the more energy it can store.
Sometimes capacitors are polarized, meaning current can only flow through them in a specific direction,
and sometimes they are not. If a capacitor is polarized, it will be marked as such on the diagram.
Don't wire a polarized capacitor backwards; it might explode.
Capacitors are symbolized like this:
|
||
| Diodes | Permit the flow of electricity in one direction, and block it in the other direction.
Because of this, they can only be placed in a circuit in one direction. They are symbolized like this:
|
||
| Light-Emitting Diode (LED) | A special type of diode which emits light when current flows through it.
|
||
| switches | Control the flow of current through a
junction in a circuit. These make contact between two wires or break contact
between two wires. The spring loaded switches are classified as normally open (NO)
or normally closed (NC). NO switches have the connection open,
or broken, unless the switch is pushed.
NC switches have the connection closed unless the switch is pushed. This is the symbol for switches:
:
|
||
| transistors and relays | Switching devices. Transistors can be switches or amplifiers. We'll be using them as switches, which can be turned on and off
electronically. Large amounts of current are controlled by very small currents.
Normally a transistor provides very high resistance between the collector and the emitter;
it allows no current through. However, once there is a small current through the base to the emitter,
the resistance between the collector and emitter plummets, allowing current to flow. There are two types of trasistors NPN ad PNP. These two types of transistors do the same thing but using inverse signals to do so. The NPN turns on when the base has a high signal(+) applied to it. The PNP turns on when the base has a low (-) signal applied to it. Symbolized like this:
|
||
| Potentiometers | Potentiometers (pots) provide a variable resistance; twisting the shaft changes the resistance to allow more or less current through. This should control the brightness of the light bulb,or the volume of the buzzer. | ||
| thermistors | Change resistance in reaction to varying temperature. | ||
| photoresistors | Change resistance in reaction to varying light. | ||
| flex sensors | Change resistance in reaction to being bent or flexed. | ||
| piezoelectric devices | Create a varying voltage in reaction to slight changes in pressure. |











