-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32S2 /S3 #2801
Comments
If you're planning to make a custom hardware, can you contact me on my email? (see readme.md) Thanks, jomjol |
I am currently trying to get the project to run on a Freenove ESP32-S3-WROOM because I also need more GPIOs. I need these to send the data via a LoRaWan module. |
Any chance that the changes you made for the S3 could be upstreamed? Those S3 boards are pretty cheap on Aliexpress (~$15). |
Currently not plans to do so (and no resources :-) ) |
@argetlam-coder: I also did some tests with an ESP32S3 board which I got in hand recently (https://www.seeedstudio.com/XIAO-ESP32S3-Sense-p-5639.html). Like you described only a few mods are needed to get basic operation. The board is nicely compact but it's running quite hot and then WIFI is getting kind of slower with some noticeable hickups. I tried to reduce CPU speed to 160Mhz which makes it more robust, but still I'm not fully convinced. Comparing just the pure processing speed it's operating way quicker (Processing time of one of the demo images @240Mhz: 6-8s, @160Mz: 9-11s, ESP32CAM @ 160Mhz: 20-21s) |
Can you tell me what exactly needs to be changed to make ESP32-S3 work? |
I have published my changes in this branch. These are all the changes that are necessary for the code to be compiled for the ESP32-S3. In addition, the pinout must be adapted to the corresponding board. |
The processing time for me is also around 9-11s. My board seems to stay relatively cool and yet the Weinterface is sometimes very slow. However, I then see some error messages from the web server in the console. I'll have to take a closer look at this problem. |
@argetlam-coder I'm trying to run your branch but i think i'm missing the correct board definition for platformio? |
PlatformIO does not have a board definition for the Freenove board. I found a board definition on the internet and adapted it slightly. Here is the file: freenove_esp32_s3_wroom.json In order to run AI-On-The-Edge on the Freenove board, the pin assignment in the code must be adapted. Take a look at this branch of mine. It contains the changes that are necessary for the camera, the SD card and the PSRAM to work on the Freenove board. However, the internal LED does not work automatically. For this to work, the
|
@argetlam-coder I'm running into the following issues when running your esp32-s3 branch on my Seeedstudio ESP32S3.
So I'm thinking I need to apply more changes to make sure the PSRAM works fine. Do you have any points for me on how to be debug what is going wrong? Thanks! |
Unfortunately a lot of ESP32s are shipped with a defect PSRAM. You will find a lot of threads with this issue. Do you have another ESP32 to try? |
Have you configured the pins of your board in defines.h? The pinout of your board is different from mine. I could not find out which pins the PSRAM uses on your board. Maybe these are pins that are used for the SD card or the camera on my board. However, the camera has not worked for me since I merged the last changes from the upstream project into my branch. There is a new place in the code where a GPIO pin is hardcoded (which is used by the camera in my case). However, I don't yet know exactly whether this is the cause. |
I forgot to mention this part of the code. This is where the pins for the SD card reader are defined. At the moment there is only one exception for my board. The ESP32-Cam boards use the default configuration. |
Thanks, I did adjust the pins (turns out it's a bit difficult to find the pinout for this board, but using the sample projects and schematics I think I got there). I also adjusted the platformio config and switched to the seeed_xiao_esp32s3 board definition. I still see the same issue, though. It happens immediately after rebooting, so I'm questioning if the PSRAM indeed is broken as @friedpa suggested, or if something else needs to be adjusted as well. I believe it happens on or before the |
I also experimented a little with the settings in menuconfig on my board. Check whether the option |
Wow, thanks so much for that tip! My |
Hi @mlinzner, would you mind sharing your binary? I would love to give this board a try. Thanks! |
I used the the I could not get the SD card to work and I'm not sure if it is the type of SD card, size of the card (I only found a 16GB raspberry pi card, which should work fine with the board, but you never know) or still some faulty pin config. |
If you're interested to sneak in I added support of Seeedstudio XIAO ESP32S3 Sense to the latest develop version of my personal repository (https://github.com/Slider0007/AI-on-the-edge-device/tree/develop) which is a forked version of this repo. The latest develop version can also be dowloaded pre-compiled from here: https://github.com/Slider0007/AI-on-the-edge-device/actions/runs/9756504174. Note: Recommendation hardware-wise: This board is running nicely without any issues for a some months now... |
Tell me what I'm doing wrong. 😿
BTW, after FW update, device connects - disconnects from pc. With stock FW - does not disconnect.
|
You have to flash the bootloader to address 0x0. This is different to vanilla ESP32. https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/api-guides/bootloader.html |
Thank you! Works! |
Even after changing the SD card config, the LED does not turn ON, I am using a similar card to Free Freenove, any idea how to change the external led option to pin 48 ( ws2812 led pin in my case)? |
I have just tested this again with the latest changes that I recently merged from the upstream project into my branch. The WS2812 LED works for me. However, my board has an internal WS2812 LED. I have never tried it with an external one. But it should work in the same way. You should just change the type to
It is also best to check whether the section header |
Issue
Hi!
Is it possible to run the project on an ESP32S2 /S3 ? We want to design a custom hardware for it, and we need a few extra GPIOs. We are thinking about S2 but I couldn't find any information on whether it would run. Does the code use the second core anywhere? And what about S3R8? Is the embedded PSRAM compatible?
The text was updated successfully, but these errors were encountered: