PDA

View Full Version : Completed project: MIDI to DMX Interface



nlecaude
10-08-2013, 07:55 PM
Just finished this project, quite happy with the result. It's a MIDI to DMX Interface based on Teensy 3

You can use MIDI Notes, Control Change and Poly Pressure message to control DMX channels.
If you need the full resolution (0-255) of DMX you can also send specially formatted sysex messages.

Nice thing is that you can plug it into pretty much anything: computers, iPad, Android tablet etc.

More info here:

https://github.com/natcl/dmx_midi

http://farm8.staticflickr.com/7452/10159755314_773a3286d3_n.jpg

Joyfultalk
06-06-2018, 11:54 AM
I haven't been able to get the code to load onto the teensy without error. Any tips





QUOTE=nlecaude;36189]Just finished this project, quite happy with the result. It's a MIDI to DMX Interface based on Teensy 3

You can use MIDI Notes, Control Change and Poly Pressure message to control DMX channels.
If you need the full resolution (0-255) of DMX you can also send specially formatted sysex messages.

Nice thing is that you can plug it into pretty much anything: computers, iPad, Android tablet etc.

More info here:

https://github.com/natcl/dmx_midi

http://farm8.staticflickr.com/7452/10159755314_773a3286d3_n.jpg[/QUOTE]

nlecaude
06-06-2018, 12:29 PM
What errors are you getting?

Joyfultalk
06-06-2018, 11:58 PM
What errors are you getting?

I am pretty new to arduino. I copied it from the teensy_buffered.ino and pasted it as a new sketch and verified it and this is the error it gave me.
Error compiling for board Teensy LC

oddson
06-07-2018, 12:58 AM
usbMIDI.getType() == 7

First issue... the type values were changed to match MIDI library but it mostly impacts sysex read.


https://www.pjrc.com/teensy/td_midi.html
Receiving Messages with Read & Query Functions section

...but that would still compile and so while a problem, it is not the source of the compile error.

Is your Teensy an LC?

Are you choosing USB MIDI as the USB Type when you compile?


If you don't know what that means that's the likely cause of the compile error.

...edit: Timer library is not part of Teensyduino standard distribution.

oddson
06-07-2018, 01:20 AM
Looks like the Timer is just used to flash the LED...

comment out the three places t occurs and it will compile for LC MIDI.

The sysex part won't work until you change the right-hand-side of the conditional from '7' to 'usbMIDI.SystemExclusive'

If you want the flashing LED I can help you with replacement code.

oddson
06-07-2018, 01:26 AM
What errors are you getting?
Sorry.. didn't notice you're the OP.

Maybe you'd like to update.

P.s . What's with the first byte of sysex?

What are you expecting to send this?

Sorry if the answers are in your github but I was just trying to understand new post

nlecaude
06-07-2018, 01:30 AM
Thanks for the troubleshooting, I'll update the code soon!

nlecaude
06-07-2018, 01:36 AM
The first byte of sysex is the manufacturer ID, I choose 127 here. The sysex in my case is sent by Max/MSP or Lemur template.

happywheelssaz
06-07-2018, 02:17 AM
Well, this is my first visit to your blog! Your blog provided us valuable information .You have done a marvelous job
- happy wheels (http://happywheelsaz.com/)

nlecaude
06-07-2018, 02:42 AM
I just updated the code to include the Timer library. Compiles fine here for Teensy LC with USB midi.

oddson
06-07-2018, 02:59 AM
you still need to fix this: usbMIDI.getType() == 7

Sb: usbMIDI.getType() == usbMIDI.SystemExclusive

Niht
10-12-2018, 10:46 PM
hello to all, compile the code for the LC and the LED flashes when it receives MIDI data but I have no answer in the lighting with which I do the tests. someone has a video of the operation or configuration of the project so that it works, the circuit of the DMX with the SN75176 is well probe it with another application.
Thanks for the help you give me.

By the way, the project was built to be used with ableton live and to control lighting