“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.
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?
- Now first of all for everyone who needs WLAN and / or Bluetooth as the most important interface.
- For those who want to free their projects from unnecessary hardware for WLAN and Bluetooth
- For programmers with projects who appreciate more than 32kByte and the advantages of 4MB programming memory
- For beginners and advanced users who want to enter the world of micro controllers
- 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.