Embeddeddd
Embeddeddd
2ther -la)ors:
:S<&
01=:/1rogrammable >ogic
DS1
>ess usermodi-iable
Hire Hra#
1er-board
Hire Hra#
Household Etching
1er-board D. 1&B
Buttons and Switches
S1ST
Single1ole Single
Throw
S1DT
Single1ole" Double
Throw
Hardware (ethods
9& &ircuit
>atch
(onostable
multi)ibrator
Timer
State machine
&ommon -actor:
9eAuire additional
#arts.
So-tware (ethods
0i3ed Delay
Timer/&om#arator
Debouncing on the :rduino
int val;
int val2;
int buttontate;
void loop()!
val " digital#ead(s$it%&Pin);
dela'(());
val2 " digital#ead(s$it%&Pin);
i* (val "" val2) !
//+%t on Input &ere
E3am#le -rom >ady:da.net :rduino Tutorial
Alternative technique example at:
http://www.arduino.cc/en/Tutorial/Debounce
&ommunication
(ain &hoices:
Bundles o- Discrete
>ogic Signals
2ne Hot/Encoded
symbols
S#eed issue:
9S'@'
0rom $!5'
$Hire
2#tion con)entions
(Data/1arity/Sto#)
0low &ontrol
;# to $$' De)ices
Single Ended
&lock Stretching
:ny sla)e de)ice can hold the clock until it is ready to res#ond
:rduino
Serial.begin(!500)N in setu#
Serial.#rintln()N to write
9ange
9esolution
9ate
Signaltonoise
>inearity
Thermometercoded D:&
DE9S e3#ensi)e
&arrier 0reAuency
'
N
4 $ com#arators -or N bits o-
resolution
E3tremely -ast
E3tremely e3#ensi)e
Hard to manu-acture
SubGect to noise
:nalog9ead()
Builtin :9E0
analog9e-erence(ty#e)
:nalogHrite()
1H(
?!0H8 carrier
: -inal :ssignment
Tem#erature Sensor
9eading Datasheets
Eind o- an art