| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| microc:uc:rp2 [2025/02/17 10:31] – [2. Programmer le Paspberry Pi Pico (W) sous Arduino] phil | microc:uc:rp2 [2025/06/19 19:29] (Version actuelle) – modification externe 127.0.0.1 |
|---|
| [[microc:accueilmc|{{ :iconemaison.jpg?nolink&30|Sommaire Microcontrôleur}}]] | [[microc:accueilmc|{{ :iconemaison.jpg?nolink&30|Sommaire Microcontrôleur}}]] |
| |
| ===== Microcontrôleurs - Raspberry Pi Pico et Pico W ===== | ====== Microcontrôleurs - Rpi Pico (2) et Pico W (2)====== |
| |
| {{ :microc:uc:rp2w.jpg?nolink|}} | {{ :microc:uc:rp2w.jpg?nolink|}} |
| [Mise à jour le 3/6/2024] | [Mise à jour le 19/5/2025] |
| |
| == Ressources == | == Ressources == |
| * <html><a href="https://docs.arduino.cc/software/ide-v2" target="_blank">Arduino IDE 2</a> (C,C++)</a></html> | * <html><a href="https://docs.arduino.cc/software/ide-v2" target="_blank">Arduino IDE 2</a> (C,C++)</a></html> |
| * <html><a href="https://thonny.org/" target="_blank">IDE Thonny</a></html> (MicroPython, CircuitPython) | * <html><a href="https://thonny.org/" target="_blank">IDE Thonny</a></html> (MicroPython, CircuitPython) |
| | |
| == Lectures connexes == | == Lectures connexes == |
| * Wiki matériels - [[materiels:accueilmateriels|"Capteurs, afficheurs, préactionneurs, etc."]] | * Wiki matériels - [[materiels:accueilmateriels|"Capteurs, afficheurs, préactionneurs, etc."]] |
| * <html><a href="https://www.gotronic.fr/art-carte-raspberry-pi-pico-33027.htm" target="_blank">Go Tronic</a></html> | * <html><a href="https://www.gotronic.fr/art-carte-raspberry-pi-pico-33027.htm" target="_blank">Go Tronic</a></html> |
| |
| <callout type="primary" icon="true">Les cartes Raspberry Pi Pico et Pico W sont basées sur un circuit <html><a href="https://www.raspberrypi.com/documentation/microcontrollers/rp2040.html#welcome-to-rp2040" target="_blank">RP2040</a></html> conçu par Raspberry Pi. Il est très simple, a d'excellentes performances et un coût très faible (~5€). Sa programmation en MicroPython se fait via **REPL**, par **glisser-déposer** ou directement avec l'**IDE Thonny**.</callout> | <callout type="primary" icon="true">Les cartes **Raspberry Pi Pico** et **Pico W** sont basées sur un circuit <html><a href="https://www.raspberrypi.com/documentation/microcontrollers/rp2040.html#welcome-to-rp2040" target="_blank"><b>RP2040</b></a></html>. Les cartes Raspberry **Pi Pico 2** et **Pico 2W** améliorent les performances et la sécurité de la génération précédente. Elles sont basées sur un circuit <html><a href="https://www.raspberrypi.com/documentation/microcontrollers/silicon.html#rp2350" target="_blank"><b>RP2050</b></a></html>. Ces cartes sont conçues par Raspberry Pi, ont d'excellentes performances et un coût très faible (~5€). Leur programmation en MicroPython se fait via **REPL**, par **glisser-déposer** ou directement avec l'**IDE Thonny**.</callout> |
| |
| \\ | \\ |
| |
| ===== A. Les Matériels ===== | ===== A. Les Matériels ===== |
| ==== A1. Raspberry Pi Pico ==== | ==== A1. Pi Pico et Pico 2 ==== |
| === 1.1 Généralités === | === 1.1 Généralités === |
| * Documentation du <html><a href="https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html" target="_blank">Raspberry Pi Pico </a></html> sur le site **raspberrypi.com** | * Documentation du <html><a href="https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html" target="_blank">Raspberry Pi Pico </a></html> sur le site **raspberrypi.com** |
| {{ :python:micropython:raspipico.jpg?nolink&900 |}} | {{ :python:micropython:raspipico.jpg?nolink&900 |}} |
| \\ | \\ |
| === 1.3 Caractéristiques de la carte === | === 1.3 Caractéristiques === |
| {{ :python:micropython:19536_3.png?nolink&350|}} | {{ :python:micropython:19536_3.png?nolink&350|}} |
| * **Alimentation**: | * **Alimentation**: |
| |
| <callout type="warning" icon="true" color="red" title="TENSION ENTREE GPIO">Les entrées et sorties logiques de cette carte sont uniquement compatibles **3,3Vcc**. Une tension supérieure endommagerait irrémédiablement la Raspberry Pi Pico.</callout> | <callout type="warning" icon="true" color="red" title="TENSION ENTREE GPIO">Les entrées et sorties logiques de cette carte sont uniquement compatibles **3,3Vcc**. Une tension supérieure endommagerait irrémédiablement la Raspberry Pi Pico.</callout> |
| | |
| | === 1.5 Raspberry Pi pico 2 === |
| | * Consulter la documentation disponible <html><a href="https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html#pico-2-technical-specificationtarget="_blank"><b>ici</b></a></html> |
| |
| \\ | \\ |
| |
| ==== A2. Raspberry Pi Pico W ==== | ==== A2. Pi Pico W et W2 ==== |
| === 2.1 Généralités === | === 2.1 Généralités === |
| * Documentation du <html><a href="https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html" target="_blank">Raspberry Pi Pico W </a></html> sur le site **raspberrypi.com**. | * Documentation du <html><a href="https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html" target="_blank">Raspberry Pi Pico W </a></html> sur le site **raspberrypi.com**. |
| \\ | \\ |
| ===== B. Les logiciels ===== | ===== B. Les logiciels ===== |
| ==== 1. Programmer les Paspberry Pi Pico en MicroPython ==== | ==== 1. Programmer Pi Pico en MicroPython ==== |
| === 1.1 Installer MicroPython === | === 1.1 Installer MicroPython === |
| * **Voir le tutoriel** <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> | * **Voir le tutoriel** <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> |
| {{ :python:micropython:thonny.png?nolink |}} | {{ :python:micropython:thonny.png?nolink |}} |
| |
| === 1.3 Exemples de programme en MicroPython === | === 1.3 Exemples === |
| * <html><a href="https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico" target="_blank">Getting started with Raspberry Pi Pico</a></html> | * <html><a href="https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico" target="_blank">Getting started with Raspberry Pi Pico</a></html> |
| * Blink the onboard LED | * Blink the onboard LED |
| \\ | \\ |
| |
| ==== 2. Programmer les Paspberry Pi Pico sous Arduino === | ==== 2. Programmer Pi Pico (en C/C++) sous Arduino === |
| * //**Ressources**// | * //**Ressources**// |
| * <html><a href="https://arduino-pico.readthedocs.io/en/latest/" target="_blank">Documentation</a></html> officielle Arduino. | * <html><a href="https://arduino-pico.readthedocs.io/en/latest/" target="_blank">Documentation</a></html> officielle Arduino. |