You are on page 1of 8

CDA 4630 Intro to Embedded Systems

HW Interface, Page 1 of 8

Dr. Bassem Alhalabi, EE512

August 20, 2014

Microcontroller

Other Logic

10K
Pull up
Id
Output Low

10K
Pull down

Strong LED Drive (20 mA)

R = (V-VOL - .7) /Id


Id
Output High

Weak LED Drive (2 mA)

R = (VOH - .7) /Id

220

Output Low

I-Load

2N2907, 500 mA
2N4918, 3000 mA

Output High

220
I-Load

2N2222, 500 mA
2N4921, 1000 mA

Output High
220

Darlington Stage
for high-current loads

CDA 4630 Intro to Embedded Systems

HW Interface, Page 2 of 8

Dr. Bassem Alhalabi, EE512

August 20, 2014

Microcontroller
V
Temporary Switches
For 2 button menu

10K

Digital Inputs

Select

Menu

V
220 Ohm
Digital Input

Touch Switch
Connect any metal
object to the base

MPSA63,
PNP Darlington
Gain 10K, @ 100 mA

DC input with
voltage divider

AC input
converted
to DC

Digital Input

Zener Diode
to limit the voltage

Capacitor
to smooth the signal

CDA 4630 Intro to Embedded Systems

HW Interface, Page 3 of 8

Dr. Bassem Alhalabi, EE512

August 20, 2014

Microcontroller
4-7 Decoder
1
2
4
8

100

a
b
c
d
e
f
g

2 7-segment CC Digits
Digit Multiplexing
Use active low
outputs to
sequentially turn
digits on. If current
is an issue, use
2N2222.

a
b
c
d
e
f
g
.
D1

220

D0
2N2222, 500 mA
2N4921, 1000 mA

9 10 11 12
13 14 15 16

CDA 4630 Intro to Embedded Systems

HW Interface, Page 4 of 8

Dr. Bassem Alhalabi, EE512

August 20, 2014

Microcontroller

Output High

Mechanical Relay
Coil
ratings
should
match the transistor

220

2N2222, 500 mA
2N4921, 1000 mA

AC line, hot (Black)


4N36
Optoisolator
Output High

Light,
300 W, 110VAC

220
T1
G
T2

TRIAC,
NTE5629
400V, 4A

AC line, return (White)

AC line, return (White)

AC line, hot (Black)


AC Load,
24-280VA 2A

+ in 2 1

100

Solid State Relay

~ out ~
4
3

Output High

KYOTTO
KB20C02A

CDA 4630 Intro to Embedded Systems

HW Interface, Page 5 of 8

Dr. Bassem Alhalabi, EE512

August 20, 2014

Microcontroller
FAN8082
Bridge driver
18V, 1600mA max

PWM
1A
Digital
Outputs

1
2
3
4
5
6

2A

7
8

12E
1A

Vcc1 16
4A 15

4Y 14
1Y
GND GND 13
GND GND 12
3Y 11
2Y
3A 10
2A
Vcc2 34E 9

DC Motor
+
1A 2A
00 Brake
10 FW
11 Brake
01 RV

FAN8082
Bridge driver
18V, 1600mA max

DC Motor
+

1
2

PWM

3
4

Digital Outputs

GND Vo2
Vo1 PVcc
Vctl SVcc
Vin1 Vin2

7
6
5

Vin1 Vin2
00 Brake
10 FW
01 RV
11 Brake

CDA 4630 Intro to Embedded Systems

HW Interface, Page 6 of 8

Dr. Bassem Alhalabi, EE512

August 20, 2014

Microcontroller
V

Analog Input

Photo Cell
Light K
Dark M

4.7 K

4.7 K
Analog Input

LM34
Temperature
Sensor
Vs = 6-30 V.
Vout = linear
10 mV per F.

CDA 4630 Intro to Embedded Systems

HW Interface, Page 7 of 8

Dr. Bassem Alhalabi, EE512

August 20, 2014

Microcontroller
ADC0831
8-bit ADC
Serial Converter
CS active low

1
2
3
4

8-Bit Serial out


To the MP

Vcc
CS*
Vin(+) CLK
Vin(-) D0
GND Vref

8
7

0-5V
Analog Signal
to be measured

6
5

Clock to ADC

LM358
Dual OpAmp
Vcc

GND

Analog Output
Analog Input

Voltage Follower
Voltage follower circuit is used to drive a
load at the same voltage level but with
stronger current driving capability.

CDA 4630 Intro to Embedded Systems


Dr. Bassem Alhalabi, EE512

Helpful websites:
http://www.jameco.com
http://www.digikey.com/
http://www.mouser.com/

http://www.parallax.com/
http://www.acroname.com/
http://www.sparkfun.com/commerce/categories.php
http://store03.prostores.com/servlet/electronicgoldmine/StoreFront

http://www.educypedia.be/electronics/electronicaopening.htm

HW Interface, Page 8 of 8
August 20, 2014