En-tete ASCII arduino : Différence entre versions
Ligne 8 : | Ligne 8 : | ||
// Code Arduino/Wemos/ESP32 // | // Code Arduino/Wemos/ESP32 // | ||
// Les petits débrouillards // | // Les petits débrouillards // | ||
− | // | + | // Mis à jour le 27 juil. 2024 // |
//////////////////////////////////// | //////////////////////////////////// | ||
/* | /* | ||
− | Caractère utiles pour fabriquer des trucs | + | ==Caractère utiles pour fabriquer des trucs== |
‾ | ‾ | ||
□ | □ | ||
Ligne 24 : | Ligne 24 : | ||
-W- | -W- | ||
-/\/\/\/-- | -/\/\/\/-- | ||
+ | ==Micro-controlleurs== | ||
+ | |||
+ | Arduino | ||
+ | +-----+ | ||
+ | +----[PWR]-------------------| USB |--+ | ||
+ | | +-----+ | | ||
+ | | GND/RST2 [ ][ ] | | ||
+ | | MOSI2/SCK2 [ ][ ] A5/SCL[ ] | | ||
+ | | 5V/MISO2 [ ][ ] A4/SDA[ ] | | ||
+ | | AREF[ ] | | ||
+ | | GND[ ] | | ||
+ | | [ ]N/C SCK/13[ ] | | ||
+ | | [ ]IOREF MISO/12[ ] | | ||
+ | | [ ]RST MOSI/11[ ]~| | ||
+ | | [ ]3V3 +---+ 10[ ]~| | ||
+ | | [ ]5v -| A |- 9[ ]~| | ||
+ | | [ ]GND -| R |- 8[ ] | | ||
+ | | [ ]GND -| D |- | | ||
+ | | [ ]Vin -| U |- 7[ ] | | ||
+ | | -| I |- 6[ ]~| | ||
+ | | [ ]A0 -| N |- 5[ ]~| | ||
+ | | [ ]A1 -| O |- 4[ ] | | ||
+ | | [ ]A2 +---+ INT1/3[ ]~| | ||
+ | | [ ]A3 INT0/2[ ] | | ||
+ | | [ ]A4/SDA RST SCK MISO TX>1[ ] | | ||
+ | | [ ]A5/SCL [ ] [ ] [ ] RX<0[ ] | | ||
+ | | [ ] [ ] [ ] | | ||
+ | | UNO_R3 GND MOSI 5V ____________/ | ||
+ | \_______________________/ | ||
+ | |||
+ | Arduino Pro-micro (Peut émuler un clavier comme Léonardo). | ||
+ | _________________ | ||
+ | | Pro micro | | ||
+ | | ATmega32U4 | | ||
+ | |[ ]10-A10 A9-9[ ]| | ||
+ | |[ ]16-MOSI A8-8[ ]| | ||
+ | |[ ]14-MISO 7[ ]| | ||
+ | |[ ]15-SCLK A7-6[ ]| | ||
+ | |[ ]18-A0 5[ ]| | ||
+ | |[ ]19-A1 A6-4[ ]| | ||
+ | |[ ]20-A2 SCL-3[ ]| | ||
+ | |[ ]21-A3 SDA-2[ ]| | ||
+ | |[ ]VCC GND[ ]| | ||
+ | |[ ]RST GND[ ]| | ||
+ | |[ ]GND RX-1[ ]| | ||
+ | |[ ]RAW TX-0[ ]| | ||
+ | | +---+ | | ||
+ | |_______|USB|______| | ||
+ | |||
+ | Arduino NANO | ||
+ | +-----+ | ||
+ | +----------| USB |----------+ | ||
+ | | +-----+ | | ||
+ | | [ ]D13/SCK MISO/D12[ ] | | ||
+ | | [ ]3.3V MOSI/D11[ ]~| | ||
+ | | [ ]V.ref _ SS/D10[ ]~| | ||
+ | | [ ]A0 / N \ D9[ ]~| | ||
+ | | [ ]A1 / A \ D8[ ] | | ||
+ | | [ ]A2 \ N / D7[ ] | | ||
+ | | [ ]A3 \ 0 / D6[ ]~| | ||
+ | | [ ]A4/SDA D5[ ]~| | ||
+ | | [ ]A5/SCL D4[ ] | | ||
+ | | [ ]A6 INT1/D3[ ]~| | ||
+ | | [ ]A7 INT0/D2[ ] | | ||
+ | | [ ]5V GND[ ] | | ||
+ | | [ ]RST RST[ ] | | ||
+ | | [ ]GND 5V MOSI GND TX1[ ] | | ||
+ | | [ ]Vin [ ] [ ] [ ] RX1[ ] | | ||
+ | | [ ] [ ] [ ] | | ||
+ | | MISO SCK RST | | ||
+ | | NANO-V3 | | ||
+ | +---------------------------+ | ||
ESP32 à 36 broches | ESP32 à 36 broches | ||
Ligne 128 : | Ligne 200 : | ||
| 3V3 | 5V | | | 3V3 | 5V | | ||
|-------|-------| | |-------|-------| | ||
− | + | </syntaxhighlight> | |
+ | ==capteurs== | ||
+ | <syntaxhighlight> | ||
Capteur Capacitif TTP223 | Capteur Capacitif TTP223 | ||
dos | dos | ||
Ligne 196 : | Ligne 270 : | ||
|()____________| | |()____________| | ||
− | + | ||
− | + | Capteur de distance à Ultrasons - HC-SR04 | |
− | + | _________________________ | |
− | + | | ___ (__) ___ | | |
− | + | | // \\ HC-SR04 // \\ | | |
− | + | ||( )| |( )|| | |
− | + | | \\___// \\___// | | |
− | + | | VCC TRIG ECHO GND | | |
− | + | |------[ ][ ][ ][ ]-------| | |
− | + | ||
− | + | ||
+ | Lecteur RFID_RC522 | ||
+ | _____________________________________ | ||
+ | | () | | ||
+ | | ()R _-_ | | ||
+ | | F / _-_ \ 3V3[ ]| | ||
+ | | I / / _ \ \ RST[ ]| | ||
+ | | D / / \ \ _ GND[ ]| | ||
+ | | - o |_| IRQ[ ]| | ||
+ | | R \ \ _ / / MISO[ ]| | ||
+ | | C \ \_ _ _/ / MOSI[ ]| | ||
+ | | 5 \ _ _ / SCK[ ]| | ||
+ | | 2 - SDA[ ]| | ||
+ | | ()2 ___ | | ||
+ | |____________________________()_|___|_| | ||
+ | |||
+ | Capteur de CO2 Senseair S8 | ||
+ | ________________________ | ||
+ | | |° ° ° ° ° °| | | | ||
+ | G+ |[ ]| ° ° ° ° °/ |[ ]| DVCC_out | ||
+ | G0 |[ ]|° ° ° ° °/ |[ ]| UART_RxD | ||
+ | Alarm_OC |[ ]|_°_°_°_°| |[ ]| UART_TxD | ||
+ | PWM 1Khz |[ ]| |[ ]| UART_R/T | ||
+ | | | SenseAir® S8 |[ ]| bCAL_in/CAL | ||
+ | |___|________________|___| | ||
− | + | Gyroscope et accéléromètre GY-521 - MPU6050 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | _________________ | |
− | + | | MPU6050 ()| | |
− | + | |[ ]VCC | | |
− | + | |[ ]GND G | | |
− | + | |[ ]SCL ___ Y | | |
− | + | |[ ]SDA | | | | | |
− | + | |[ ]XCA |___| 5 | | |
− | + | |[ ]XCL 2 | | |
− | + | |[ ]ADO Y 1 | | |
− | + | |[ ]INT ->X | | | |
− | + | |_______________()| | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Capteur de couleur GY-31 | |
− | + | ___________________________ | |
− | + | | () [ ][ ][ ][ ][ ] () | | |
− | + | | INT LED S0 S1 VCC | | |
− | + | | GY-31 | | |
− | + | | _ - _ | | |
− | + | | ( ) / \ ( ) | | |
− | + | | / _ \ | | |
− | + | | ( |_| ) | | |
− | + | | \ / | | |
− | + | | ( ) \_ _ _/ ( ) | | |
+ | | | | ||
+ | | GND OUT S2 S3 VCC | | ||
+ | | () [ ][ ][ ][ ][ ] () | | ||
+ | --------------------------- | ||
+ | Capteur capacitif MPR121 | ||
+ | _________________ | ||
+ | | L 11[ ]| | ||
+ | | E 10[ ]| | ||
+ | | D 9[ ]| | ||
+ | 3,3V-|[X]3,3V / 8[ ]| | ||
+ | |[ ]IRQ e 7[ ]| | ||
+ | A5-|[X]SCL l 6[ ]| | ||
+ | A4-|[X]SDA e 5[ ]| | ||
+ | |[ ]ADD c 4[ ]| | ||
+ | GND-|[X]GND t 3[ ]| | ||
+ | | r 2[ ]| | ||
+ | | o 1[ ]| | ||
+ | | MPR121 d 0[ ]| | ||
+ | |_________e_______| | ||
Encodeur rotatif | Encodeur rotatif | ||
Ligne 333 : | Ligne 394 : | ||
|______________________________| | |______________________________| | ||
− | + | </syntaxhighlight> | |
− | + | ==Actionneurs== | |
− | + | <syntaxhighlight> | |
− | + | Ecran OLED | |
− | + | GND 5V D5 D6 | |
− | + | ______|_|_|_|______ | |
− | + | |() * * * * ()| | |
− | + | | GND VCC SCL SDA | | |
− | + | | _______________ | | |
− | + | | | | | | |
− | + | | | | | | |
− | + | | | | | | |
− | + | | |_______________| | | |
− | + | |()_______________()| | |
− | |||
− | |||
Servomoteur | Servomoteur | ||
Ligne 428 : | Ligne 487 : | ||
| O O O O O O O O | | | O O O O O O O O | | ||
----------------- | ----------------- | ||
− | + | Lecteur MP3 | |
− | + | +-------\_/--------+ | |
− | + | +5V |[X] MP3-TF-16P [ ]| | |
− | + | resistance 1K - RX |[X] DFPlayer [ ]| | |
− | + | TX |[X] __________ [ ]| | |
− | + | |[ ]| |[ ]| | |
− | + | |[ ]| CARTE |[ ]| | |
− | + | Haut-Parleur |[X]| SD |[ ]| | |
− | + | GND |[X]| |[ ]| | |
− | + | Haut-Parleur |[X]| |[ ]| | |
− | + | |___|__________|___| | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |[ ] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Haut-Parleur | Haut-Parleur | ||
Ligne 515 : | Ligne 518 : | ||
|/ | |/ | ||
− | MAX98357A | + | Ampli son : MAX98357A |
− | |||
______________________ | ______________________ | ||
|() |o o| ()| | |() |o o| ()| | ||
Ligne 528 : | Ligne 530 : | ||
|__BCLK__GAIN____GND___| | |__BCLK__GAIN____GND___| | ||
− | + | Ruban de LED WS2812B - néopixel | |
+ | _________________________ ____________ | ||
+ | GND ->|= __ = __ = / / __ = |-> GND | ||
+ | Din ->|= |__| '' = |__| '' = \ \ |__| '' = |-> Dout | ||
+ | +5V ->|=__________=__________=_/ /________ =__|-> +5V | ||
Matériel : | Matériel : | ||
Ligne 549 : | Ligne 555 : | ||
Les petits Débrouillards - CC-By-Sa http://creativecommons.org/licenses/by-nc-sa/3.0/ | Les petits Débrouillards - CC-By-Sa http://creativecommons.org/licenses/by-nc-sa/3.0/ | ||
*/ | */ | ||
+ | |||
</syntaxhighlight> | </syntaxhighlight> |
Version du 27 juillet 2024 à 08:05
Dans les programmes arduino il est parfois utile d'avoir le schéma de brochage
Voici de quoi intégrer au code des schéma.
1 ////////////////////////////////////
2 // En-tête Type //
3 // Code Arduino/Wemos/ESP32 //
4 // Les petits débrouillards //
5 // Mis à jour le 27 juil. 2024 //
6 ////////////////////////////////////
7 /*
8 ==Caractère utiles pour fabriquer des trucs==
9 ‾
10 □
11 ○
12 Ω
13 */
14 /*
15 photorésistance
16 -(w)-
17
18 résistance
19 -W-
20 -/\/\/\/--
21 ==Micro-controlleurs==
22
23 Arduino
24 +-----+
25 +----[PWR]-------------------| USB |--+
26 | +-----+ |
27 | GND/RST2 [ ][ ] |
28 | MOSI2/SCK2 [ ][ ] A5/SCL[ ] |
29 | 5V/MISO2 [ ][ ] A4/SDA[ ] |
30 | AREF[ ] |
31 | GND[ ] |
32 | [ ]N/C SCK/13[ ] |
33 | [ ]IOREF MISO/12[ ] |
34 | [ ]RST MOSI/11[ ]~|
35 | [ ]3V3 +---+ 10[ ]~|
36 | [ ]5v -| A |- 9[ ]~|
37 | [ ]GND -| R |- 8[ ] |
38 | [ ]GND -| D |- |
39 | [ ]Vin -| U |- 7[ ] |
40 | -| I |- 6[ ]~|
41 | [ ]A0 -| N |- 5[ ]~|
42 | [ ]A1 -| O |- 4[ ] |
43 | [ ]A2 +---+ INT1/3[ ]~|
44 | [ ]A3 INT0/2[ ] |
45 | [ ]A4/SDA RST SCK MISO TX>1[ ] |
46 | [ ]A5/SCL [ ] [ ] [ ] RX<0[ ] |
47 | [ ] [ ] [ ] |
48 | UNO_R3 GND MOSI 5V ____________/
49 \_______________________/
50
51 Arduino Pro-micro (Peut émuler un clavier comme Léonardo).
52 _________________
53 | Pro micro |
54 | ATmega32U4 |
55 |[ ]10-A10 A9-9[ ]|
56 |[ ]16-MOSI A8-8[ ]|
57 |[ ]14-MISO 7[ ]|
58 |[ ]15-SCLK A7-6[ ]|
59 |[ ]18-A0 5[ ]|
60 |[ ]19-A1 A6-4[ ]|
61 |[ ]20-A2 SCL-3[ ]|
62 |[ ]21-A3 SDA-2[ ]|
63 |[ ]VCC GND[ ]|
64 |[ ]RST GND[ ]|
65 |[ ]GND RX-1[ ]|
66 |[ ]RAW TX-0[ ]|
67 | +---+ |
68 |_______|USB|______|
69
70 Arduino NANO
71 +-----+
72 +----------| USB |----------+
73 | +-----+ |
74 | [ ]D13/SCK MISO/D12[ ] |
75 | [ ]3.3V MOSI/D11[ ]~|
76 | [ ]V.ref _ SS/D10[ ]~|
77 | [ ]A0 / N \ D9[ ]~|
78 | [ ]A1 / A \ D8[ ] |
79 | [ ]A2 \ N / D7[ ] |
80 | [ ]A3 \ 0 / D6[ ]~|
81 | [ ]A4/SDA D5[ ]~|
82 | [ ]A5/SCL D4[ ] |
83 | [ ]A6 INT1/D3[ ]~|
84 | [ ]A7 INT0/D2[ ] |
85 | [ ]5V GND[ ] |
86 | [ ]RST RST[ ] |
87 | [ ]GND 5V MOSI GND TX1[ ] |
88 | [ ]Vin [ ] [ ] [ ] RX1[ ] |
89 | [ ] [ ] [ ] |
90 | MISO SCK RST |
91 | NANO-V3 |
92 +---------------------------+
93
94 ESP32 à 36 broches
95 _______________________
96 |() ESP32-devKitV1 ()|
97 | WIFI-BLUETOOTH |
98 | 36 broches |
99 |[ ]EN 23-D23[ ]|-SPI MOSI
100 input only-|[ ]VP-36 22-D22[ ]|-I2C SCL
101 input only-|[ ]VN-39 1-TXo[ ]|
102 input only-|[ ]D34-34 3-RXo[ ]|
103 input only-|[ ]D35-35 21-D21[ ]|-I2C SDA
104 Touch9-|[ ]D32-32 19-D19[ ]|-SPI MISO
105 Touch8-|[ ]D33-33 18-D18[ ]|-SPI CLK
106 DAC1-|[ ]D25-25 5-D5[ ]|-SPI CS0
107 DAC2-|[ ]D26-26 17-TX2[ ]|
108 Touch7-|[ ]D27-27 16-RX2[ ]|
109 Touch6-|[ ]D14-14 4-D4[ ]|-Touch0
110 Touch5-|[ ]D12-12 2-D2[ ]|-Touch2-LED_BUILTIN
111 Touch4-|[ ]D13-13 15-D15[ ]|-Touch3
112 -|[ ]D9-9 0-D0[ ]|-Touch1
113 -|[ ]D10-10 8-D8[ ]|-
114 -|[ ]D11-11 7-D7[ ]|-
115 |[ ]GND 6-D6[ ]|
116 |[ ]VIN 3V3[ ]| /!\ uniquement sortie
117 | EN Boot |
118 |() [o] +---+ [o] ()|
119 |_________|USB|_________|
120
121 ESP32 à 30 broches
122 _______________________
123 |() ESP32-devKit V1 ()|
124 | WIFI-BLUETOOTH |
125 | 30 broches |
126 |[ ]EN 23-D23[ ]|-SPI MOSI
127 input only-|[ ]VP-36 22-D22[ ]|-I2C SCL
128 input only-|[ ]VN-39 1-TXo[ ]|
129 input only-|[ ]D34-34 3-RXo[ ]|
130 input only-|[ ]D35-35 21-D21[ ]|-I2C SDA
131 Touch9-|[ ]D32-32 19-D19[ ]|-SPI MISO
132 Touch8-|[ ]D33-33 18-D18[ ]|-SPI CLK
133 DAC1-|[ ]D25-25 5-D5[ ]|-SPI CS0
134 DAC2-|[ ]D26-26 17-TX2[ ]|
135 Touch7-|[ ]D27-27 16-RX2[ ]|
136 Touch6-|[ ]D14-14 4-D4[ ]|-Touch0
137 Touch5-|[ ]D12-12 2-D2[ ]|-Touch2-LED_BUILTIN
138 Touch4-|[ ]D13-13 15-D15[ ]|-Touch3
139 |[ ]GND GND[ ]|
140 |[ ]VIN 3V3[ ]| /!\ uniquement sortie
141 | EN Boot |
142 |() [o] +---+ [o] ()|
143 |_________|USB|_________|
144
145 Le même
146 _______________________
147 |() ESP32-devKitV1 ()|
148 | WIFI-BLUETOOTH |
149 | 30 broches |
150 |[ ]EN 23-D23[ ]|-SPI MOSI
151 input only-|[ ]VP-36 22-D22[ ]|-I2C SCL
152 input only-|[ ]VN-39 1-TXo[ ]|
153 input only-|[ ]D34-34 3-RXo[ ]|
154 input only-|[ ]D35-35 21-D21[ ]|-I2C SDA
155 Touch9-|[ ]D32-32 19-D19[ ]|-SPI MISO
156 Touch8-|[ ]D33-33 18-D18[ ]|-SPI CLK
157 DAC1-|[ ]D25-25 5-D5[ ]|-SPI CS0
158 DAC2-|[ ]D26-26 17-TX2[ ]|
159 Touch7-|[ ]D27-27 16-RX2[ ]|
160 Touch6-|[ ]D14-14 4-D4[ ]|-Touch0
161 Touch5-|[ ]D12-12 2-D2[ ]|-Touch2-LED_BUILTIN
162 Touch4-|[ ]D13-13 15-D15[ ]|-Touch3
163 |[ ]GND GND[ ]|
164 |[ ]VIN 3V3[ ]| /!\ uniquement sortie
165 | EN Boot |
166 |() [o] +---+ [o] ()|
167 |_________|USB|_________|
168
169
170 Lolin (Wemos) D1 mini
171
172 _________________
173 / D1 mini \
174 |[ ]RST TX[ ]|
175 |[ ]A0 -GPIO RX[ ]|
176 |[ ]D0-16 5-D1[ ]| SCL
177 |[ ]D5-14 4-D2[ ]| SDA
178 |[ ]D6-12 0-D3[ ]|
179 |[ ]D7-13 2-D4[ ]| LED_BUILTIN
180 |[ ]D8-15 GND[ ]|
181 |[ ]3V3 . 5V[ ]|
182 | +---+ |
183 |_______|USB|_______|
184
185 _______________
186 | droit | gauche|
187 |-------|-------|
188 | RST | TX |
189 | A0 | RX |
190 | D0 16 | D1 5 |
191 | D5 14 | D2 4 |
192 | D6 12 | D3 0 |
193 | D7 13 | D4 2 |
194 | D8 15 | GND |
195 | 3V3 | 5V |
196 |-------|-------|
capteurs
Capteur Capacitif TTP223
dos
+------------+
|[ ]GND |
|[ ]I/O □ |
|[ ]VCC |
|____________|
face
+-------------+
|[ ]VCC /‾‾‾‾\|
|[ ]I/O| |
|[ ]GND \____/|
|_____________|
Bouton poussoir
|___|
| |
| ( ) |
|_____|
| |
Bouton d'arcade
______
/________\
|------|
|------|
|------|
|______|
| |
Gros bouton d'arcade lumineux
_________________
/ \
/ () \
/_______________________\
|------|
|------|
|------|
|------|- LED+
|______|- LED-
| |
Capteur de temérature DHT22
___
/_____\
|_|_|_|_|
|_DHT22_|
|_|_|_|_|
|_|_|_|_|
|_|_|_|_|
| | | |
Capteur de pression Température BME280
______________
|() BME280 |
| VCC [ ]|
| _ GND [ ]|
| |_| SCL [ ]|
| SDA [ ]|
| CSB [ ]|
| SDO [ ]|
|()____________|
Capteur de distance à Ultrasons - HC-SR04
_________________________
| ___ (__) ___ |
| // \\ HC-SR04 // \\ |
||( )| |( )||
| \\___// \\___// |
| VCC TRIG ECHO GND |
|------[ ][ ][ ][ ]-------|
Lecteur RFID_RC522
_____________________________________
| () |
| ()R _-_ |
| F / _-_ \ 3V3[ ]|
| I / / _ \ \ RST[ ]|
| D / / \ \ _ GND[ ]|
| - o |_| IRQ[ ]|
| R \ \ _ / / MISO[ ]|
| C \ \_ _ _/ / MOSI[ ]|
| 5 \ _ _ / SCK[ ]|
| 2 - SDA[ ]|
| ()2 ___ |
|____________________________()_|___|_|
Capteur de CO2 Senseair S8
________________________
| |° ° ° ° ° °| | |
G+ |[ ]| ° ° ° ° °/ |[ ]| DVCC_out
G0 |[ ]|° ° ° ° °/ |[ ]| UART_RxD
Alarm_OC |[ ]|_°_°_°_°| |[ ]| UART_TxD
PWM 1Khz |[ ]| |[ ]| UART_R/T
| | SenseAir® S8 |[ ]| bCAL_in/CAL
|___|________________|___|
Gyroscope et accéléromètre GY-521 - MPU6050
_________________
| MPU6050 ()|
|[ ]VCC |
|[ ]GND G |
|[ ]SCL ___ Y |
|[ ]SDA | | | |
|[ ]XCA |___| 5 |
|[ ]XCL 2 |
|[ ]ADO Y 1 |
|[ ]INT ->X | |
|_______________()|
Capteur de couleur GY-31
___________________________
| () [ ][ ][ ][ ][ ] () |
| INT LED S0 S1 VCC |
| GY-31 |
| _ - _ |
| ( ) / \ ( ) |
| / _ \ |
| ( |_| ) |
| \ / |
| ( ) \_ _ _/ ( ) |
| |
| GND OUT S2 S3 VCC |
| () [ ][ ][ ][ ][ ] () |
---------------------------
Capteur capacitif MPR121
_________________
| L 11[ ]|
| E 10[ ]|
| D 9[ ]|
3,3V-|[X]3,3V / 8[ ]|
|[ ]IRQ e 7[ ]|
A5-|[X]SCL l 6[ ]|
A4-|[X]SDA e 5[ ]|
|[ ]ADD c 4[ ]|
GND-|[X]GND t 3[ ]|
| r 2[ ]|
| o 1[ ]|
| MPR121 d 0[ ]|
|_________e_______|
Encodeur rotatif
A = broche A de l'encodeur
B = broche B de l'encodeur
G = GND
SW = bouton poussoir de l'encodeur
A G B
_|_|_|_
| _ |
| / \ |
| \ _ / |
|_______|
| |
G SW
Horloge
______________________________
| POWER //////// |
-|[ ]32k | RTC | |
-|[ ]SQW |DS3231 | SCL[ ]|
-|[ ]SCL | | SDA[ ]|
-|[ ]SDA \\\\\\\\ VCC[ ]|
-|[ ]VCC ___ GND[ ]|
-|[ ]GND |___| |
|______________________________|
Lecteur de carte SD
______________________________
| SD CARD _____________|
-|[ ]GND MODULE | /
-|[ ]3,3V [XXX] | / |
-|[ ]5 = | / |
-|[ ]CS = | | |
-|[ ]MOSI = | | |
-|[ ]SCK . = | \ |
-|[ ]MISO = | \ |
-|[ ]GND = |_________\___
|______________________________|
Actionneurs
Ecran OLED
GND 5V D5 D6
______|_|_|_|______
|() * * * * ()|
| GND VCC SCL SDA |
| _______________ |
| | | |
| | | |
| | | |
| |_______________| |
|()_______________()|
Servomoteur
___
|_°_|
| |
| ^ |
| | | |
| (o) |
| |
|_____|
|_°_|
|||
|| \___ data
| \____ Vin
\_____ GND
___
|_°_|
| ^ |
| | | |
| | | |
| (o) |
|Servo|
|_____|
|_°_|
|||
|| \___ data
| \____ Vin
\_____ GND
___
|_°_|
| / |
| / /
| / /|
| (o) |
|Servo|
|_____|
|_°_|
|||
|| \___ data
| \____ Vin
\_____ GND
___
|_°_|
| |
| |
| __|___
| (o)_____/
|Servo|
|_____|
|_°_|
|||
|| \___ data
| \____ Vin
\_____ GND
_
_________| |_
| ______ |
| | | |___
| |Servo | |_
| | | |_|
| |______| ___|
|_________ __|
||| |_|
|| \___ data
| \____ Vin
\_____ GND
Matrice de LED 8X8 :
________________
In | O O O O O O O O | Out
-> | O O O O O O O O | ->
VCC [ ]| O O O O O O O O |[ ] VCC
GND [ ]| O O O O O O O O |[ ] GND
DIn [ ]| O O O O O O O O |[ ] DOut
CS [ ]| O O O O O O O O |[ ] CS
CLK [ ]| O O O O O O O O |[ ] CLK
| O O O O O O O O |
-----------------
Lecteur MP3
+-------\_/--------+
+5V |[X] MP3-TF-16P [ ]|
resistance 1K - RX |[X] DFPlayer [ ]|
TX |[X] __________ [ ]|
|[ ]| |[ ]|
|[ ]| CARTE |[ ]|
Haut-Parleur |[X]| SD |[ ]|
GND |[X]| |[ ]|
Haut-Parleur |[X]| |[ ]|
|___|__________|___|
Haut-Parleur
/|
/ |
_ / |
-| | |
-|_| |
\ |
\ |
\|
|\
| \
| \ _
| | |-
| |_|-
| /
| /
|/
Ampli son : MAX98357A
______________________
|() |o o| ()|
| -|____|+ |
| = = ____ = = |
| MAX | | " " |
| 98357A |____| = |
|I2C Amp |
|LRC DIN SD VIN|
|[ ][ ][ ][ ] [ ][ ][ ]|
|__BCLK__GAIN____GND___|
Ruban de LED WS2812B - néopixel
_________________________ ____________
GND ->|= __ = __ = / / __ = |-> GND
Din ->|= |__| '' = |__| '' = \ \ |__| '' = |-> Dout
+5V ->|=__________=__________=_/ /________ =__|-> +5V
Matériel :
- des fils dupont.
- une breadbord
- Arduino
- ...
Schéma de l'Arduino en ASCII-ART CC-By http://busyducks.com/ascii-art-arduinos
Sous licence CC-By-Sa (http://creativecommons.org/licenses/by-nc-sa/3.0/)
*/
/*
___
/ ___ \
|_| | |
/_/
_ ___ _
|_| |___|_| |_
___|_ _|
|___| |_|
Les petits Débrouillards - CC-By-Sa http://creativecommons.org/licenses/by-nc-sa/3.0/
*/