DMX OUT on EPS32

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
keehee
New user
Posts: 2
Joined: 18 Sep 2024, 12:41

DMX OUT on EPS32

#1 Post by keehee » 18 Sep 2024, 12:49

hello ,
im new begin in espeasy. its good . but i have trobule in dmx plugin. i didnt much info about this .

Anyone know how to dmx out on eps32 ? why its not working on my board . i tried diffent boards. but same result . if i use Wled firmware , it can worked . do you have sample for me know how to do ?

thank you~

User avatar
Ath
Normal user
Posts: 3865
Joined: 10 Jun 2018, 12:06
Location: NL

Re: DMX OUT on EPS32

#2 Post by Ath » 18 Sep 2024, 13:16

Hm, documentation for the DMX plugin (P054) is non-existent, unfortunately.

But there is some documentation in the source, for how to wire the module, and what GPIO to use, over here: https://github.com/letscontrolit/ESPEas ... DMX512.ino
Commands can be sent from the Tools page, via http commands from a browser or url-capable tool like curl/wget or from Rules.

Again unfortunately, the GPIO pin on ESP side is hardcoded in the source to GPIO 2 when the plugin is initialized, that's something to fix for ESP32, as most likely, that's a requirement on ESP8266 only, because of the modulation technique used.

I have not used this plugin myself, so have no clue if it will work on ESP32, but the used code doesn't seem to be very complicated, so I expect it will work as intended, when DMX is connected to Serial 1 (don't have the GPIO pins for that available where I am now).
/Ton (PayPal.me)

keehee
New user
Posts: 2
Joined: 18 Sep 2024, 12:41

Re: DMX OUT on EPS32

#3 Post by keehee » 19 Sep 2024, 09:25

Ath wrote: 18 Sep 2024, 13:16 Hm, documentation for the DMX plugin (P054) is non-existent, unfortunately.

But there is some documentation in the source, for how to wire the module, and what GPIO to use, over here: https://github.com/letscontrolit/ESPEas ... DMX512.ino
Commands can be sent from the Tools page, via http commands from a browser or url-capable tool like curl/wget or from Rules.

Again unfortunately, the GPIO pin on ESP side is hardcoded in the source to GPIO 2 when the plugin is initialized, that's something to fix for ESP32, as most likely, that's a requirement on ESP8266 only, because of the modulation technique used.

I have not used this plugin myself, so have no clue if it will work on ESP32, but the used code doesn't seem to be very complicated, so I expect it will work as intended, when DMX is connected to Serial 1 (don't have the GPIO pins for that available where I am now).
thank you for your relpy , Ath !

i tried followed the P054_DMX512.ino before,its not working .

User avatar
Ath
Normal user
Posts: 3865
Joined: 10 Jun 2018, 12:06
Location: NL

Re: DMX OUT on EPS32

#4 Post by Ath » 20 Sep 2024, 23:15

I've created PR #5126 to restrict the fixed GPIO configuration for ESP8266 only, and allow any GPIO on ESP32
You can download a test-build form this GH Actions run but you'll need a (free) Github Account and be logged in to be able to download from there.

You can report your findings here or in the GH Pull request.

The used Serial-1 GPIO pins on ESP32 are GPIO 22 for TX1 and GPIO 26 for RX1 on an ESP32. For other ESP32 models this may be different, but not all ESP32 models have Serial1 defined, so that might need more changes.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3865
Joined: 10 Jun 2018, 12:06
Location: NL

Re: DMX OUT on EPS32

#5 Post by Ath » 21 Sep 2024, 21:10

I've done some improvements (that's how I look at it :D), and fixed an observation by TD-er.
The improvements are about the ability to select any Serial port and GPIO configuration for ESP32, with the limitation that the Serial port must be a serial port on the ESP, not I2C or CDC, as we can't poke the GPIO pins there.

The build is available from this GH Actions run (GH Account needed to download, as before). Please inform us about your findings.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3865
Joined: 10 Jun 2018, 12:06
Location: NL

Re: DMX OUT on EPS32

#6 Post by Ath » 29 Sep 2024, 21:28

@keehee I've done some more fixes and improvements, and added documentation for the DMX512 plugin. A build is planned in this GH Actions run (some more builds started at nearly the same time, so will be somewhat delayed).

Can you please test and report your findings?
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest