Skip to content

Technik Blog

Programmieren | Arduino | ESP32 | MicroPython | Python | Raspberry Pi | Raspberry Pi Pico

Menu
  • About me
  • Contact
  • Deutsch
  • English
Menu

MicroPython with ESP32: Introduction to the ESP32 D1 R32

Posted on 5. July 20243. July 2024 by Stefan Draeger

In this and upcoming posts, I would like to give you an introduction to programming the ESP32 with MicroPython. However, before we can start this little course, we need to get to know this microcontroller a little better and flash it.

What is special about the ESP32 D1 R32?

This microcontroller with an ESP-WROOM-32 chip has the form factor of an Arduino UNO R3/R4 and therefore the layout is familiar and particularly suitable for beginners as you don’t have to change much.

ESP32 D1 R32
ESP32 D1 R32
ESP32 D1 R32
ESP32 D1 R32
ESP-WROOM-32 Chip on ESP32 D1 R32
ESP-WROOM-32 Chip on ESP32 D1 R32

The main advantage is that you can plug in a multifunctional shield and start programming without having to worry about a circuit.

ESP32 D1 R32 with Rich Shield by Open Smart
ESP32 D1 R32 with Rich Shield by Open Smart

Technical data of the ESP32 D1 R32

The ESP32 D1 R32 is a powerful development board with the following technical specifications:

Technical DataSpecifications
Operating Voltage5V-12V DC
Current250mA (maximum)
Minimum Operating Current20mA (without WiFi)
WiFi802.11 b/g/n/e/i (up to 150 Mbps)
ConnectorMicro-USB with CH340 driver
Memory4 MB Flash memory
Clock Frequency240 MHz
Dimensions68 mm x 53 mm
Digital I/O Pins20 (3.3 V)
Analog Input Pins6

Important: The ESP32 has a voltage of 3.3V at its digital inputs/outputs, this is significantly less than the Arduino UNO R3, and therefore you must take this into account in your planned circuits!

Structure & pinout of the microcontroller

The microcontroller has a micro-USB socket which can be used to connect it to the computer for programming. Alternatively, a power bank can be connected to it to supply it with mobile power.

Pinout of ESP32 D1 R32
Pinout of ESP32 D1 R32

Connecting the microcontroller to the PC

The microcontroller is connected to the PC via the micro-USB socket. A serial-USB converter of the type CH340 is installed on the device, so that we can integrate the microcontroller correctly, we have to install a driver.

ESP32 DE1 R32 configured in Windows
ESP32 DE1 R32 configured in Windows

There are various CH340 drivers, and I was able to install it correctly using the driver provided by Wemos.

Flashing the ESP32 D1 R32 for programming in MicroPython

In order to program the microcontroller in MicroPython, we need to flash it with a new firmware. We can either use the command line tool esptool or the simple development environment Thonny. In the following, I will explain how to flash the ESP32 D1 R32 in MicroPython with the Thonny IDE.

In the first step, we select “Configure interpreter …” at the bottom right of the Thonny IDE.

Then set the interpreter to “MicroPython (ESP32)” and the correct port.

If you have several serial devices connected to the PC, you should first check in the Device Manager to which COM port the ESP32 is connected.

Finally, click on the “Install or update MicroPython (esptool)” link at the bottom right.

Here you have to make the following settings (see graphic).

These instructions also work for other devices such as the Raspberry Pi Pico / Pico W, you only have to adjust the data for MicroPython family & variant.

The process is then started with the “Install” button.

When the process is successfully completed and the windows are closed, you should see the following output in the command line. Of course, the version number may have been incremented by the time you read this post, but the information remains the same.

Overview of Thonny IDE

Let’s take a closer look at the Thonny application below.

In the title bar, we find the file name of the currently open file / selected tab and the cursor position.

The toolbar contains the buttons for starting and stopping scripts.

If we look at the left area, we will find a small file explorer with which we can open files and also copy them to the microcontroller via the context menu.

The field labeled “Output” displays the output from the code. You can also make entries there.

Outlook for upcoming articles

This was the first part of my series “MicroPython with ESP32” in the next article I would like to show you the programming language in more detail and present small programs with it.

So stay tuned…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Fragen oder Feedback?

Du hast eine Idee, brauchst Hilfe oder möchtest Feedback loswerden?
Support-Ticket erstellen

Newsletter abonnieren

Bleib auf dem Laufenden: Erhalte regelmäßig Updates zu neuen Projekten, Tutorials und Tipps rund um Arduino, ESP32 und mehr – direkt in dein Postfach.

Jetzt Newsletter abonnieren

Unterstütze meinen Blog

Wenn dir meine Inhalte gefallen, freue ich mich über deine Unterstützung auf Tipeee.
So hilfst du mit, den Blog am Leben zu halten und neue Beiträge zu ermöglichen.

draeger-it.blog auf Tipeee unterstützen

Vielen Dank für deinen Support!
– Stefan Draeger

Categories

Links

Blogverzeichnis Bloggerei.de TopBlogs.de das Original - Blogverzeichnis | Blog Top Liste Blogverzeichnis trusted-blogs.com

Stefan Draeger
Königsberger Str. 13
38364 Schöningen

Tel.: 01778501273
E-Mail: info@draeger-it.blog

Folge mir auf

  • Impressum
  • Datenschutzerklärung
  • Disclaimer
  • Cookie-Richtlinie (EU)
©2025 Technik Blog | Built using WordPress and Responsive Blogily theme by Superb
Cookie-Zustimmung verwalten
Wir verwenden Cookies, um unsere Website und unseren Service zu optimieren.
Funktional Always active
Die technische Speicherung oder der Zugang ist unbedingt erforderlich für den rechtmäßigen Zweck, die Nutzung eines bestimmten Dienstes zu ermöglichen, der vom Teilnehmer oder Nutzer ausdrücklich gewünscht wird, oder für den alleinigen Zweck, die Übertragung einer Nachricht über ein elektronisches Kommunikationsnetz durchzuführen.
Vorlieben
Die technische Speicherung oder der Zugriff ist für den rechtmäßigen Zweck der Speicherung von Präferenzen erforderlich, die nicht vom Abonnenten oder Benutzer angefordert wurden.
Statistiken
Die technische Speicherung oder der Zugriff, der ausschließlich zu statistischen Zwecken erfolgt. Die technische Speicherung oder der Zugriff, der ausschließlich zu anonymen statistischen Zwecken verwendet wird. Ohne eine Vorladung, die freiwillige Zustimmung deines Internetdienstanbieters oder zusätzliche Aufzeichnungen von Dritten können die zu diesem Zweck gespeicherten oder abgerufenen Informationen allein in der Regel nicht dazu verwendet werden, dich zu identifizieren.
Marketing
Die technische Speicherung oder der Zugriff ist erforderlich, um Nutzerprofile zu erstellen, um Werbung zu versenden oder um den Nutzer auf einer Website oder über mehrere Websites hinweg zu ähnlichen Marketingzwecken zu verfolgen.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Einstellungen anzeigen
{title} {title} {title}