-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
physical DMX-out on ESP32-C3 (found possible fix) #4239
Comments
Found a solution // Initialize Serial1 with the specified TX pin (2) and no RX
Serial1.begin(DMXSPEED, DMXFORMAT, -1, sendPin); This made the DMX start working. I can still see the led flash but the dmx is working on C3- Mini. Should this line be changed if someone wants to use a different pin? #ifdef WLED_ENABLE_DMX //reserve GPIO2 as hardcoded DMX pin
PinManager::allocatePin(2, true, PinOwner::DMX);
#endif this is found in wled.ccp line 416 |
@5t0n3r1pp3r not sure what you're doing .... ESPDMX.cpp is only for 8266. Whatever you change there won't affect your -C3 board.
For esp32 boards, we use the sparkFun DMX driver: Unfortunately the sparkFun driver needs serial2 which is not availeable on -C3 or -S2. WLED/wled00/src/dependencies/dmx/SparkFunDMX.cpp Lines 44 to 54 in 1ff667b
As consequence of what I explained, currently you can't have DMX serial output from WLED on the -C3 board, sorry. Same for -S2. However -S3 mini or -S3 zero might work, if you are looking for a small board. |
What happened?
When compiling any version of wled from source(vscode Dev Container)
The DMX pin does not allocate and flickers an led but no DMX is sent reliably. No Light turns on from DMX
I tested the circuit and confirmed the rs485 chip works fine on nodeMCU.
To Reproduce Bug
Compile any 0.15 WLED with DMX on for ESP32-C3-Mini-1 and connect a MAX485 circuit to pin 2.
Expected Behavior
The board should control and send proper DMX on the selected PIN
Install Method
Self-Compiled
What version of WLED?
WLED 0.15.0-b6
Which microcontroller/board are you seeing the problem on?
ESP32-C3
Relevant log/trace output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: