Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
microc:uc:rp2 [2023/08/11 07:36] – [Microcontrôleurs - Raspberry Pi Pico et Pico W] phil | microc:uc:rp2 [2024/06/03 20:09] (Version actuelle) – [7. Exemples de programmes] phil |
---|
| |
{{ :microc:uc:rp2w.jpg?nolink|}} | {{ :microc:uc:rp2w.jpg?nolink|}} |
[Mise à jour le 10/8/2023] | [Mise à jour le 3/6/2024] |
| |
== Ressources == | == Ressources == |
* 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.elektormagazine.com/news/arduino-nano-rp2040-connect-review" target="_blank">Arduino Nano RP2040 Connect</a></html> | * <html><a href="https://www.elektormagazine.com/news/arduino-nano-rp2040-connect-review" target="_blank">Arduino Nano RP2040 Connect</a></html> |
* <html><a href="https://www.arduinolibraries.info/" target="_blank">Arduino Library List</a></html> | * Bibliothèques - <html><a href="https://www.arduinolibraries.info/" target="_blank">Arduino Library List</a></html> |
| |
== Distributeurs == | == Distributeurs == |
| |
<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">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> |
| |
| \\ |
| |
==== 1. Raspberry Pi Pico ==== | ==== 1. Raspberry Pi Pico ==== |
=== 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** |
\\ | |
| |
=== 1.2 Brochage === | === 1.2 Brochage === |
* **Mémoire SRAM**: 264 KB on-chip | * **Mémoire SRAM**: 264 KB on-chip |
* **Module** RTC intégré | * **Module** RTC intégré |
* **Mémoire Flash**: 2 MB externe | * **Mémoire Flash**: 2 MB externes |
* **26 broches GPIO** comprenant: | * **26 broches GPIO** comprenant: |
* 23 x E/S digitales | * 23 x E/S digitales |
* <html><a href="https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-python-sdk.pdf" target="_blank">Raspberry Pi Pico Python SDK</a></html> | * <html><a href="https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-python-sdk.pdf" target="_blank">Raspberry Pi Pico Python SDK</a></html> |
| |
<callout type="warning" icon="true" color="red">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> |
| |
| \\ |
| |
==== 2. Raspberry Pi Pico W ==== | ==== 2. Raspberry Pi Pico W ==== |
=== 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**. |
\\ | |
| |
| |
* <html><a href="https://datasheets.raspberrypi.com/picow/connecting-to-the-internet-with-pico-w.pdf" target="_blank">Connecting to the Internet with Raspberry Pi Pico W</a></html> | * <html><a href="https://datasheets.raspberrypi.com/picow/connecting-to-the-internet-with-pico-w.pdf" target="_blank">Connecting to the Internet with Raspberry Pi Pico W</a></html> |
* <html><a href="https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-python-sdk.pdf" target="_blank">Raspberry Pi Pico Python SDK</a></html> | * <html><a href="https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-python-sdk.pdf" target="_blank">Raspberry Pi Pico Python SDK</a></html> |
| |
| \\ |
| |
==== 3. Kit de développement Windows (SDK) ==== | ==== 3. Kit de développement Windows (SDK) ==== |
<html><a href="https://www.domo-blog.fr/la-fondation-raspberry-pi-officialise-kit-developpement-windows-pour-raspberry-pico/" target="_blank">La fondation Raspberry Pi officialise un kit de développement Windows pour le Raspberry Pico</a></html> | * <html><a href="https://www.domo-blog.fr/la-fondation-raspberry-pi-officialise-kit-developpement-windows-pour-raspberry-pico/" target="_blank">La fondation Raspberry Pi officialise un kit de développement Windows pour le Raspberry Pico</a></html> |
| |
| \\ |
| |
==== 4. Les shields ==== | ==== 4. Les shields ==== |
=== 4.1 Shield Grove === | === 4.1 Shield Grove === |
== 4.1.1 Description == | == 4.1.1 Description == |
Le <html><a href="https://wiki.seeedstudio.com/Grove-Starter-Kit-for-Raspberry-Pi-Pico/#docusaurus_skipToContent_fallback" target="_blank"><strong>Grove Shield Pico</strong></a></html> est une carte d'interface permettant de raccorder sans soudure les **capteurs**, les afficheurs et les pré-actionneurs Grove sur une carte Raspberry Pi Pico (W). <html><a href="https://files.seeedstudio.com/wiki/Grove_Shield_for_Pi_Pico_V1.0/Grove_shield_for_PI_PICOv1.0SCH.pdf" target="_blank">[Schéma]</a></html> | Le <html><a href="https://wiki.seeedstudio.com/Grove-Starter-Kit-for-Raspberry-Pi-Pico/#docusaurus_skipToContent_fallback" target="_blank"><strong>Grove Shield Pico</strong></a></html> est une carte d'interface permettant de raccorder sans soudure les **capteurs**, les afficheurs et les préactionneurs Grove sur une carte Raspberry Pi Pico (W). <html><a href="https://files.seeedstudio.com/wiki/Grove_Shield_for_Pi_Pico_V1.0/Grove_shield_for_PI_PICOv1.0SCH.pdf" target="_blank">[Schéma]</a></html> |
{{ :python:micropython:pico_hardware.png?nolink&400 |}} | {{ :python:micropython:pico_hardware.png?nolink&400 |}} |
* Il est équipé de 10 connecteurs 4 broches dont : | * Il est équipé de 10 connecteurs 4 broches dont : |
{{ :python:micropython:pim-556_0-1024x768.jpg?nolink&400 |}} | {{ :python:micropython:pim-556_0-1024x768.jpg?nolink&400 |}} |
| |
==== 5. Installer Python sur la Rpi Pico (W) ==== | \\ |
| |
| ==== 5. Programmer le Paspberry Pi Pico (W) en MicroPython ==== |
| === 5.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> |
| |
==== 6. Programmation du Rpi Pico (W) sous Arduino === | === 5.2 IDE Thonny === |
==== 6. IDE Thonny ==== | |
* **Installer** l'éditeur : <html><a href="https://thonny.org/" target="_blank">Thonny</a></html> | * **Installer** l'éditeur : <html><a href="https://thonny.org/" target="_blank">Thonny</a></html> |
{{ :python:micropython:thonny.png?nolink |}} | {{ :python:micropython:thonny.png?nolink |}} |
| |
==== 7. Exemples de programmes ==== | === 5.3 Exemples de programme en MicroPython === |
=== 7.1 MicroPython === | |
* <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 |
* <html><a href="https://peppe8o.com/mqtt-and-raspberry-pi-pico-w-start-with-mosquitto-micropython/" target="_blank">MQTT and Raspberry PI Pico W: Start with Mosquitto (MicroPython)</a></html> | * <html><a href="https://peppe8o.com/mqtt-and-raspberry-pi-pico-w-start-with-mosquitto-micropython/" target="_blank">MQTT and Raspberry PI Pico W: Start with Mosquitto (MicroPython)</a></html> |
* <html><a href="https://connect.ed-diamond.com/hackable/hk-039/utiliser-la-pwm-sur-la-raspberry-pi-pico?utm_campaign=Alerte-article-gratuit-Connect-HK39-09-05-23-particuliers&utm_medium=email&utm_source=newsletter" target="_blank">Utiliser la PWM sur la Raspberry Pi Pico</a></html> | * <html><a href="https://connect.ed-diamond.com/hackable/hk-039/utiliser-la-pwm-sur-la-raspberry-pi-pico?utm_campaign=Alerte-article-gratuit-Connect-HK39-09-05-23-particuliers&utm_medium=email&utm_source=newsletter" target="_blank">Utiliser la PWM sur la Raspberry Pi Pico</a></html> |
| |
| \\ |
| |
| ==== 6. Programmer le Paspberry Pi Pico (W) sous Arduino === |
| * //**Ressources**// |
| * <html><a href="https://arduino-pico.readthedocs.io/en/latest/" target="_blank">Documentation</a></html> officielle Arduino. |
| |
| * //**Tutoriels**// |
| * <html><a href="https://www.upesy.fr/blogs/tutorials/install-raspberry-pi-pico-on-arduino-ide-software" target="_blank">Utiliser la Pi Pico depuis l’Arduino IDE</a></html> |
| * <html><a href="https://learnembeddedsystems.co.uk/basic-multicore-pico-example" target="_blank">Basic Multicore Pico Project</a></html> |
| |
| \\ |
| |
| |
| |
| |
| |
| |
| |
| |