Das 24. und letzte Türchen

“In winter when it storms and snows
And Christmas is not far away.

There comes a long way from dark fir
Dear, good Santa Claus. "

Quote from: In winter, when it storms and snows - Author: unknown

With this in mind, AZ-Delivery and the entire blog team wish you a Merry Christmas and a Happy New Year. So that you can open the last little door for the holidays, the Christmas elves have chosen something big in credit card format.

What's behind the door today?

Behind the last door of this year is the ESP32 D1 R32 development board with CH340G and WiFi + Bluetooth. This will bring you some projects from the old micro controller board with ATmega328P into the modern age.

The comparison

Illustration 1 shows both that Microcontroller board with ATmega328P and ESP32 D1 R32 developer board next to each other. With this in mind, today we want to briefly clarify where the similarities, but also the differences, are.

Illustration 1: Microcontroller board with ATmega328P and ESP32 D1 R32 developer board

The first difference that is immediately noticeable is the built-in micro controller. We see an ATMEL chip in the Uno R3, but an ESP32-WROOM-32 in the D1 R32.

Both micro controllers have a socket to connect an external voltage source between 7-12V, but you can see a clear difference with the USB connection. The Uno R3 uses a USB type A connection, the D1 R32 a micro USB connection.

The number and position of the reset button and the socket headers are in the same place. The assignment of the individual pins is not always identical, please note that among other things in the Pinout diagram. A big exception is how much voltage you can put on the individual pins of the D1 R32! The D1 R32 can output 5V voltage, but the individual function pins can have a maximum 3.3V to process. You must therefore install a voltage divider or logic level converter if you have sensors that deliver a 5V signal, otherwise you risk a total defect of the board!

Another noticeable feature of the D1 R32 is the WLAN or Bluetooth antenna on the right. This is missing in the Uno R3 and ensures that you have the latest transmission standards directly on the circuit board for your old and new projects without having to install additional hardware.

The hobbyist was also accommodated with the pinout of the D1 R32. In the past, you always had to look for which pin has which GPIO, here the appropriate I/Os are printed directly on the board, see Figure 2. This saves you a long search when programming!


Illustration 2: Pinout from the ESP32 D1 R32 developer board

The usual interfaces are also directly on the board. Here you can find I2C, SPI and the serial interface, just to name the most common. With WLAN and Bluetooth, your projects will be “ready for the Internet of Things”. You also have several pins available for PWM signals.

Due to the design of the D1 R32, you can use the prototyping shield for the Uno to develop your own project. Due to different pin assignments, however, you have to be very careful when choosing other shields. The display shield e.g. only works after extensive changes that require a good knowledge of soldering.

The question that one or the other might ask is, who is the D1 R32 intended for?

  1. Now first of all for everyone who needs WLAN and / or Bluetooth as the most important interface.
  2. For those who want to free their projects from unnecessary hardware for WLAN and Bluetooth
  3. For programmers with projects who appreciate more than 32kByte and the advantages of 4MB programming memory
  4. For beginners and advanced users who want to enter the world of micro controllers
  5. For those who prefer to develop on a larger board first, and then later transfer a finished project to the smaller version.

You only need the Arduino IDE in the current version with the already mentioned extension for the ESP32 models and of course the corresponding sensors and actuators, so that you get your projects implemented.

For an uncomplicated introduction to programming, I can only recommend the blog posts of Andreas Wolter "Arduino IDE - Programming for beginners". Here you get a comprehensive insight into the Arduino IDE in several parts.


More projects for AZ-Delivery by me, see https://github.com/M3taKn1ght/Blog-Repo.




Bernd Albrecht

Bernd Albrecht

@R. Leilich: Gut aufgepasst und danke für den Hinweis. Leider stimmt die Beschriftung des Boards nicht.
Wir haben alles ausprobiert, bevor wir das Pinout-Diagramm vervollständigt haben. Bei der Abfrage der analogen Pins “hört” übrigens nur Pin 36 auch auf A0, die anderen Pins müssen über ihre GPIO-Nummer abgefragt werden.

veit burmester

veit burmester

Auch von mir eine frohe Weihnacht und frohes neues Jahr.
Vielen Dank für den tollen Job den ihr macht. Setzt Maßstäbe und ist für die interessierten eine tolle Bereicherung.
Viele Grüße

Volker Henn

Volker Henn

zunächst Euch allen frohe Weihanchten und danke für die vielen Stunden mit den Microcontrollern, die vor einigen Jahren noch unbezahlbar waren.

In vorhergehendem Artikel haben sich ein paar Fehler eingeschlichen, siehe hierzu
- "Uno R3 benutzt einen USB-Typ A " : den A gibt es korrekterweise nur am PC, also am Master. Der Uno hat also einen ‘USB 2 Standard B’
- “der D1 R32 ein Micro-USB-Anschluss” also ganz korrekt ‘USB 2 Micro-B’

Und am Schluß noch der Hinweis, auf einen sehr wichtigen Unterschied: Mit den ESP ist aufgrund des größeren Speichers Micropython möglich.
Viele Grüße

R. Leilich

R. Leilich

Bei dem Pinout-Bild scheint etwas fehlerhaft zu sei:
Die Beschreibung der analogen Pins auf dem Bord und neben dem Bord differieren:
IO36 / 34 / 38 / 39 auf dem Bord
IO35 / 34 / 36 / 39 neben dem Bord
Das Bild in der Artikelbeschreibung zeigt:
IO36 / 34 / 36 / 39 ???
Was stimmt den nun?

Leave a comment

All comments are moderated before being published

Recommended blog posts

  1. Install ESP32 now from the board manager
  2. Lüftersteuerung Raspberry Pi
  3. Arduino IDE - Programmieren für Einsteiger - Teil 1
  4. ESP32 - das Multitalent
  5. OTA - Over the Air - ESP programming via WLAN