Comments (2)
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.
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)
- What pin on the MKR1000 HOT 1
- How to use this library with the CTC-DRA-10-R2 DMX shield HOT 8
- got_DMX is not zeroed after DMX signal disconnection HOT 2
- RDM system lockup
- DMX Output & Encoder Cause Crash HOT 2
- multiple definition of `SERCOM4_Handler' HOT 6
- LXSAMD21DMX with Adafruit_NeoPixel issue on Seeed XIAO HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lxsamd21dmx.