3.1 Basics of Hardware Design and Functions of Basic Passive Components
3.1 Basics of Hardware Design and Functions of Basic Passive Components
MODULE 3
SENSOR INTERFACING WITH ARDUINO
To learn how and when to use the different types of sensors and how to
connect them to the Arduino.
To learn how analog signals are converted back-and-forth and how this
must be considered as you program the device (Since the external world
uses continuous or analog signals and the hardware is digital).
To learn about the use of Arduino-specific shields and the shields software
libraries to interface with the real world.
Microcontroller (µC, MCU)
Computer on a single Integrated Chip
Processor (CPU)
Memory (RAM / ROM / Flash)
I/O ports (USB, I2C, SPI, ADC)
Used in:
Cell Phones, Toys, Household Appliances, Cars, Cameras, etc.
Embedded System
Embedded System
An embedded system is a combination of computer hardware and software,
either fixed in capability or programmable, designed for a specific function or
functions within a larger system.
Industrial machines, agricultural and process industry devices, automobiles,
medical equipment, household appliances, vending machines and toys, as well
as mobile devices, are possible locations for an embedded system.
Boot Loader
What's a boot loader?
Microcontrollers are usually programmed through a
programmer unless you have a piece of firmware in your
microcontroller that allows installing new firmware without
the need of an external programmer. This is called a boot
loader.
Why Was Arduino
Developed?
Physical Computing – using components that can interact with people and
with the world around us
The Arduino was originally developed for artists and designers to prototype
interactive displays at Italy by Massimo Banzi and David Cuartielles in
2005.
Developed for non-scientists
Minimalist programming
“Forgiving” circuitry that can handle a wide variety of wiring errors
What is Arduino Not?
Anyone can get the details of its design and modify it or make his
So, What is
Arduino?
It’s a movement, not a microcontroller
Founded by Massimo Banzi and David Cuartielles in 2005 based
on “Wiring Platform”, which dates to 2003
Open-source hardware platform
Open source development environment
Arduino Due : 84MHz Arduino Yún : 16MHz and 400MHz Arduino Leonardo : 16MHz
Types of Arduino
An easy USB interface. The chip on the board plugs straight into your USB port
and registers on your computer as a virtual serial port. This allows you to
interface with it as through it were a serial device. The benefit of this setup is that
serial communication is an extremely easy (and time-tested) protocol, and USB
makes connecting it to modern computers really convenient.
Very convenient power management and built-in voltage regulation. You can
connect an external power source of up to 12V and it will regulate it to both 5V
and 3.3V. It also can be powered directly off of a USB port without any external
power.
13 digital pins and 6 analog pins. These pins allow you to connect external
hardware to your Arduino. These pins are key for extending the computing
capability of the Arduino into the real world. Simply plug your devices and
sensors into the sockets that correspond to each of these pins and you are good to
go.
An ICSP connector for bypassing the USB port and interfacing the Arduino
directly as a serial device. This port is necessary to re-bootload your chip if it
corrupts and can no longer talk to your computer.
An on-board LED attached to digital pin 13 for fast an easy debugging of code.
And last, but not least, a button to reset the program on the chip.
Arduino Shields
Water = Charge
Pressure = Voltage (V)
Flow = Current (I)
Size of the Pipe = Resistance (R)
Circuit
An electronic circuit is composed of individual electronic
components, such as resistors, transistors, capacitors, inductors
and diodes, connected by conductive wires or traces through
which electric current can flow. To be referred to as electronic,
rather than electrical, generally at least one active component
must be present.
The word “circuit” is derived from the circle. An Electrical
Circuit must have a continuous loop from Power (Vcc) to
Ground (GND).
Electronic Components
Active Components
Those devices or components which
required external source to their
operation is called Active Components.
For Example: Diode, Transistors, SCR,
ICs, etc.
Passive Components
Those devices or components which do
not required external source to their
operation is called Passive Components.
For Example: Resistor, Capacitor,
Inductor, LDR, etc.
Resistor
A resistor is a passive two-terminal electrical component that
implements electrical resistance as a circuit element.
In electronic circuits, resistors are used to reduce current flow,
adjust signal levels, to divide voltages, bias active elements, and
terminate transmission lines, among other uses.
Breadboard
A breadboard is a solder-less device for
temporary prototype with electronics and test
circuit designs.
Because the solder-less breadboard does not
require soldering, it is reusable.
This makes it easy to use for creating
temporary prototypes and experimenting with
circuit design.
Analog & Digital Signals
What is analog ?
It is continuous range of
voltage values (not just 0 or
5V)
Analog has many (infinite)
values