Guideline For The First Lesson With Smars Kevin Thomas
Guideline For The First Lesson With Smars Kevin Thomas
WITH SMARS
Kevin Thomas
Basics of robotics
ROBOTICS LESSON
WITH SMARS
Student course concept
Summary
Overview:.................................................................................................................................................... 3
History of robotics ................................................................................................................................... 3
Origins of "robot" and "robotics" ................................................................................................... 3
Definitions of "robot" .......................................................................................................................... 4
Early Conceptions of Robots ............................................................................................................ 4
The first modern robots ..................................................................................................................... 4
Basics of electronics .............................................................................................................................. 6
Voltage, Current and Resistance .................................................................................................... 6
Resistor................................................................................................................................................... 7
Diode ....................................................................................................................................................... 7
Transistor ............................................................................................................................................. 10
Robot components ................................................................................................................................ 12
Microcontroller ................................................................................................................................... 12
Motor Driver ........................................................................................................................................ 13
Battery .................................................................................................................................................. 13
Sensors ................................................................................................................................................. 15
Motors ................................................................................................................................................... 17
Connectivity ........................................................................................................................................ 18
Meet SMARS ............................................................................................................................................ 19
Safety Rules ............................................................................................................................................. 19
Notes .......................................................................................................................................................... 21
Overview:
History of robotics
"Robotics is that field concerned with the intelligent connection of perception to action."
Mike Brady
Source: https://cs.stanford.edu/people/eroberts/courses/soco/projects/1998-99/robotics/history.html
Basics of electronics
Voltage, Current and Resistance
In a circuit, current is the flow of electrons. Voltage is the
electrical potential difference between two points.
Resistance is something that resists the flow of electrons.If
this sounds Greek to you, don’t worry. Think about it this
way: If you have water running in a pipe, the amount of
water running is the equivalent of the current in an
electrical circuit.Then imagine that the pipe is clogged at
some point. And only a little bit of water gets through. The
water pressure on one side of the clog will be higher than
on the other side. This difference in pressure between the two points is the equivalent to voltage.
You always measure voltage as a voltage difference between two points.
Source https://www.build-electronic-circuits.com/electronics-for-beginners/
Resistor
A resistor is nothing magic. Take a long wire and measure the resistance, and you will realize that
resistance is just a normal property of wires (except for superconductors).
Some resistors are made up of just that. A long wire.
But you can also find resistors made of other types of materials. Like this carbon film resistor:
Diode
a diode is an electronic component that conducts current in one direction and blocks current from
flowing in the other direction.
The diode symbol looks like this:
How To Connect A Diode
In the circuit above the diode is connected in the right direction. This means current can flow
through it so that the LED will light up.
But what happens if we connect it the other way around?
In this second circuit the diode is connected the wrong way. This means that no current will flow in
the circuit and the LED will be turned OFF.
What Is a Diode Used For?
Diodes are very often used in power supplies. From the power outlet in your wall you get
alternating current (AC). A lot of the devices we use need direct current (DC). To get DC from AC
we need a rectifier circuit. It’s a circuit that converts from alternating current (AC) to direct current
(DC). Diodes are the main components in rectifier circuits.
How a Diode Works
The diode is created from a PN junction. You get a PN junction by taking negative doped and
positive doped semiconductor material and putting it together.
At the intersection of these two materials a “depletion region” appears. This depletion region acts
as an insulator and refuses to let any current pass.
When you apply a positive voltage from the positive side to the negative side, the “depletion layer”
between the two materials disappears and the current can flow from the positive to the negative
side.
When you apply a voltage in the other direction, from the negative to the positive side, the
depletion region expands and resists any current flowing.
Things To Note About Diodes
You have to apply enough voltage in the “right” direction – from positive to negative – for the diode
to start conducting. Usually this voltage is around 0.7V.
The diode have limits and cannot conduct unlimited amounts of current.
Diodes are not perfect components. If you apply voltage in the wrong direction, there will be a little
bit of current flowing. This current is called “leakage current”.
If you apply a high enough voltage in the “wrong” direction, the diode will break down and let
current pass in this direction too.
Types of Diodes
There are many different types of diodes. The most common ones are signal diodes, rectifier
diodes, zener diodes and Light-Emitting Diodes (LED). Signal and rectifier diodes are pretty much
the same thing except that rectifier diodes are built to handle more power.
Zener diodes are diodes that make use of the breakdown voltage when applying voltage the
“wrong” way. They act as very stable voltage references.
Source: https://www.build-electronic-circuits.com/what-is-a-diode/
Transistor
The transistor is like an electronic switch. It can turn a current on and off. A simple way you can
think of it is to look at the transistor as a relay without any moving parts. A transistor is similar to a
relay in the sense that you can use it to turn something ON and OFF.
Check out the video explanation I made on the transistor:
There are different types of transistors. A very common one is the “bipolar junction transistor” or
“BJT”. And it usually looks like this:
It has three pins: Base (b), collector (c) and emitter (e). And it comes in two versions: NPN and
PNP. The schematic symbol for the NPN looks like this:
you will turn the transistor ON and allow a current to flow from collector to emitter.
Source: https://www.build-electronic-circuits.com/how-transistors-work/
Robot components
Microcontroller
A microcontroller (abbreviated MCU or µC) is a computer system on a chip that does a job. It
contains an integrated processor, memory (a small amount of RAM, program memory, or both),
and programmable input/output peripherals, which are used to interact with things connected to the
chip. A microcontroller is different than
a microprocessor which only contains
a CPU (the kind used in a Personal
Computer ).
Other terms for a microcontroller are embedded system and embedded controller, because the
microcontroller and its support circuits are often built into, or embedded in, a single chip.
In addition to the usual arithmetic and logic elements of a general microprocessor, the
microcontroller also has additional elements such as RAM for data storage, read-only memory for
program storage, flash memory for permanent data storage, and other devices (peripherals).[5]
Microcontrollers often operate at very low speed compared to microprocessors (at clock speeds of
as little as 32 kHz), but this is useful for typical applications. They also consume very little power
(milliwatts or even micro watts).
Microcontrollers are used in automatic products and devices, such as car engine systems, remote
controls, machines, appliances, power tools, and toys. These are called embedded systems.
Microcontrollers can also be found at work in solar power and energy harvesting, anti-lock braking
systems in cars, and have many uses in the medical field as well.
Source: https://simple.wikipedia.org/wiki/Microcontroller
Motor Driver
Battery
A battery is a self-contained, chemical power pack that can produce a limited amount of
electrical energy wherever it's needed. Unlike normal electricity, which flows to your home through
wires that start off in a power plant, a battery slowly converts chemicals packed inside it into
electrical energy, typically released over a period of days, weeks, months, or even years.
The basic idea of portable power is nothing new; people have always had ways of making energy
on the move. Even prehistoric humans knew how to burn wood to make fire, which is another way
of producing energy (heat) from chemicals (burning releases energy using a chemical reaction
called combustion).
By the time of the Industrial Revolution (in the 18th and 19th centuries), we'd mastered the art of
burning lumps of coal to make power, so fueling things like steam locomotives. But it can take an
hour to gather enough wood to cook a meal, and a locomotive's boiler typically takes several hours
to get hot enough to make steam. Batteries, by contrast, give us instant, portable energy; turn the
key in your electric car and it leaps to life in seconds!
The basic power unit inside a battery is called a cell, and it consists of three main bits. There are
two electrodes (electrical terminals) and a chemical called an electrolyte in between them. For
our convenience and safety, these things are usually packed inside a metal or plastic outer case.
There are two more handy electrical terminals, marked with a plus (positive) and minus
(negative), on the outside connected to the electrodes that are inside. The difference between a
battery and a cell is simply that a battery consists of two or more cells hooked up so their power
adds together.
When you connect a battery's two electrodes into a circuit (for example, when you put one in a
flashlight), the electrolyte starts buzzing with activity. Slowly, the chemicals inside it are converted
into other substances. Ions (atoms with too few or too many electrons) are formed from the
materials in the electrodes and take part in chemical reactions with the electrolyte. At the same
time, electrons march from one terminal to the other through the outer circuit, powering whatever
the battery is connected to. This process continues until the electrolyte is completely transformed.
At that point, the ions stop moving through the electrolyte, the electrons stop flowing through the
circuit, and the battery is flat.
Source: http://www.explainthatstuff.com/batteries.html
Sensors
a sensor is an electronic component, module, or subsystem whose purpose is to detect events or
changes in its environment and send the information to other electronics, frequently a computer
processor. A sensor is always used with other electronics, whether as simple as a light or as
complex as a computer.
Sensors are used in everyday objects such as touch-sensitive elevator buttons (tactile sensor) and
lamps which dim or brighten by touching the base, besides innumerable applications of which most
people are never aware. With advances in micromachinery and easy-to-
use microcontroller platforms, the uses of sensors have expanded beyond the traditional fields of
temperature, pressure or flow measurement,[1] for example into MARG sensors. Moreover, analog
sensors such as potentiometers and force-sensing resistors are still widely used. Applications
include manufacturing and machinery, airplanes and aerospace, cars, medicine, robotics and
many other aspects of our day-to-day life.
A sensor's sensitivity indicates how much the sensor's output changes when the input quantity
being measured changes. For instance, if the mercury in a thermometer moves 1 cm when the
temperature changes by 1 °C, the sensitivity is 1 cm/°C (it is basically the slope Dy/Dx assuming a
linear characteristic). Some sensors can also affect what they measure; for instance, a room
temperature thermometer inserted into a hot cup of liquid cools the liquid while the liquid heats the
thermometer. Sensors are usually designed to have a small effect on what is measured; making
the sensor smaller often improves this and may introduce other advantages. Technological
progress allows more and more sensors to be manufactured on a microscopic scale as
microsensors using MEMS technology. In most cases, a microsensor reaches a significantly higher
speed and sensitivity compared with macroscopic approaches.
A good sensor obeys the following rules:
• it is sensitive to the measured property
• it is insensitive to any other property likely to be encountered in its application, and
• it does not influence the measured property.
Most sensors have a linear transfer function. The sensitivity is then defined as the ratio between the
output signal and measured property. For example, if a sensor measures temperature and has a
voltage output, the sensitivity is a constant with the units [V/K]. The sensitivity is the slope of the
transfer function. Converting the sensor's electrical output (for example V) to the measured units
(for example K) requires dividing the electrical output by the slope (or multiplying by its
reciprocal). In addition, an offset is frequently added or subtracted. For example, -40 must be added
to the output if 0 V output corresponds to -40 C input.
For an analog sensor signal to be processed, or used in digital equipment, it needs to be converted to
a digital signal, using an analog-to-digital converter.
Source: https://en.wikipedia.org/wiki/Sensor
Motors
A robot can communicate in a variety of ways. basically we can divide these communications into
wired and wireless. Among cabling, there are buses (I2C, SMBUS, etc.), all managed by
communication protocols such as Ethernet.
In our family of wireless connections, we find WiFi, cellular networks, Bluetooth, RFID and various
other types of radio connection (each with different frequencies and modulation).
Meet SMARS
Safety Rules
1. Do not connect together the negative and positive pole of the battery
2. Do not reverse the polarity (flip - & +)
3. Connect the battery only where indicated by the instructions.
4. Don’t play with tools
Questionnaire
1) The Current is:
a) The flow of electrons in a conductor and its unit is Volt
b) The difference of potential between two points of a conductor
c) The flow of electrons in a conductor and its unit is Ampère
d) The flow of electrons in a conductor and its unit is Ohm.
4) A diode is:
a) A component that stores current
b) A component that lets current flow in a single direction and could glow
c) Simply a light bulb
d) It’s like a resistor
5) 9V is
a) a current
b) a tension
c) a capacity
d) a resistance
6) A microcontroller is
a) The same as a CPU
b) The brain of the robot
c) A part of the RAM
d) A part of the CPU
Notes