Few years ago I built the project on a custom PCB with a Lolin D1 mini ESP8266 board & DRV8825 controlboard.
The ESP8266 support was removed from the project, but Lolin came out a Lolin D1 Mini pin-compatible ESP32-S2 breakout board, called the Lolin S2-Mini. S2 Mini
I didn't want to throw out my PCBs and enclosure, so I decided to upgrade my controller with the S2-Mini.
There were a few pitfalls, but at the end it works.
Here are my findings, maybe it will help others:
1. Controller not starting:
The ESP32-S has a native USB port, and the controller didn't start until I opened the serial monitor in Arduino IDE. This while cycle had to be commented out in myfp2esp32F.ino to make it work with the S2:
// while ( !Serial )// {// ; // wait for serial port to start// }
2. Motor not moving & Board options
Maybe my DRV8825 board had some hiccups, but I couldn't get the motor moving with the CUSTOMBRD & 99.json tweaking. It worked after I defined the DRVBRD PRO2ESP32DRV8825 instead and modified, 44.jsn according to my pins.
3. I2C pins:
Needed to modify in Controller_defines.h according to the D1 Mini -> S2 Mini pinout:
// I2C
#defineI2CDATAPIN33
#defineI2CCLKPIN35
4. ESP32 Sketch data downloader:
The manual refers to an old version of the ESP32 sketch data downloader, which doesn't support the S2. This is the recent one, which supports the S2 chip: Arduino ESP32 filesystem uploader (SPIFFS has to be selected)
Other:
The S2-Mini has a double row of pins for extra GPIOs, so software selection of stepside would be also possible with 3 Dupont-wires on the existing PCB, but I am happy with the jumper selection, because it has to be only set once anyway.
My PCB is a minimal D1 mini & DRV8825 board with temp sensor and LCD options.
Pins:
Hello,
Few years ago I built the project on a custom PCB with a Lolin D1 mini ESP8266 board & DRV8825 controlboard.
The ESP8266 support was removed from the project, but Lolin came out a Lolin D1 Mini pin-compatible ESP32-S2 breakout board, called the Lolin S2-Mini.
S2 Mini
I didn't want to throw out my PCBs and enclosure, so I decided to upgrade my controller with the S2-Mini.
There were a few pitfalls, but at the end it works.
Here are my findings, maybe it will help others:
1. Controller not starting:
The ESP32-S has a native USB port, and the controller didn't start until I opened the serial monitor in Arduino IDE. This while cycle had to be commented out in myfp2esp32F.ino to make it work with the S2:
2. Motor not moving & Board options
Maybe my DRV8825 board had some hiccups, but I couldn't get the motor moving with the CUSTOMBRD & 99.json tweaking. It worked after I defined the DRVBRD PRO2ESP32DRV8825 instead and modified, 44.jsn according to my pins.
3. I2C pins:
Needed to modify in Controller_defines.h according to the D1 Mini -> S2 Mini pinout:
4. ESP32 Sketch data downloader:
The manual refers to an old version of the ESP32 sketch data downloader, which doesn't support the S2. This is the recent one, which supports the S2 chip: Arduino ESP32 filesystem uploader (SPIFFS has to be selected)
Other:
The S2-Mini has a double row of pins for extra GPIOs, so software selection of stepside would be also possible with 3 Dupont-wires on the existing PCB, but I am happy with the jumper selection, because it has to be only set once anyway.
My PCB is a minimal D1 mini & DRV8825 board with temp sensor and LCD options.
Pins:
Confirming that support for the Board is now in the next release.
// ESP32 Boards
Last edit: brownrb 2023-07-17