Giter Site home page Giter Site logo

Comments (8)

claudeheintz avatar claudeheintz commented on July 18, 2024

Hi,

Understanding how to configure the various serial communication (sercom) possibilities on the SAMD21 is a little confusing at first. Fortunately, Adafruit has an excellent article https://learn.adafruit.com/using-atsamd21-sercom-to-add-more-spi-i2c-serial-ports/overview that explains how it works pretty well. (I wish I had this article when I was originally writing this library instead of having to work it out for myself...)

I updated the library header file with a section of alternate macros that should allow it to work with pins 3 and 4 on an Arduino Zero. Unfortunately, I don't have an Arduino Zero to test. All I can do is verify that the code compiles correctly.

There are 9 #define macros that control which sercom, pins and pads the library uses.

The way LXSAMD21DMX.h works now is that if you uncomment line 506, you will switch to using sercom2 and pins 3 and 4.

I hope this helps. Please let me know if it works for you.

-Claude Heintz

from lxsamd21dmx.

antoniomechas avatar antoniomechas commented on July 18, 2024

Hello Claude,
I downloaded your changes and now it is working like a charm, many thanks for your kick response.
I'm using the shiled just to receive DMX, and so far it is working perfectly with a RobotDyn M0.
Now I need to add the FastLED library and see if I can control a LED strip from DMX (I read that fastLED needs to disable interrupts, so maybe it will cause some drops in the DMX data)
Thanks!
Antonio.

from lxsamd21dmx.

claudeheintz avatar claudeheintz commented on July 18, 2024

I'm glad its working now.

from lxsamd21dmx.

maddice avatar maddice commented on July 18, 2024

Hello Claude and Antonio

I have been working with the Arduino Leonardo and Uno board and have had success with FastLed library standalone. I have a DMX Shield that I have been trying to use and have not had success using an Enttec USB PRO with QLCPlus controlling the board pair. I have WS2812B LED strips that I plan to use for a theater show.

I am new to Arduino, I've looked at the various libraries out there but cannot decipher what I am setting up incorrectly. Any information or assistance would be greatly appreciated.

Thank you
Mike Addice

from lxsamd21dmx.

antoniomechas avatar antoniomechas commented on July 18, 2024

from lxsamd21dmx.

maddice avatar maddice commented on July 18, 2024

Thank you for the information. Did you use a standard DMX shield or did you build one? I also found this site - http://lights4music.com/instructions.html, shows a DIY board.
Were you able to use the FASTLED library over DMX. There are sequences that I need to use for my project.

from lxsamd21dmx.

rafic98 avatar rafic98 commented on July 18, 2024

hello, I need help, i dont know how to write a code so i can let a light with address 2 turn on, how is that possible, i am using arduino uno and CTC-DRA-10-R2 shield.

from lxsamd21dmx.

fostiras avatar fostiras commented on July 18, 2024

hello, I need help, i dont know how to write a code so i can let a light with address 2 turn on, how is that possible, i am using arduino uno and CTC-DRA-10-R2 shield.

This Library is for a SAMD21 chip which is found on an Arduino Zero. You have to use a DMX library for Arduino Uno like the mathertel /DMXSerial library. Then simply load a receiver example : https://github.com/mathertel/DMXSerial/blob/master/examples/DmxSerialRecv/DmxSerialRecv.ino . The example scetch uses 3 channels for a RGB light, you can just use one channel , the Green one at address 2.

from lxsamd21dmx.

Related Issues (7)

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.