(Wemos) D1 ESP32

Last Updated on 15 April 2022 by Suffocation

Der WEMOS D1 EP32 ist der Ersatz für den D1 Mini. Er hat ein aufgedampftes ESP 32 Wroom Modul. Ein USB Micro Anschluss, ein Reset-Taster und zwei Eingebaute LEDs auf dem ESP sind die einzige Peripherie. Er zählt von seinen Abmessungen eher zu den kleinen, dies beschränkt in diesem Falle aber nicht die Anzahl der nach aussen geführten 40 Pins, da diese in zwei Reihen nach aussen geführt sind.

Interesting, how with the Wemos D1 Mini there are so many expansion boardsSee manufacturer).

Link zum D1 Mini (Vorgänger)

Ich habe bei Wemos keinen Hinweise über den D1 ESP32 gefunden, deshalb sei in Frage gestell ob dieser offizell auch von Wemos produziert wird.

Facts

  • USB Micro Connector (CH9102)
  • Reset button
  • 18 Digital Pins
  • 8 Analogue Pins (almost freely configurable)
  • Operating voltage 3.3V
  • Connection voltage 5V
  • 4M SPI Flash Memory
  • 80MHz/240MHz
  • 2 LEDs
  • Preis ~5€
  • Dimensions in mm: l/w/h 39/32/13

Pin assignment

(Wemos) D1 ESP32 – Pin Assignment
PinFunctionsESP32 Pin
TXUART TXDTXD
RXUART RXDRXD
A0IO, ADC2GPIO36
D0InGPIO26
D1InGPIO22, I²C SCL
D2InGPIO21, I²C SDA
D3InGPIO17
D4InGPIO16
D5InGPIO18
D6InGPIO19
D7InGPIO23
D8InGPIO5
GGroundGround
5V5V
3V33.3V3.3V
RSTResetRST

Source: https://www.wemos.cc/en/latest/d1/d1_mini.html

Areas of application

  • Microcontroller projects with Wi-Fi
  • Remote control
  • Alarm clock
  • ...

Views

Programming

Preparation

Der Wemos kommt mit einer CH9102 USB Schnitstelle, sollte der Treiber noch nicht installiert sein muß dieser nachinstalliert werden.

CH9102 USB Driver

Libraries

Zur Programmierung des Wemos sind keine zusätlichen Bibliotheken nötig. Die ESP Erweiterung der Arduino GUI muss jedoch installiert sein. Siehe hierzu auch den Link for setup.

Current status Arduino ESP32 Library V2.0.2

Test programme

Als Testprogramm kann Blink verwendet werden. Dies gibt es entweder bei den Beispielprogrammen der Arduino GUI unter diesen findest sich auch das Task gesteurte Blink welches zum Erlernen der Multitaskumgebung auf dem ESP32 ganz nett ist. Dies kann auch über Github bezogen werden:

https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/FreeRTOS/FreeRTOS.ino

I was able to program my Wemos D1 ESP32 with the following settings:

Als Port wählt bitte eure Serielle Schnittstelle aus, bei mir ist es COM 15.

Problems

D Ports not found

Unfortunately, the D-ports are not mapped. Here, it helps to simply create defines with the corresponding ports. Example:

#ifndef D7
#define D7 23
#endif

#ifndef D5
#define D5 18
#endif

Wemos board not recognised

CH9102 Install drivers

Should there be any further problems Zadig Try.

Programmierung schlägt fehl

Einstellungen für Board, Port und Programmer überprüfen. Evtl. auch mal andere als die von mir gezeigten ausprobieren. Es gibt auch Board Setting für den Wemos

Miscellaneous

Fritzing Wemos D1 ESP32 Mini:

https://forum.fritzing.org/uploads/short-url/wv8xVt6y4tFToPngAeMqUju2oUl.fzpz

Example projects:
https://github.com/wemos/D1_mini_Examples

Modell für den 3D Druck
https://grabcad.com/library/wemos-d1-mini-v3-0-0-1

https://grabcad.com/library/wemos-d1-mini-1

Conclusion

Der D1 ESP32 ist aus meiner Sicht nicht ganz kompatibel weil ich keine Board Beschreibung für die Arduino Gui finden konnte die auch das Mapping für die D-Ports beinhaltet. Dennoch kann dieser als schneller Ersetz dienen. Durch die zusätzlichen Pins ist er auch für andere Projekte gut geignet. Mit den Durchgeschliffenen Ports ist er auch auf einer Steckplatine betreibbar und insgesamt sehr kompakt.

Verwandte Beiträge

Sources

ESP Wroom 32 Datasheet

https://arduino-projekte.info/produkt/d1-mini-esp32-wifi-bluetooth/

CH9102 USB Driver

https://makersportal.com/shop/esp32-d1-mini-bluetoothwifi-board

https://docs.platformio.org/en/stable/boards/espressif32/wemos_d1_mini32.html

DateChangeAuthor
12.04.2022Post createdSuffocation

3 thoughts on “(Wemos) D1 ESP32

  1. Hi Sven,
    If the problem with brownout exceptions still hasn't been solved – here's a tip: insert the following code on the first line in setup().
    void setup() {
    RTC_CNTL_BROWN_OUT_REG,0);
    .........

  2. Hi, I found the ESP32 in the D1-mini format in my bits and bobs box and wanted to tinker with something…

    As soon as I try a WifiConnect with the Arduino API, I get a brownout exception and restart. The board is connected to the computer via USB (tested with different cables and USB ports). Always the same rubbish.

    Unlike other dev boards, at least the 5V voltage is available on an external pin which can be supplied with an external voltage source. Usually, for many ESP32 projects (with Wi-Fi), it is recommended to stabilise the external voltage with a hefty capacitor between +5V and GND. How should one do this with this board?

    As Stefan wrote, mapping the pinouts to the Arduino code is fiddly reverse-engineering.

    I would use a different board next time.

    1. Hi Sven,

      I'm currently detoxing from technology 😉, so here's just a quick message. I would have initially guessed voltage too (VCC pin). But it could also be down to the settings in the Arduino GUI, memory (size, type...).

      Hello
      Stefan

Leave a Reply

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