CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware...
Transcript of CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware...
![Page 1: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/1.jpg)
CS247L
January 21
Intro to Arduino
![Page 2: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/2.jpg)
![Page 3: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/3.jpg)
What is Arduino
Arduino – Is an open source hardware
platform for easily programming
microcontrollers aimed at artist, hobbyists,
and makers.
![Page 4: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/4.jpg)
What is a Microcontroller
A microcontroller is a small, inexpensive computer,
usually used for sensing input from the real world and
controlling devices based on that input.
Most electronic devices you use today have a
microcontroller in them of some form or another.
Microcontrollers are easy to use with simple sensors
and output devices, and they can communicate with
desktop computers fairly simply as well.
![Page 5: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/5.jpg)
Motivating Examples
![Page 6: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/6.jpg)
![Page 7: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/7.jpg)
![Page 8: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/8.jpg)
![Page 9: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/9.jpg)
![Page 10: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/10.jpg)
!"#$%&'()"*+,'- .'-/-$"+-
Electricity as Water Analogy
V = IR
![Page 11: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/11.jpg)
What’s In Your Kit?01234553+"$"#%67368/9/7,":5;+<*/=">/$?
![Page 12: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/12.jpg)
1234553+"$"#%67368/9/7,":5@+'%<6"%+</=&
![Page 13: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/13.jpg)
![Page 14: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/14.jpg)
Getting Started0123455%+<*/="7,,5'=5A*/<'5B":'C%&'?
![Page 15: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/15.jpg)
![Page 16: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/16.jpg)
![Page 17: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/17.jpg)
![Page 18: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/18.jpg)
!D"=E$(F"+&'$(G1/-("
![Page 19: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/19.jpg)
![Page 20: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/20.jpg)
![Page 21: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/21.jpg)
![Page 22: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/22.jpg)
![Page 23: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/23.jpg)
![Page 24: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/24.jpg)
H%
I-/=&(%(@*2"=
![Page 25: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/25.jpg)
H%
I-/=&(%(@*2"=
![Page 26: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/26.jpg)
H%
H%9/=&()":'$1/=&(@#/=9
![Page 27: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/27.jpg)
H%
H%9/=&()":'$1/=&(@#/=9
![Page 28: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/28.jpg)
123455%+<*/="7,,5'=5*3#"%<-5G*$"+/%#5@*2"=7J3&
I-/=&(%(@*2"=
![Page 29: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/29.jpg)
H%
I-/=&(%(@*2"=
![Page 30: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/30.jpg)
I-/=&(%(C"$'=K":'$'+
![Page 31: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/31.jpg)
I-/=&(%(C"$'=K":'$'+
![Page 32: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/32.jpg)
![Page 33: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/33.jpg)
Useful Links•;+<*/="(L(1234558887%+<*/="7,,
!"#$%&#'()*+#,(-$%.$*/(�".1%2"#3($4$".&%5'3(.*0*.*#6*3(7%'&6%558(*9*.8$:&#,(8"4
#**/($"(;#"<(%7"4$($:*(=./4&#"(>5%?".1@(().*%$(>5%6*($"('$%.$A
•C+"$"#%6(L(1234553+"$"#%67368/9/7,":
).*%$(.*'"4.6*(0".(>."$"$8>&#,($4$".&%5'@((-**($:*('*62"#3(B-$%#0"./(C."$"$8>&#,
D4$".&%5'E((0".(4'*045(�".1%2"#@
•(G":(M&"'E-(C1N-/,%#(O":3*K=&()/$'P(1234558887K&"'7='$53,":35/=<'Q7-1$:#
=(,.*%$(.*'"4.6*(0".(5*%.#&#,(%7"4$(>:8'&6%5(6"1>4$*.@((-6."55(/"<#($"(BD">&6'E@
F'*045('*62"#'(ʎ/*(BG%'&6(H5*6$.&6%5E3(BI&6."6"#$."55*.'E3(BJ#>4$(K(L4$>4$E3(%#/
BI"$".'(K(I*6:%#&6'E@
•(OO.H;(;##(;6"*$()'=-"+-(P(123455,:P8/9/7-$%=R"+<7'<*58/9/5)'=-"+-
M&;&(>%,*($:%$(>."9&/*'(6&.64&$(/&%,.%1'(/*$%&5&#,(:"<($"(:"";(4>(1%#8(/&N*.*#$
$8>*'("0('*#'".'(0."1(0".6*('*#'&#,(.*'&'$".'($"(/&'$%#6*('*#'".'3($"(>"$*#2"1*$*.'3
*$6
•(MGC()'=-"+(G*$"+/%#-(P(123455/$37=N*7'<*531N-,":35-'=-"+-5.'3"+$-5.'3"+$-
=(1".*(/*$%&5*/(>%,*("#(*9*.8(>"''&75*('*#'".(8"4(6"45/(&1%,&#*@(()"(:*.*(&0(8"4
%.*(5"";&#,(0".(1".*("4$5%#/&':('*#'".'@
•(STD(O%#,*#%$"+(P(123455#'<7#/='%+U7"+&5U#'<78/V
).*%$(>%,*(0".(6%5645%2#,($:*(.*'&'$%#6*(.*O4&.*/($"(5&,:$(%#(PHQ@((R"4(#**/($"
;#"<($:*(0".<%./(9"5$%,*(ST0U("0(8"4.(PHQ@
![Page 34: CS247L January 21 Intro to Arduino - Stanford HCI Group · Arduino – Is an open source hardware platform for easily programming microcontrollers aimed at artist, hobbyists, and](https://reader034.fdocuments.in/reader034/viewer/2022043018/5f3aad4b481aec1cb1139e6d/html5/thumbnails/34.jpg)
Where to Buy Stuff•)3%+9F*=(L(1234558887-3%+9R*=7,":
;(&+'%$(-/$'($%/#"+'<($"8%+<-('#',$+"=/,(1"66N/-$-(0#/9'(*-W?7((T%-N($"(-'%+,17((H"-$("R
$1'(/$':-($1'N(,%++N(%+'('%-N($"(*-'7((G1'N(1%X'(%(#"$("R($*$"+/%#-("=($1'/+(-/$'(%-
8'##7
•Y%:',"(L(1234558887J%:',"7,":
;(-#/&1$#N(#'--(*-'+(R+/'=<#N('#',$+"=/,-(-$"+'7((G1'(&""<(='8-(/-($1'N(%+'(#",%$'<(/=
)%=(O%+#"-(+/&1$("=(UZU7((@*$(6'8%+'[(/$(/-(="$(%(\-$"+'](81'+'(N"*(,%=(6+"8-'7((^"*
:*-$(_&*+'("*$($1'(/$':(=*:6'+-(R+":($1'/+("=#/='(,%$%#"&(%=<(_##("*$(%("+<'+7
^"*+(6'-$("3K"=(/-($"(J*-$("+<'+("=#/='(/R(N"*(,%=(8%/$("=($1'(-1/33/=&7
•D/&/9'N(L(1234558887</&/9'N7,":
D/&/9'N(,%++/'-(:"+'(-$*`($1%=(Y%:',"7((G1'NE+'(-1/33/=&(-3''<-(%+'(3+'2N(&""<[
%=<($1'NE+'(3+/,'-(%+'(X'+N(+'%-"=%6#'7((^"*(,%=("=#N("+<'+(R+":($1':("=#/='7
•(.%</")1%,9(L(1234558887+%</"-1%,97,":
;(&+'%$(3#%,'($"(&"(/R(N"*(=''<(-":'$1/=&(a*/,97((G1'N(,%++N(:%=N(6%-/,('#',$+"=/,
,":3"='=$-[(R+":(6*2"=-($"(-8/$,1'-($"(6%2'+N(3%,9-[(+'-/-$"+-[(,%3%,/$"+-[('$,7
TQ3',$($"(3%N(%(1/&1'+(3+/,'(R"+($1'(,"=X'=/'=,'7