DMX OUT on EPS32

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
keehee
Normal user
Posts: 10
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: 3954
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
Normal user
Posts: 10
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: 3954
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: 3954
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: 3954
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)

keehee
Normal user
Posts: 10
Joined: 18 Sep 2024, 12:41

Re: DMX OUT on EPS32

#7 Post by keehee » 21 Oct 2024, 16:26

Ath wrote: 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?
thank you so much Ath ! i will dowload and test report to you here .

keehee
Normal user
Posts: 10
Joined: 18 Sep 2024, 12:41

Re: DMX OUT on EPS32

#8 Post by keehee » 21 Oct 2024, 17:58

Ath wrote: 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?
I download the Bin-ESP32-collection_A_ESP32_4M316k_ETH-20240929_PR_5126_11095308579 flash in the esp32 have error

[23:58:15]rst:0x3 (SW_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
[23:58:15]configsip: 0, SPIWP:0xee
[23:58:15]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[23:58:15]mode:DIO, clock div:2
[23:58:15]load:0x3fff0030,len:1184
[23:58:15]load:0x40078000,len:13132
[23:58:15]load:0x40080400,len:3036
[23:58:15]entry 0x400805e4

TD-er
Core team member
Posts: 9283
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DMX OUT on EPS32

#9 Post by TD-er » 21 Oct 2024, 19:06

What exact board do you have?
Can you read the inscription on the ESP32 chip?
Which file did you flash and how?
For example file with "factory" in the name to be used when flashing via serial and the one without "factory" in the name for flashing via WiFi.

keehee
Normal user
Posts: 10
Joined: 18 Sep 2024, 12:41

Re: DMX OUT on EPS32

#10 Post by keehee » 22 Oct 2024, 04:04

TD-er wrote: 21 Oct 2024, 19:06 What exact board do you have?
Can you read the inscription on the ESP32 chip?
Which file did you flash and how?
For example file with "factory" in the name to be used when flashing via serial and the one without "factory" in the name for flashing via WiFi.
i can flash the Bin-ESP32-normal_ESP32_4M316k_ETH-20240929_PR_5126_11095308579 but its not incloud the P054
cant flash this Bin-ESP32-collection_A_ESP32_4M316k_ETH-20240929_PR_5126_11095308579 from your link .

i used

Chip Info:
- Chip Family: ESP32
- Chip Model: ESP32-D0WDQ5-V3 (revision 3)
- Number of Cores: 2
- Max CPU Frequency: 240MHz
- Has Bluetooth: YES
- Has Embedded Flash: NO
- Has Factory-Calibrated ADC: YES
- MAC Address: 24:DC:C3:44:29:04

keehee
Normal user
Posts: 10
Joined: 18 Sep 2024, 12:41

Re: DMX OUT on EPS32

#11 Post by keehee » 22 Oct 2024, 04:37

Ath wrote: 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?
OH ! it works ,i use a new flash tools . the firmware is work ! do you have this soure code? i want custom it

thank you so much ! im so happy for your help !

TD-er
Core team member
Posts: 9283
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DMX OUT on EPS32

#12 Post by TD-er » 22 Oct 2024, 08:29

keehee wrote: 22 Oct 2024, 04:37 [...]

OH ! it works ,i use a new flash tools . the firmware is work ! do you have this soure code? i want custom it
[...]
It is this pull request.
https://github.com/letscontrolit/ESPEasy/pull/5126

If you want to make changes to it, maybe best to also discuss it with Ath, as he could maybe help including it in the same PR as he is also working on it.

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

Re: DMX OUT on EPS32

#13 Post by Ath » 22 Oct 2024, 20:23

keehee wrote: 22 Oct 2024, 04:37 i want custom it
What kind of customization are you looking for?

NB: I've done a rebase, latest build available from here
/Ton (PayPal.me)

keehee
Normal user
Posts: 10
Joined: 18 Sep 2024, 12:41

Re: DMX OUT on EPS32

#14 Post by keehee » 24 Oct 2024, 05:21

Ath wrote: 22 Oct 2024, 20:23
keehee wrote: 22 Oct 2024, 04:37 i want custom it
What kind of customization are you looking for?

NB: I've done a rebase, latest build available from here
i want to custom something in the custom.h .
thank you, Ath .

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

Re: DMX OUT on EPS32

#15 Post by Ath » 24 Oct 2024, 08:17

keehee wrote: 24 Oct 2024, 05:21 i want to custom something in the custom.h .
The process of building a Custom ESPEasy is documented here.

If you want to avoid all those steps, you can obtain an ESP32 model (Classic, S3, C6) with 16MB or (a little bit rare) 8MB of Flash memory, so you can install a MAX build that has all plugins and features included.
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest