Giter Site home page Giter Site logo

flashing about lxsamd21dmx HOT 2 OPEN

bepitama avatar bepitama commented on July 1, 2024
flashing

from lxsamd21dmx.

Comments (2)

claudeheintz avatar claudeheintz commented on July 1, 2024

There are a number of possibilities for why this is happening.

One is that something in your sketch is taking too much time and the DMX driver is not able to fully keep up reading the incoming serial stream. You can you the example DMXInputTest which is very simple and should eliminate this possibility.

Another is that the DMX input needs termination. A 120 ohm resistor between the A and B inputs to the MAX485 should clean up reflections on the DMX serial input.

DMX can send 24-512 slots of data. The marker between successive packets is called a break. The DMX driver uses the SAMD21's hardware frame error to catch the break when it is received. It is possible that the controller you are using for input is sending less than the full 512 slots of data and the break detect is not working with its timing. There is a wide range of acceptable breaks in DMX and even so, not every controller outputs fully compatible DMX. To evaluate this possibility, it is necessary to use a multi-channel logic probe and look at the timing of the DMX signal against a pin that is turned on and off when the breakReceived() function is called. breakReceived() should be called around the time the break in the DMX signal ends and the "mark after break" starts. If breakReceived() is not being called either at all or not consistently in the same place in the DMX timing, then that is the problem. Another simpler way to check this might be to use a different DMX source and see if that makes a difference.

from lxsamd21dmx.

bepitama avatar bepitama commented on July 1, 2024

Thanks for the reply. I have too one my own work on Github even if I'm not at your level yet.
Previously I tried with an Arduino Nano using the DMXSerrial library and everything works. I'm using the DMXInputTest example.
The terminator was not there but even after putting the 120 ohm resistor nothing changes.
I tried both with a DMX controller and QLight + with KMTronic USB>DMX512 card and I get the same problem.
I would like to use a card with SAMD21 to simulate 10 bit PWM, with high power LEDs, both White and RGB and RGBW, the behavior of incandescent lamps without seeing the shots it makes with just 255 levels.
I'm using translator because I can't write in English so forgive me if you don't understand.
Thank you.

Giuseppe

from lxsamd21dmx.

Related Issues (8)

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.