1-Basics Electronics Three
1-Basics Electronics Three
design
Contents
Basics electronics
What is the circuit…?
Basics electronics component.
Hardware technical
info . Embedded Fab kit .
Objective
www.embeddedFab.com 5
Hardware design
Home security, door control
www.embeddedFab.com 6
Hardware design
Home security, motion detector
www.embeddedFab.com 7
Hardware design
Home security, call alarm
www.embeddedFab.com 8
Hardware design
Temperature control
www.embeddedFab.com 9
Hardware design
Light control
www.embeddedFab.com 10
Hardware design
Internet connection, Cloud
www.embeddedFab.com 11
Hardware design
PC communication
www.embeddedFab.com 12
Hardware design “black box system”
Power supply
www.embeddedFab.com 14
Hardware design
Think about the design (component)
– Inputs, output
• Number of pins.
• How much current can a microcontroller pin sink/source.
• What is the voltage required to drive the modules.
• How we can interface the modules with MCU (right wiring).
Hardware design
Think about the design (component)
– Inputs, output
• Number of pins.
• How much current can a microcontroller pin sink/source.
• What is the voltage required to drive the modules.
• How we can interface the modules with MCU (right wiring).
Hardware design
Number of PIN’s
– Inputs, number of pins
• Analog input (sensors)
– Temperature sensor
– Light sensor
– Smoke sensor
• Digital input
– Keypad
Hardware design
Number of PIN’s
– Output, number of pins
• Analog output
– None
• Digital output
– LED indication
– Seven segment display
– LCD display
– Lamp
– Solenoid (door control)
– Buzzer
– Air condition
Hardware design
Number of PIN’s
– Serial communication (I/O), number of pins
• UART (PC communication, WiFi module)
• SPI (firmware upgrade)
Hardware design
Now we can choose the required MCU
Hardware design
Think about the design (component)
– Inputs, output
• Number of pins.
• What is the power(voltage and current) required to drive
the modules.
• How much current can a microcontroller pin sink/source.
• How we can interface the modules with MCU (right wiring).
Hardware design
Think about the design (component)
– Inputs, output
• How much current can a microcontroller pin sink/source.
www.embeddedFab.com 37
What is the circuit …?
Power supply Connection load
Power supply
AC source
DC
source
Connection
s
Copper
wires
Load
Resistive load
What is the circuit …?
• Circuit is This circular path, which is always required to
get
• electricity to flow and do something useful.
• The reason we want to build circuits is to make
electricity do useful things for us.
What is the circuit …?
• There are two types of circuit :
• Short circuit
•when we connect a wire directly from the positive
to the negative side of a power supply this will
damage circuit
• Open circuit
• this is a circuit where the loop isn’t fully connected
and no current pass to the load causing nothing to
do .
What is the circuit …?
The Difference Between Neutral and Earth
Ground
The Difference Between Neutral and Earth
Ground
Earth Leakage Relay working principle
Basics electronics component ……?
• All electrical components can be two main categories as
• active and passive devices. divided into
• The categorization is based on components’ capability to produce
• energy to the circuit.
• If any component delivers the power to the circuit, it belongs to
the
• active components.
• If the component utilizes energy, it is called a passive components
.
Basics electronics component ……?
Active components:
produce energy in the form of Voltage or Current
Active Components: Energy Donor
For Exemple: Diodes Transistors SCR etc…
Passive
components:
components
which store or
maintain Energy in
the form of
Voltage or
Current.
Passive
Basics electronics component ……?
Active components:
Diode ,Transistors , TRIAC, SCR , IC( integrated
circuit )
Passive component :
Resistors, capacitor, inductive, transducers
Electromechanical component :
Piezoelectric devices, crystals, resonators
relays, switches
Basics electronics component ……?
There are questions you need to answer to
understand this component :
What is the shape …..?
How it work ….?
How it read ….?
How it measured …..?
Basics electronics component ……?
Active components:
Diode
General diode .
Conduct electricity easily in one direction .
LED ( light emitting diode ) .
diode that emits light when current passes through it.
Zener diode .
Passes current in reverse direction to provide a
constant voltage reference
Photo diode .
Passes current in proportion to incident light
Basics electronics component ……?
Basics electronics component ……?
Each device has number with specific
features.
Example.
Assume that
LED current is 10mA
LED biasing is 2volt
Design R
R = V/I
R = (Vcc-Vd)/Iled
R = (5-2)/(10*10-3)
R = 300 Ω
Example for zener diode.
Voltage regulation by break down voltage
Basics electronics component ……?
Transistors: NPN or PNP
A transistor is a three-terminal device in which a voltage applied to
one of the terminals (called the base) can control current that flows
across the other two terminals (called the collector and the
emitter).
Bipolar junction transistor ( BJT )
is a type of transistor that relies on the contact of two
types of semiconductor for its operation
Photo transistor
Amplified photo detector
Darlington transistor
is a compound structure consisting of two bipolar
transistors connected in such a way that the current amplified by
the first transistor is amplified further by the second one
Example.
2n2222
Support current 800mA
Max voltage 60V
Vbe = 0.7V
Transition frequency 100 MHz
β = 100
Example.
Question that
Load current is …
Load Voltage drop is …
Design R(ohm &
power)
Example.
Assume that
Relay current is max
Relay voltage is max
Design R
variable capacitor –
adjustable capacitance
Tuning capacitor –
variable capacitor
for tuning a radio,
oscillator.
Trim capacitor– small variable capacitor is usually for
slight internal adjustments made with a small screw
Basics electronics component ……?
Basics electronics component ……?
Basics electronics component ……?
Example.
Electrolytic capacitor
Applications ”Voltage Doubler ”
Electrolytic capacitor
Applications ”Voltage filtration”
Ceramic capacitor
Applications ”Resonator”
Ceramic capacitor
Applications ” De-coupling solution”
Transformers
Step up transformer
Step down
transformer
Basics electronics component ……?
Example.
Calculate transient time
Assume R = ∞
= 0
Example.
- Free Wheeling Diode used to eliminate
flyback (EMF)
- When coil discharging it will discharge in
the power supply also.(add ripple in the dc
supply)
Example.
• To suppress the ripple coming form relay,
• We have two solution
We add Ceramic capacitors near to
microcontroller
Relay isolation using Optocoupler
Example.
• Optocoupler