Skip to content
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

Feature Request: Wemos S2 Pico support #1311

Open
1 task
ldrolez opened this issue Jan 1, 2024 · 8 comments
Open
1 task

Feature Request: Wemos S2 Pico support #1311

ldrolez opened this issue Jan 1, 2024 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@ldrolez
Copy link

ldrolez commented Jan 1, 2024

Platform

ESP32

Assembly

I did the assebly by myself

nRF24L01+ Module

nRF24L01+ plus

Antenna

circuit board

Power Stabilization

Elko (~100uF)

Connection picture

  • I will attach/upload an Image of my wiring

Version

0.8.36

Github Hash

6fb0535

Build & Flash Method

ESP Tools (flash)

Setup

4 inverters + mqtt + oled display (included on wemos s2 board)

Debug Serial Log output

No response

Error description

PINs for the Wemos PICO S2 are not supported in the web gui.
sch_s2_pico_v1.0.0.pdf

  • For NRF pins, IO 35-36-37 should be used but they can't be found in the GUI
  • The OLED display is connected to IO 8-9, but they are not available in the GUI. I edited the html in inspector mode to force the right pin values
@ldrolez ldrolez added the bug Something isn't working label Jan 1, 2024
@lumapu lumapu added enhancement New feature or request and removed bug Something isn't working labels Jan 1, 2024
@lumapu
Copy link
Owner

lumapu commented Jan 1, 2024

ist das ein ESP32 im RP2040 (Raspberry Pi Pico 2040) Format?
Kannst du hierfür einen PR einreichen?

@ldrolez
Copy link
Author

ldrolez commented Jan 2, 2024

ist das ein ESP32 im RP2040 (Raspberry Pi Pico 2040) Format?

50x23mm a bit larger

@ldrolez
Copy link
Author

ldrolez commented Jan 2, 2024

I found another bug with this board.
Ahoy boots only when I connect a serial console on USB! Never seen this on other boards.

So if you use a power supply, no boot. If you plug it into a PC, no boot, unless I start minicom (linux).

@ldrolez
Copy link
Author

ldrolez commented Jan 2, 2024

Seems to be related to serial.flush espressif/arduino-esp32#7554

@ldrolez
Copy link
Author

ldrolez commented Jan 2, 2024

Is there a way to disable the serial console in settings? that could be a quick fix

@ldrolez
Copy link
Author

ldrolez commented Mar 20, 2024

I've removed serial code and recompiled, and it boots without a computer

@stefan123t
Copy link
Collaborator

@ldrolez could you provide a PR with your changes to support ESP32-S2 out of the box,
ie. with some preprocessor macros and the necessary #ifdef soup to disable the serial code ?

@stefan123t stefan123t changed the title [Bug] Wemos S2 Pico support Feature Request: Wemos S2 Pico support Oct 29, 2024
@ldrolez
Copy link
Author

ldrolez commented Dec 15, 2024

This is my diff, don't have time to find which macros to use sorry

index 0bba14d..3e4c0eb 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -14,9 +14,9 @@ app::app() : ah::Scheduler {} {}
 
 //-----------------------------------------------------------------------------
 void app::setup() {
-    Serial.begin(115200);
-    while (!Serial)
-        yield();
+    //Serial.begin(115200);
+    //while (!Serial)
+    //    yield();
 
     resetSystem();
 
@@ -24,7 +24,7 @@ void app::setup() {
     mSettings.getPtr(mConfig);
     ah::Scheduler::setup(mConfig->inst.startWithoutTime);
     DPRINT(DBG_INFO, F("Settings valid: "));
-    DSERIAL.flush();
+    //DSERIAL.flush();
     if (mSettings.getValid())
         DBGPRINTLN(F("true"));
     else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants