WinFuture-Forum.de: Micropython - das auf kleinen eingebetteten Entwicklungsboards läuft - WinFuture-Forum.de

Zum Inhalt wechseln

Beiträge in diesem Forum erhöhen euren Beitragszähler nicht.
Seite 1 von 1

Micropython - das auf kleinen eingebetteten Entwicklungsboards läuft


#1 Mitglied ist offline   el_pelajo 

  • Gruppe: aktive Mitglieder
  • Beiträge: 72
  • Beigetreten: 15. Dezember 21
  • Reputation: 16

geschrieben 05. Dezember 2023 - 18:25

Grad steht der Winter vor der Tür - Zeit für neue Projekte: Die Programmiersprache Python ist ziemlich beliebt - und relativ leicht zu lernen. Die Einsatzszenarien von MicroPython - sie sind vielfältig: Seit fast zehn Jahren gibt es Python als MicroPython auch für eine ganze Reihei an Mikrocontrollern. Damit eröffnet sich ein weites Anwendungsfeld - das stetig wächst und immmer neuue Mögllichkeiten bietet.

MicroPython wird auf immer mehr Umgebungen portiert: Diese Implementierung erleichtert den Einstieg in die Anwwendungsbereiche - wie z.B. das Arbeiten mit sogenannten Python-Boards: Damit kann man experimentelle und auch raktische Projekte umsetzen. Es gibt eine ganze Reihe von Entwicklerboards - mit denen man hier arbeiten kanN - Zum einen ist hier das offizielle Board zu nennen. Darübrer hinaus sind viele weitere Boards hinzugegkommen - viele weitere kompatible Mikrocontroller-Boards eben.

MicroPython unterstütz etwa den ESP8266 und diverse ESP32-Varianten von Espressif und viele mehr - so auch viele die z.B. auf Boards von Adafruit, Arduino, dem Raspberry Pi Pico bzw. Pico W (mit WLAN) sich befinden.

Das Tolle an Micropython:

MicroPython ist ein kleiner Open-Source-Interpreter für die Programmiersprache Python, der auf kleinen eingebetteten Entwicklungsboards läuft. Mit MicroPython kann man auberen und einfachen Python-Code zur Steuerung von Hardware schreiben, anstatt komplexe Low-Level-Sprachen wie C oder C++ (die Arduino zum Programmieren verwendet) verwenden zu müssen. Die Einfachheit der Programmiersprache Python macht MicroPython zu einer ziemlich hervorragenden Wahl für Anfänger, die noch nicht so viel Erfahrung mit Programmierung und Hardware haben. Daneben und darüber hinaus verfügt Microython auch ber einen recht umfassenden Funktionsumfang und unterstützt den Großteil der Python-Syntax, sodass selbst erfahrene Python-Veteranen MicroPython einigermaßen vertraut und unterhaltsam finden werden.

hier einige Boards für MicroPython: https://www.adafruit.com/category/924

mehr Infos, Hintergründe u. Links:

Micropython auf Wikipedia: https://en.wikipedia...iki/MicroPython
MicroPython is a software implementation of a programming language largely compatible with Python 3, written in C, that is optimized to run on a microcontroller. MicroPython consists of a Python compiler to bytecode and a runtime interprete of that bytecode. The user is presented with an interactive prompt (the REPL) to execute supported commands immediately. Included are a selection of core Python libraries; MicroPython includes modules which give the programmer access to low-level hardware. MicroPython does have an inline assembler, which lets the code run at full speed, but it is not portable across different microcontrollers. The source code for the project is available on GitHub under the MIT License.

ein Link zur Micropython-Projektseite: https://micropython.org



update: ein sehr sehr schönes Tutorial zeigt wie man mit VSCode hier vorankommt: Programming Raspberry Pi Pico with VS Code and MicroPython


https://randomnerdtu...de-micropython/

Zitat

In this guide, you’ll learn how to program the Raspberry Pi Pico board with MicroPython using VS Code Editor and the MicroPico extension (previously called Pico-W-Go).



--....

Zitat

If you like to program using VS Code, great news. There’s an extension for VS Code that allows you to program your Raspberry Pi Pico board using VS Code editor.
If you’re not used to programming using VS Code, it might be a little difficult to get started. You may stick to simpler IDEs, like Thonny IDE.



4) Installing MicroPico Extension
Finally, follow the instructions to set up the MicroPico extension, configure your project folder and run your first project:

Zitat

Installing MicroPico Extension
Configuring a MicroPython Project Folder
Running a MicroPython File
Uploading a MicroPython File


Flashing MicroPython Firmware on the Raspberry Pi Pico


Zitat

You can flash MicroPython firmware on your Raspberry Pi Pico by connecting it to a computer via USB, then dragging and dropping a file onto it. Click on one of the following links to download the MicroPython firmware for your board (if you have a W version, you can choose if you want to add support for Bluetooth):

Dieser Beitrag wurde von el_pelajo bearbeitet: 08. Dezember 2023 - 13:35

Elektronik & IT-Fan - Raspi, Arduino - u. die neue Knowledge-Base: https://affine.pro :: WordPress Ressourcen News: https://wptavern.com :: Entwicklung: https://make.wordpress.org/core/ ::
0

Anzeige



Thema verteilen:


Seite 1 von 1

1 Besucher lesen dieses Thema
Mitglieder: 0, Gäste: 1, unsichtbare Mitglieder: 0