Feather M4 DMX

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
afox
 
Posts: 13
Joined: Sat Aug 30, 2014 5:31 am

Feather M4 DMX

Post by afox »

Hi all!

I am trying to send DMX packages via an Feather M4, and a custom-made PCB that drives a MAX485 IC.
So far I am using UART with 250000 baud and SERIAL_8N2.
After slightly modifying the Arduino Variation File to use a dedicated SERCOM handler I got some good looking DMX packages.
Unfortunately, I need to adjust the baud for the BREAK frame of a package.
Currently, no DMX light can process my sent DMX packages because of that problem.
I am debugging the signal via a scope to see the timings and also I am able to analyze correct signal sent from a USB DMX interface.

I am setting the baud rate for the BREAK frame as following:
SERCOM5->USART.BAUD.FRAC.FP
SERCOM5->USART.BAUD.FRAC.BAUD

But i am stuck with calculating the right values here...


Thanks in advance!
Regards,
Alex

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Feather M4 DMX

Post by adafruit_support_mike »

I'm afraid we don't have any experience with DMX timing. Your best bet would be to check the documentation for the lights you're using and see if you can find a timing schedule.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”