1st Semester Q1 Robotics (Notes)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

LESSON 1 journey by using its LED for debugging and as your

first blink sketch.


Gearing Up for Prototyping with Arduino
• TX and RX LEDs – these are indicator LEDs which
blink whenever the UNO board is transmitting or
ARDUINO receiving data.
• an open-source electronics platform based on easy- o TX – for transmit
to-use hardware and software. o RX – for receiver
• C++ programming language • Power LED – indicates if your Arduino is receiving
• has different kinds of microcontroller development power.
boards: • Microcontroller – the brain / heart of your Arduino. It
o Arduino Uno - entry-level is the most prominent black rectangular chip with 28
o Portenta H7 – capable of high-level pins. This allows you to directly upload a new
programming and AI. Arduino program into the device.
• Difference of Arduino and Raspberry Pi: • Analog Input Pins – the pins that can read the signal
o Raspberry Pi – a general-purpose single- from an analog sensor. It can be used for
board computer by an operating system commands such as analogRead().
(Linux). • GND and 5V – the pins that can provide 5 volts and
o Unlike Arduino boards, Raspberry pi can ground to your circuits.
run multiple programs. It is used to run • Power Port – used to power your Arduino when it is
complicated robots performing multiple not plugged into a USB port for power. It can accept
programs and intense calculations. voltages between 7-12 volts.
• Arduino was created at the Ivrea Interaction Design • Voltage Regulator – maintains the voltage of a
Institute, designed as an easy tool for fast power source within acceptable limits. It converts
prototyping, intended students without any the input to 5V, the signal powers up the Arduino
background in electronics and programming. Uno board.
• Arduino evolved from the 8-bit boards to products • Crystal Oscillator – used to provide clock the
for wearable technology, IoT applications, microcontroller. It ticks 16 million times a second.
embedded environments, and 3D printing. o In a microcontroller, every instruction is
executed in synchronization with clock.
MICROCONTROLLER • USB Interface Chip – converts signals in the USB
level to a level that an Arduino UNO board
• Microcontroller - a small computation engine that understands.
makes a decision or system monitoring. It has • USB Port – a printer USB port used to load a
analog and digital input/output capabilities. program from the Arduino IDE onto the Arduino
• It is used in different devices such as toys, remote board. The board can also be powered through this
control, microwave ovens, thermostats, and timers. port.
• It makes objects more interactive. • Reset Button – when clicked, it sends a logical pulse
• Microcontrollers are often used in applications that to the reset pin of the microcontroller, and will run
have repetitive tasks. the program again from the start.

ARDUINO UNO ANATOMY COMPONENTS THAT CAN BE INTEGRATED WITH


ARDUINO
• Breadboard – a board which can be used to build
electronic circuits. It is like a patch panel that have
rows of holes that let you connect wires and
components together.

• Digital Pins – can be used as either input or output


