-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
DMX + MQTT with Sonoff Basic + MAX-485 + GPIO #4823
Comments
Hi, Please, search in issues. This has been addressed before. Thanks. |
@ascillato, referring to #3280: This commit seems lost in void. I cannot find a way to realise my requested feature. I'm not searching for a real-time DMX (I do not have a club in my apartment :) ). I simply would like to send a DMX "change color" via MQTT. Do you have any idea on the setup? |
If you want just that (MQTT->DMX), why it is not useful for you the https://github.com/munichmakerlab/light-duino What extra feature from Tasmota you also need with that? |
Thank you for your answer. I still believe it's not a duplicate issue. I was wondering of using the 250ms task in the main loop, but then I'm missing the MQTT linkage. Do you have a suggestion/advices for implementation? |
For adding this, it has to be done as a driver as the rest of sensors and protocols that Tasmota supports. Let's see if there is someone interested on writing a non-blocking driver to use a light version of DMX on Tasmota. The main issue, as explained in the referenced issues, is that will not be possible to make a full version with real time effects and so on. Just couple of commands per second. That is why, for real time or demanding tasks it is better to use a dedicated specific hardware/software for that. DMX has excelent devices to properly manage their protocol. |
Agree: no real-time requirement on the DMX. I hope somebody with the right knowledge and time will want to help on this. For my curiosity, is there any documentation I can read on the Tasmota driver building? Thank you |
Yes! In the wiki at https://github.com/arendst/Sonoff-Tasmota/wiki/Sensor-API |
And then you can check any of the drivers files already in Tasmota as examples. Remember that drivers have to be non-blocking routines. |
Thx for your help! I'll try to improvise something 👍 |
Remember that you can ask for specific help here and in the Tasmota Support Chat. Any of those channels are valid for this. |
Hi, Closing issue as it is not going to be added soon. Added the label Feature Request (hold over) for future reference. Thanks everyone for sharing their ideas 👍 |
Would a pull-request be welcome? @ascillato DMX is a very primitive protocol and enables a lot of lighting extensions. I don't expect this feature to consume a lot of program space, especially if one abuses existing i2c. Why this would be awesome in Tasmota?
|
Hi, Pull Request are always welcome. :) Remember to change as few files as possible. If you can put all together in just one driver file would be better. You can check the API that Tasmota uses for internal communications. Also, add a compiling-time key in my_userconfig.h to add your new driver. Remember to let it disabled as default. If you have any question regarding the code, you can find us in the Tasmota support chat. Anyway, we can check the code when you make the PR. Thanks 👍 |
Would be awesome! I can offer a (very simple) testing facility as well: a
sonoff basic, a max485 based module, a light with DMX IN/OUT, a lot of time
and happiness.
I can help with documentation as well if needed.
Thank you all!
…On Tue, Mar 26, 2019, 00:35 Adrian Scillato ***@***.***> wrote:
Hi,
Pull Request are always welcome. :)
Remember to change as few files as possible. If you can put all together
in just one driver file would be better.
You can check the API that Tasmota uses for internal communications.
Also, add a compiling-time key in my_userconfig.h to add your new driver.
Remember to let it disabled as default.
If you have any question regarding the code, you can find us in the
Tasmota support chat. Anyway, we can check the code when you make the PR.
Thanks 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4823 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AsPT0EESXayGUcyBZy5zAR3kIMbActGiks5vaV1cgaJpZM4Zuoa4>
.
|
bonjour, je cherche depuis un certain temps une façon de contrôler mes lumières DMX via wifi, j'ai des Sonoff, des carte MAX-485 (puce RS485) et des prises DMX, comment puis-je faire pour les contrôler ? Avez vous un schéma électronique, et un programme ? Merci, bonne journée. |
Hi Arnaud,
If I read correctly, you're searching for a schematic? Check the posts
above, since some folks in Munich implemented DMX on a ESP + MAX device.
I did not follow up, since it seems that DMX takes too much resources on a
Sonoff and requires a scheduler different from the one implemented in
Tasmota.
Have a great day
…On Wed, Apr 14, 2021, 17:16 arnaud-aub ***@***.***> wrote:
bonjour, je cherche depuis un certain temps une façon de contrôler mes
lumières DMX via wifi, j'ai des Sonoff, des carte MAX-485 (puce RS485) et
des prises DMX, comment puis-je faire pour les contrôler ? Avez vous un
schéma électronique, et un programme ? Merci, bonne journée.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4823 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALB5HUDDUXJXI6WEJ22EDWLTIWWVBANCNFSM4GN2Q24A>
.
|
Have you look for this feature in other issues and in the wiki?
yes
Is your feature request related to a problem? Please describe.
Control DMX capable light (see lightmaXX LED NANO PAR) via MQTT on a Sonoff Basic (and OpenHab in my setup).
Describe the solution you'd like
Control via smartphone like a low-cost Philips HUE (with OpenHab).
Describe alternatives you've considered
Using Arduino for DMX and looking later at this project: http://log.munichmakerlab.de/post/136975240870/our-new-mqtt-dmx-controller-based-on-an
Dear all,
I'm trying to understand how to modify @arendst code to implement DMX in my Sonoff network.
I would like to use a Sonoff basic to turn on/off a light, which is capable of DMX. With Tasmota I'm able to use the relay of the Sonoff basic via MQTT. So far so good.
When in ON state, I'm then wondering if I can use one of the GPIO (e.g. GPIO 4) to spit out continuously DMX commands to a MAX-485 (see https://playground.arduino.cc/DMX/DMXShield). What about adding a xdrv in the /sonoff/ and the libraries of munichmakerlab in /lib/ (see http://log.munichmakerlab.de/post/136975240870/our-new-mqtt-dmx-controller-based-on-an)?
Any suggestion? @arendst would it be possible?
Thank you all. Awesome work here!
The text was updated successfully, but these errors were encountered: