sat, cours d'intro, art & mircocontrolleur
DESCRIPTION
Présentation qui accompagne le cours d'introduction à la Société des arts technologiques à Montréal. Focus sur Arduino mais aussi sur les circuits de bases et les composantes utiles au prototypage rapide.TRANSCRIPT
![Page 1: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/1.jpg)
Eléctronique et ArtSociété des Arts TechnologiquesMontréal, Mars 2010
cours préparé par mouna andraoswww.missmoun.com
1
![Page 2: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/2.jpg)
1. Introduction: Interactivité et microcontrolleurs
2
![Page 3: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/3.jpg)
Scénariser et créer des interactions entre:Humains & OrdinateursOrdinateurs & OrdinateursHumains et Humains
3
![Page 4: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/4.jpg)
4
![Page 5: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/5.jpg)
2. Point de départ: premier circuit
5
![Page 6: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/6.jpg)
Un circuit est un cercle fermé contenant au moins une source et au moins une charge électrique.
6
![Page 7: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/7.jpg)
7
![Page 8: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/8.jpg)
8
![Page 10: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/10.jpg)
le trio revisité: interrupteur, lumière, batterie(introduction aux composantes de base et à leur shéma représentatif)
10
![Page 11: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/11.jpg)
performance de LoVid
11
![Page 12: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/12.jpg)
Leah Buechley
12
![Page 13: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/13.jpg)
Kate Hartman
13
![Page 14: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/14.jpg)
Graffiti research lab
14
![Page 15: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/15.jpg)
15
![Page 16: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/16.jpg)
attention polarité!
16
![Page 17: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/17.jpg)
interrupteurs?17
![Page 18: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/18.jpg)
18
![Page 19: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/19.jpg)
+ 5v et Terre = batterie
version 1, sur la plaquette
19
![Page 20: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/20.jpg)
alimenter la plaquette de prototypage avec 5 V20
![Page 21: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/21.jpg)
allumer une LED, resistance = 220 Ohm21
![Page 22: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/22.jpg)
Le trio: Led, Source electrique, interrupteur22
![Page 23: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/23.jpg)
3. Notions d’électricité (la section un peu ennuyante)
23
![Page 24: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/24.jpg)
Electricité = flot d’énergie électrique dans un matériaux conducteur
Electronique = la lecture de changements électriques pour transmettre de l’information
24
![Page 25: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/25.jpg)
Voltage = La différence d’électricité potentielle entre deux points d’un circuit (la pression électrique).
25
![Page 26: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/26.jpg)
!
+
V
26
![Page 27: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/27.jpg)
Courant = La quantité d’électricité à un point donné d’un circuit (intensité du courant)
27
![Page 28: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/28.jpg)
!
+
A
28
![Page 29: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/29.jpg)
Chaque sourcepeut fournir un voltageet un courant donné.
29
![Page 30: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/30.jpg)
Resistance = opposition matérielle (physique) au passage de l’éléctricité
30
![Page 31: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/31.jpg)
R
31
![Page 32: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/32.jpg)
Voltage en Volts (V)Courant en Ampères (I)Resistance en Ohms (Ω)
relation?
32
![Page 33: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/33.jpg)
Lois d’OHM
V = I x RV = A x Ω
33
![Page 34: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/34.jpg)
!
+2.5V 30mA
5V 300mA
?
34
![Page 35: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/35.jpg)
!
+2.5V 30mA
5V 300mA
?
35
![Page 36: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/36.jpg)
en série, le courant reste constant, les voltages s’additionnent.
36
![Page 37: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/37.jpg)
!
+ +2.5V 30mA 2.5V 30mA
5V
37
![Page 38: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/38.jpg)
en parralèle, le courant s’additionne, les voltages restent les mêmes.
38
![Page 39: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/39.jpg)
!
+
5V
2.5V 30mA
2.5V 30mA+
?
39
![Page 40: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/40.jpg)
4. Rajouter le calcul(brain/computation)
40
![Page 41: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/41.jpg)
41
![Page 42: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/42.jpg)
entrées/sorties digitales
Signal de communication
LED #13
42
![Page 43: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/43.jpg)
controller la diode
43
![Page 44: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/44.jpg)
44
![Page 45: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/45.jpg)
45
![Page 46: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/46.jpg)
faire allumer une après l’autre (sirène)
46
![Page 47: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/47.jpg)
47
![Page 48: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/48.jpg)
48
![Page 49: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/49.jpg)
Serial.begin(9600)
Serial.print(“hello”)
Serial.println(variable);
pour avoir du feedback etc.
49
![Page 50: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/50.jpg)
5. Digital vs. analogue
50
![Page 51: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/51.jpg)
entrée digitaleinterrupteurdigitalRead()
Sortie digitaleLEDdigitalWrite()
on/offhigh/low1/0
51
![Page 52: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/52.jpg)
entrée digitaleinterrupteurdigitalRead()
Sortie digitaleLEDdigitalWrite()
entrée analogueanalogRead()
Sortie analogueanalogWrite()
52
![Page 53: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/53.jpg)
5V
0V
5V
0V
53
![Page 54: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/54.jpg)
54
![Page 55: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/55.jpg)
55
![Page 56: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/56.jpg)
56
![Page 57: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/57.jpg)
Librairie Arduino : Communication SérielleSerial.Print();
57
![Page 58: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/58.jpg)
ex 1: 1 LED + 1 Potentiomètre: controller la vitesse de clignotement de la LED
58
![Page 59: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/59.jpg)
ex 2: 1 LED + 1 Potentiomètre: controller l’intensité de la LED avec le potentiometre
59
![Page 60: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/60.jpg)
60
![Page 61: SAT, cours d'intro, art & mircocontrolleur](https://reader034.vdocuments.mx/reader034/viewer/2022052507/5590d6da1a28ab1a5d8b45b1/html5/thumbnails/61.jpg)
61