pins.
o When used as output pins, these pins act
as a power supply source for the
components connected to them.
o When used as input pins, they read signals
from the component connected to them.
• Jumper Wires – typically used with breadboards and
o These pins can be used for commands
other prototyping tools to make it easy to change a
such as digitalWrite(), digitalRead(), and
circuit as needed.
analogWrite() which can be used and will
o Male-to-Male Jumper: both ends of a wire
work only on the pins with PWM symbols.
has a pointy end.
• Pin 13 LED - the only actuator built-in to your board.
This pin is usually used to start your prototyping
o Male-to-Female Jumper: one end is pointy o It also has an anode and cathode. The
and another has a hole (to connect another anode is the longer leg that connects to
jumper wire). power. And the cathode is the shorter leg.
o Female-to-Female Jumper: both ends have • RGB LED – an LED that has four pins: (red, green,
holes blue and a leg for either anode or cathode). It
• Capacitors - a passive electrical component with two contains 3 different color-emitting diodes that can be
terminals used to store and release electrical energy blended to produce a wide range of colors.
in a circuit. • Vibration Motor – small coreless DC motors that
o Cathode (-)-the negative leg of the vibrate to notify users that they have received a
capacitor. signal without making a sound (similar to notifs in
o Anode (+)- the positive leg of the capacitor. phones).
o When the circuit's voltage is higher than • LCD – a type of alphanumeric or graphic display
what is stored in the capacitor, it allows based on liquid crystals. In Arduino, the LCD has 2
current to flow in, giving the capacitor a rows with 16 characters each.
charge. • Piezo – an electrical component that can be used to
o When the voltage of the circuit is lower, the detect vibrations and create noises.
stored charge is released.
• Diode - ensures that the power only flows in one
direction. It is polarized and is usually used when
there are motors or other high current/voltage load
LESSON 2
in the circuit. Fundamentals of Prototyping
o polarized – the directional placement of a
component determines the direction of the
current. INTRODUCTION
o when placed one way, it will allow current • Energy – the capacity to do work. It can be in the
to pass through and placed the other way, form of thermal, radiant, chemical, potential, kinetic,
it blocks it. etc.
o the anode side is usually connected to the • Electrical Energy – a form of energy derived from
point of higher energy in the circuit. electric potential energy or kinetic energy
o the cathode side connects to the point of • Electricity – the flow of electrical power or charge. It
lower energy or to the ground. is the movement of electrons.
• Usually, there's an equal number of electrons and
INPUT COMPONENTS protons--making the atom neutral or having no net
• Input components are components that help enter charge.
data and commands into a system. • When an outside force upsets the balance between
• Gas Sensor – used to sense natural gas protons and electrons, the atom can lose or gain
concentrations in the air (between 200-10,000 ppm) electrons.
• IR Receiver Sensor (TSOP) – an electronic device o losing electrons will make the atom
used to detect and measure Infrared radiation in its positively charged
surrounding environment. o gaining electrons will make the atom
• Optocoupler – allows you to connect two circuits negatively charged
that are not powered by the same source.
o A small LED inside illuminates a CONDUCTORS AND INSULATORS
photoreceptor, which closes an internal • Insulators - don't easily pass on electrons, have low
switch when illuminated. electron mobility, and this does not conduct
• PIR Sensor (or Passive Infra-Red Sensor) – also electricity.
called as pyroelectric sensor. This sensor generates o rubber
energy when exposed to heat. o glass
o Because humans and animals emit heat o oil
energy through infrared, the sensor will o diamond
detect movement when it comes within o dry wood
range of the sensor. o plastic
• Photoresistor – also called as photocell or light- o paper
sensitive resistor. This is a variable resistor whose o cardboard box
resistance varies depending on the amount of light o ceramic
falling on its face. o wool
o fabric
OUTPUT COMPONENTS • Conductors - have high electron mobility and can
conduct electricity.
• Output components are components that display or
o any metal
show text, graphics, tactile (touch), audio, or video.
o silver
• DC Motors – converts electrical energy into o copper
mechanical energy when there is electricity applied o gold
to its connectors. o steel
• H-bridge – a circuit that lets you control the direction o water
of the voltage applied to a load. When used in a o aluminum
motor, it can change the direction of the rotation. o graphite
• LED – a type of diode that lightens when electricity o nail
passes through it. The electricity in LEDs only flows o keys
in one direction.
ELECTRICAL CIRCUIT
• Resistance – the restriction of the flow of electrons.
• Electrical Circuit – a path that connects two points
This is measured in Ohms (Ω). This occurs when an
from the negative terminal to the positive terminal of
electron collides with an atom.
a power source in a circuit where the charge flows.
o Conductors – offers very little resistance
o Closed Circuit – electrons are able to flow
o Insulators – materials that have high
o Open Circuit – electrons are unable to flow
resistance
• Voltage – the energy that causes current by pushing
• Higher resistance = lower current flow
electrons in a circuit in the same direction. It is
• Lower resistance = higher current flow
measured in volts (V).
o Potential Difference – the energy difference
in volts between two points in a circuit. This OHM’S LAW
measures the amount of work that can be • Ohm’s Law (Ω) – a formula used to quantify the
done in a circuit. relationship between voltage, current, and
o Coulomb (C) – the SI unit for electric resistance.
charge o named after Georg Simon Ohm – a
o 1 Volts = 1 Joule / 1 Coulomb German physicist who studied the
• an electrical circuit can be series or parallel. relationship between voltage (V), current
o Series Circuit – a circuit that contains only (I), and resistance (R). He is credited for
one path for current to flow. formulating Ohm’s Law.
o Parallel Circuit – a circuit where all
components are connected between the
same set of electrically common points. It
contains 2 or more path for current to flow.
▪ Voltage is equal across all
components in the circuit.

ELECTRICAL CURRENT
• Electrical Current – the total amount of charge
passing through a wire over a period of time.
o Current – the flow of electrons in a circuit.
• Ampere - the base unit of electric current which tells
how many electrons flow past a single point every
second.
• Watt (W) - a unit of power in electrical and
mechanical terms. It is named after James Watt, the
inventor of Steam Engine.
o 1W = 1 joule per second (mechanical)
o 1W = 1 volt-ampere per second (electrical)
• Formula for calculating Watts:

• Types of Current:
o Alternating Current (AC) – varies on a
regular basis. It is used in power plants that
generates electricity to homes.
o Direct Current – provides a constant
voltage which flows in one direction. It is
used in batteries.

You might also like