esp-idf-ssd1306/esp32s2_multi_pcb/README.md

60 lines
3.6 KiB
Markdown
Raw Normal View History

2024-04-12 21:43:37 -04:00
# ESP32S2 Mini Multi PCB
Several products of ESP32 equipped with SSD1306 are available.
However, I have never seen a product equipped with an SSD1306 with an SPI interface.
Also, I have never seen a product equipped with a 1.3 inch SSD1306 product.
Therefore, I designed a PCB that can be equipped with an SPI interface and 1.3 inch products.
2024-04-12 21:47:09 -04:00
I use ESP32S2-Mini Development board.
2024-04-12 21:43:37 -04:00
Although this product is very small, it is equipped with 2MB of PSRAM.
2024-04-12 21:44:46 -04:00
![esp32s2-pcb-1](https://github.com/nopnop2002/esp-idf-ssd1306/assets/6020549/c7c7a839-b397-4d8b-b8b5-fc1f75a73ad3)
![esp32s2-pcb-2](https://github.com/nopnop2002/esp-idf-ssd1306/assets/6020549/546f0fe8-c565-4b58-8edf-6f9a644f0f5f)
![esp32s2-pcb-3](https://github.com/nopnop2002/esp-idf-ssd1306/assets/6020549/75cec085-c336-453c-b10e-0d3ba5e59ede)
![esp32s2-pcb-4](https://github.com/nopnop2002/esp-idf-ssd1306/assets/6020549/8ebc94ee-1ff9-4591-a0a5-3057ea397bf2)
2024-04-12 21:43:37 -04:00
2024-04-12 22:22:50 -04:00
You can download the Garbers file from [here](https://www.pcbway.com/project/shareproject/esp32s2_ssd1306_multi_pcb_2d6e5b26.html).
2024-04-12 22:01:52 -04:00
You can use the zip file to order it yourself from PCB manufacturing vendors such as Elecrow/FusionPCB/PCBWay.
2024-04-12 21:47:09 -04:00
I ordered it on 3/31 and it arrived on 4/9.
2024-04-12 21:43:37 -04:00
You can repeat my order from [here](https://www.pcbway.com/project/shareproject/esp32s2_ssd1306_multi_pcb_2d6e5b26.html).
2024-04-12 23:08:20 -04:00
# Configuration
2024-04-12 23:09:22 -04:00
for SPI interface
2024-04-12 23:08:20 -04:00
![config-spi](https://github.com/nopnop2002/esp-idf-ssd1306/assets/6020549/3a3e85de-dfc9-4888-bf2f-3e211e0a7bac)
2024-04-12 23:09:22 -04:00
for I2C interface
2024-04-12 23:08:20 -04:00
![config-i2c](https://github.com/nopnop2002/esp-idf-ssd1306/assets/6020549/ab8a9f3b-e4d7-41e7-a658-3173f847f711)
2024-04-12 21:43:37 -04:00
2024-04-23 07:34:25 -04:00
# Why ESP32S2 Mini?
2024-04-23 07:33:58 -04:00
cheap!!
Only $1.49.
2024-04-12 21:43:37 -04:00
# About ESP32S2 Mini
A Type-C USB connector is mounted on the board, but a USB-TTL conversion chip is not mounted.
The circuit diagram is available [here](https://www.wemos.cc/en/latest/_static/files/sch_s2_mini_v1.0.0.pdf).
USB ports D- and D+ are connected to GPIO19/20.
Since it uses the chip's USB-OTG function, it will not be recognized as a USB device even if you simply connect it to the host with a USB cable.
To write firmware, press ButtonRST while pressing Button0, then release ButtonRST and then Button0.
Now the device will enter DFU mode, the USB device (/dev/ttyACM0) will appear, and you can upload the firmware.
2024-04-12 23:12:53 -04:00
Once the firmware upload is complete, press ButtonRST again.
The firmware will now start.
2024-04-12 21:43:37 -04:00
If you press ButtonRST without pressing Button0, the USB device will disappear.
In other words, USB can be used for writing, but not for STDOUT.
2024-04-12 22:05:26 -04:00
On ESP32-S2, GPIO43/44 are U0TXD/U0RXD, but this GPIO is not present on the pin header.
2024-04-12 21:43:37 -04:00
2024-04-12 22:17:32 -04:00
My board has 4MB of FLASH and ___2MB of PSRAM___.
2024-04-12 21:43:37 -04:00
It's strange that it is recognized as having an external flash.
There is no external flash anywhere on the board.
![esp32s2-mini](https://github.com/nopnop2002/esp-idf-net-logging/assets/6020549/f36327cf-7e7b-4f1f-aa20-1eb16a0650ea)
# Enable PSRAM
In order to use PSRAM, you need to enable PSRAM by following the steps below.
2024-04-12 22:08:42 -04:00
Please note that this procedure is for ESP-IDF V5.2 and may change in the future.
2024-04-12 21:43:37 -04:00
![psram-1](https://github.com/nopnop2002/esp-idf-net-logging/assets/6020549/9feae820-609d-4955-94d0-2d7e4e5887ab)
![psram-2](https://github.com/nopnop2002/esp-idf-net-logging/assets/6020549/3b6c8c0a-380f-492e-b72a-74d408c73fb0)
![psram-3](https://github.com/nopnop2002/esp-idf-net-logging/assets/6020549/a72b8638-8de1-4c9e-b8e1-98562e2b515e)
![psram-4](https://github.com/nopnop2002/esp-idf-net-logging/assets/6020549/ae980ac1-470e-4b9d-bd2b-82ec4777f204)
![psram-5](https://github.com/nopnop2002/esp-idf-net-logging/assets/6020549/76a7a4f3-e231-4509-b997-c1d710ee7301)