| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| microc:micropython:tuto1gpio [2025/02/17 16:07] – [3.6 Programme 6 - Capteur de luminosité] phil | microc:micropython:tuto1gpio [2025/06/19 19:29] (Version actuelle) – modification externe 127.0.0.1 |
|---|
| </tabs> | </tabs> |
| |
| | {{ :microc:micropython:buzzer.jpg?nolink&200|Buzzer passif}} |
| === 3.2 PRG2 - Sortie numérique (PWM) === | === 3.2 PRG2 - Sortie numérique (PWM) === |
| <callout type="primary" title="Objectif" icon="true">Jouer des notes de musique </callout> | <callout type="primary" title="Objectif" icon="true">Jouer des notes de musique. </callout> |
| | |
| | == 3.2.1 Matériels == |
| | * **Transducteur** : buzzer passif <html><a href="https://wiki.seeedstudio.com/Grove-Passive-Buzzer/" target="_blank">Grove</a></html> |
| | |
| | == 3.2.2 Généralités == |
| | <<La modulation de largeur d'impulsions (MLI ; en anglais : Pulse Width Modulation, soit PWM), est une technique couramment utilisée pour synthétiser des signaux pseudo analogiques à l'aide de circuits numériques (tout ou rien, 1 ou 0), ou plus généralement à états discrets>>. <html><a href="https://fr.wikipedia.org/wiki/Modulation_de_largeur_d%27impulsion#:~:text=La%20modulation%20de%20largeur%20d,plus%20g%C3%A9n%C3%A9ralement%20%C3%A0%20%C3%A9tats%20discrets." target="_blank">Wikipédia</a></html> |
| | |
| | == 3.2.3 Activités de programmation == |
| | <tabs> |
| | * [[#tab-micropy_32|MicroPython]] |
| | * [[#tab-circuitpy_32|CircuitPython]] |
| | <pane id="tab-micropy_32"> |
| | </pane> |
| | <pane id="tab-circuitpy_32"> |
| | </pane> |
| | </tabs> |
| | |
| | \\ |
| |
| {{ :materiels:capteurs:potentiometre.png?nolink&80|Potentiomètre}} | {{ :materiels:capteurs:potentiometre.png?nolink&80|Potentiomètre}} |
| </pane> | </pane> |
| </tabs> | </tabs> |
| === 3.6 Serveur WEB === | === 3.7 Serveur WEB === |
| * <color #ed1c24>Ressource provisoire</color> : <html><a href="https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/" target="_blank">ESP32/ESP8266 MicroPython Web Server</a></html> | * <color #ed1c24>Ressource provisoire</color> : <html><a href="https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/" target="_blank">ESP32/ESP8266 MicroPython Web Server</a></html> |
| |
| <color #ed1c24>A faire</color> | <color #ed1c24>A faire</color> |
| | |
| | \\ |
| |
| === Pour aller plus loin === | === Pour aller plus loin === |
| - **Tutoriels** sur <html><a href="https://randomnerdtutorials.com/projects-esp32-esp8266-micropython/" target="_blank">RANDOM NERD TUTORIALS</a></html>((Random Nerd Tutorials helps makers, hobbyists and engineers build electronics projects. We make projects with: ESP32, ESP8266, Arduino, Raspberry Pi, ...)) | - **Tutoriels** sur <html><a href="https://randomnerdtutorials.com/projects-esp32-esp8266-micropython/" target="_blank">RANDOM NERD TUTORIALS</a></html>((Random Nerd Tutorials helps makers, hobbyists and engineers build electronics projects. We make projects with: ESP32, ESP8266, Arduino, Raspberry Pi, ...)) |
| |