Code Monkey home page Code Monkey logo

esp-mqtt-dmx's People

Contributors

s1lvester avatar tabascoeye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp-mqtt-dmx's Issues

ESP RESETS AFTER A WHILE

HI i have an esp8266 running your code act as an mqttdimmer to my dmx light dimmer , the esp and code works but after a while it resets and the lights turn off and i have to put the value again , this can happen from 10 minutes to hours , why is this happening does anyone else run in the same situation ?
thanks for your help
chris

help with mqtt commands

hi i am new with this i have compiled the code and uploaded to an arduino .
My question is how to format the commands say i have nodered and i want to dim the 1 channel how am i going to do that i have the mqqt node at dmx/push but after that ? the parameter is the topic ?
also can you please help me and also how to use the websocket server ?
thanks in advace
chris giaitzoglou

MQTT state

let's push the current state of the esp to MQTT to show on rzl map.

Error after Sending Command

Hallo, dieses Projekt wäre genau das was ich seit längerem gesucht habe um einen DMX Dimmer via MQTT anzusteuern.

Wenn ich das DMX Kabel verbunden habe und über MQTT einen Befehl absende kommt folgende Fehlermeldung und der ESP hängt sich auf.

20:55:35.887 -> Attempting MQTT connection...connected 20:55:36.348 -> Message arrived [/dmx/push] 20:56:51.552 -> Message arrived [/dmx/push] setchannel 100 50 20:56:58.970 -> 20:56:58.970 -> ets Jan 8 2013,rst cause:4, boot mode:(3,7) 20:56:58.970 -> 20:56:58.970 -> wdt reset 20:56:58.970 -> load 0x4010f000, len 1384, room 16 20:56:58.971 -> tail 8 20:56:58.971 -> chksum 0x2d 20:56:58.971 -> csum 0x2d 20:56:58.971 -> v951aeffa 20:56:58.971 -> ~ld 20:56:59.037 ->

Es kommt dann keine Verbindung mit dem WLAN mehr zustande bis ich einen manuellen reset durchführe.
Wenn das RX Kabel getrennt ist läuft er ohne Fehlermeldung weiter.

In sämtlichen Fällen reagiert jedoch der DMX Dimmer nicht auf die MQTT Commands. Es blinkt zwar die DMX LED darauf was bedeutet das signale ankommen, mehr aber nicht.

Wäre für Hilfe sehr dankbar.

luminance is not linear in reality

The luminance accepts values from 0-255, but the percieved "brightness" isn't linear, so we should compensate for that.

e.g. using a smaller amount of "brightness levels" which map to different values in the 0-255 range.
Then the "fading" alogrithm should increase its steps via this replacement matrix instead of only increasing/decreasing the dmx values by 1.

The luminance/brightness curve has to be defined but could also be ballparked by checking how far apart different percieved brightness levels are.

I would guess that in the lower value areas, the difference between each "brightness level" is smaller than in higher values.

e.g.:
"brightness" 1 may be value 5
"brightness" 2 may be value 10
but
"brightness" 9 may be value 200
"brightness" 10 may be value 255

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.