microc:micropython:tuto1gpio

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
microc:micropython:tuto1gpio [2023/08/10 18:46] – créée - modification externe 127.0.0.1microc:micropython:tuto1gpio [2023/08/20 12:19] (Version actuelle) – [Tutoriel "Etape par Etape" - Premiers programmes en MicroPython ou CircuitPython avec une carte Raspbery Pi Pico W] phil
Ligne 1: Ligne 1:
-[[:python:micropython:accueil|{{ :iconemaison.jpg?nolink&30|Sommaire MicroPython}}]]+[[microc:accueilmc|{{ :iconemaison.jpg?nolink&30|Sommaire Microcontrôleur}}]]
  
 ===== Tutoriel "Etape par Etape" - Premiers programmes en MicroPython ou CircuitPython avec une carte Raspbery Pi Pico W ===== ===== Tutoriel "Etape par Etape" - Premiers programmes en MicroPython ou CircuitPython avec une carte Raspbery Pi Pico W =====
 {{ :python:micropython:micropycircuipy.png?nolink|}} {{ :python:micropython:micropycircuipy.png?nolink|}}
  
-[Mise à jour le : 12/6/2023] +[Mise à jour le :19/8/2023] 
  
   * **Ressources**   * **Ressources**
     * <html><a href="https://micropython.org/" target="_blank">MicroPython.org</a></html>     * <html><a href="https://micropython.org/" target="_blank">MicroPython.org</a></html>
     * <html><a href="https://docs.micropython.org/en/latest/index.html#" target="_blank">MicroPython documentation</a></html>     * <html><a href="https://docs.micropython.org/en/latest/index.html#" target="_blank">MicroPython documentation</a></html>
-    * <html><a href="https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-python-sdk.pdf" target="_blank">Raspberry Pi Pico Python SDK</a></html>+    * <html><a href="https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-python-sdk.pdf" target="_blank">Datasheet Raspberry Pi Pico Python SDK</a></html>
     * <html><a href="https://thonny.org/" target="_blank">IDE Thonny</a></html>     * <html><a href="https://thonny.org/" target="_blank">IDE Thonny</a></html>
     * <html><a href="https://how2electronics.com/getting-started-with-raspberry-pi-pico-w-using-micropython/" target="_blank">Getting Started with Raspberry Pi Pico W using MicroPython</a></html>     * <html><a href="https://how2electronics.com/getting-started-with-raspberry-pi-pico-w-using-micropython/" target="_blank">Getting Started with Raspberry Pi Pico W using MicroPython</a></html>
  
   * **Lectures connexes**   * **Lectures connexes**
-      * **Installer MicroPython** - [[python:micropython:materiel:espressif|MicroPython - Les modules Espressif ESP32 et ESP8266]] +      * **Installer MicroPython** - [[microc:uc:espressif|MicroPython - Les modules Espressif ESP32 et ESP8266]] 
-      * **Raspberry Pi Pico** - [[:python:micropython:raspypico2040|Les modules Raspberry Pi Pico et Pico W]]+      * **Raspberry Pi Pico** - [[:microc:uc:rp2|Les modules Raspberry Pi Pico et Pico W]]
       * **Programmez** ! Juillet/Août 2019        * **Programmez** ! Juillet/Août 2019 
       * **Elektor 489** Mai/Juin 2021       * **Elektor 489** Mai/Juin 2021
Ligne 31: Ligne 31:
 ==== 1. Le matériel ==== ==== 1. Le matériel ====
   * **Ressource**   * **Ressource**
-      * [[python:micropython:raspypico2040|MicroPython - Les modules Raspberry Pi Pico et Pico W]]* +    Wiki [[:microc:uc:rp2|MicroPython - Les modules Raspberry Pi Pico et Pico W]]* 
  
 ==== 2. L'IDE Thonny ==== ==== 2. L'IDE Thonny ====
Ligne 39: Ligne 39:
     * <html><a href="https://docs.micropython.org/en/latest/rp2/quickref.html"target="_blank">Quick reference for the RP2¶</a></html>     * <html><a href="https://docs.micropython.org/en/latest/rp2/quickref.html"target="_blank">Quick reference for the RP2¶</a></html>
 {{ :python:micropython:materiel:thonny.png?nolink&100|}} {{ :python:micropython:materiel:thonny.png?nolink&100|}}
-L'<html><a href="https://www.redhat.com/fr/topics/middleware/what-is-ide" title="Environnement de développement">IDE</a></html> **Thonny** propose aux débutants un **environnement de programmation** intuitif pour **Python** (MicroPython, CircuitPython), aussi facile à déployer qu'à utiliser.+L'<html><a href="https://www.redhat.com/fr/topics/middleware/what-is-ide" title="Environnement de développement" target="_blank">IDE</a></html> **Thonny** propose aux débutants un **environnement de programmation** intuitif pour **Python** (MicroPython, CircuitPython), aussi facile à déployer qu'à utiliser.
 Dans un souci de simplicité, Thonny embarque la dernière version de Python qu'il installe en même temps que l'EDI. Le programme est par ailleurs préconfiguré afin d'éviter les difficultés liées au paramétrage de l'application.  Dans un souci de simplicité, Thonny embarque la dernière version de Python qu'il installe en même temps que l'EDI. Le programme est par ailleurs préconfiguré afin d'éviter les difficultés liées au paramétrage de l'application. 
  
Ligne 87: Ligne 87:
  
 ==== 3. Programmation ==== ==== 3. Programmation ====
-=== 3.1 Prog. 1 - Commande d'une sortie numérique ===+=== 3.1 Programme 1 - Commande d'une sortie numérique ===
 {{ :python:micropython:materiel:led.jpg?nolink&100|LED}} {{ :python:micropython:materiel:led.jpg?nolink&100|LED}}
 <callout type="primary" title="Objectif" icon="true">Faire clignoter une LED externe à la carte Raspberry Pi Pico !</callout> <callout type="primary" title="Objectif" icon="true">Faire clignoter une LED externe à la carte Raspberry Pi Pico !</callout>
Ligne 197: Ligne 197:
  
 {{ :materiels:capteurs:potentiometre.png?nolink&80|Potentiomètre}} {{ :materiels:capteurs:potentiometre.png?nolink&80|Potentiomètre}}
-=== 3.2 Prog. 2 - Lecture d'une entrée analogique ===+=== 3.2 Programme 2 - Lecture d'une entrée analogique ===
 <callout type="primary" title="Objectif" icon="true">Afficher la position angulaire (en °) d'un axe dans la console de l'IDE.</callout> <callout type="primary" title="Objectif" icon="true">Afficher la position angulaire (en °) d'un axe dans la console de l'IDE.</callout>
  
Ligne 313: Ligne 313:
  
 {{ :arduino:gravity-i2c-oled-128x64-display.jpg?nolink&150|Gravity OLED-2864 Display}} {{ :arduino:gravity-i2c-oled-128x64-display.jpg?nolink&150|Gravity OLED-2864 Display}}
-=== 3.3 Prog. 3 - Afficheur graphique ===+=== 3.3 Programme 3 - Afficheur graphique ===
 <callout type="primary" title="Objectif" icon="true">Afficher la température délivrée par le **capteur interne** au microcontrôleur sur un afficheur graphique.</callout> <callout type="primary" title="Objectif" icon="true">Afficher la température délivrée par le **capteur interne** au microcontrôleur sur un afficheur graphique.</callout>
  
Ligne 428: Ligne 428:
  
  
-=== 3.4 Prog. 4 - Capteur atmosphérique ===+=== 3.4 Programme 4 - Capteur atmosphérique ===
 {{ :python:micropython:ada2652.jpg?nolink|}} {{ :python:micropython:ada2652.jpg?nolink|}}
 <callout type="primary" title="Objectif" icon="true"> Afficher la température, l'humidité et la pression délivrées par un capteur à circuit **BME280** sur un afficheur graphique.</callout> <callout type="primary" title="Objectif" icon="true"> Afficher la température, l'humidité et la pression délivrées par un capteur à circuit **BME280** sur un afficheur graphique.</callout>
Ligne 559: Ligne 559:
 </pane> </pane>
 </tabs> </tabs>
-=== 3.5 Prog. 5 - Capteur de luminosité ===+=== 3.5 Programme 5 - Capteur de luminosité ===
 {{ :python:micropython:ar-capteur-de-lumiere-tsl2591-ada1980-22971.jpg?nolink&200|}} {{ :python:micropython:ar-capteur-de-lumiere-tsl2591-ada1980-22971.jpg?nolink&200|}}
 <callout type="primary" title="Objectif" icon="true">Afficher la luminosité ambiante sur un afficheur graphique.</callout> <callout type="primary" title="Objectif" icon="true">Afficher la luminosité ambiante sur un afficheur graphique.</callout>
Ligne 657: Ligne 657:
 </pane> </pane>
 </tabs> </tabs>
-=== 3.6 Synthèse === +=== 3.6 Serveur WEB === 
-<color #ed1c24>WEB : A faire</color>+  <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> 
 === 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, ...)) 
  
  • microc/micropython/tuto1gpio.1691685964.txt.gz
  • Dernière modification : 2023/08/10 18:46
  • de 127.0.0.1