DMX netduino
#1
Posted 08 August 2010 - 10:24 PM
#2
Posted 09 August 2010 - 12:16 AM
I've played around with microcontollers here and there, but now I have a project that I must work out. I'm trying to figure out the best way to tackle this new project. What my goal is to control a high powered LED and stepper motor using DMX-512. I'm not sure how to approach this but I could use some help getting pointed in the right direction. Is the netduino a good choice or is there something that would be better.
How high power of an LED are we talking?
After googing abit, it looks like DMX-512 is a communications standard used by stage lights, so I'm guessing we are talking about a "very bright" LED.
The first step would be building what you want to control. Do you have a specific model of stagelight you are controlling, or did you want to make it yourself?
#3
Posted 09 August 2010 - 05:57 AM
I've played around with microcontollers here and there, but now I have a project that I must work out. I'm trying to figure out the best way to tackle this new project. What my goal is to control a high powered LED and stepper motor using DMX-512. I'm not sure how to approach this but I could use some help getting pointed in the right direction. Is the netduino a good choice or is there something that would be better.
This sounds similar to one of the projects I want to implement myself. Could you provide more detail on what you are going to build?
-Szymon
#4
Posted 09 August 2010 - 04:39 PM
#5
Posted 09 August 2010 - 05:49 PM
#6
Posted 09 August 2010 - 06:02 PM
Can a dmx device control two different devices? i.e. Can the netduino control the stepper and LED at the same time?
Hi John, sounds like a cool project.
I'm not knowledgeable about the particulars of DMX, but here are a few questions to get started down the path:
Can you drive your DMX gear via a provided communication standards (UART, SPI, I2C) using 3.3V signals?
* If yes, then you'll probably just need some C# driver code.
* If no, then you'll either need:
* an accessory which uses one of the provided communication standards to drive DMX...and some C# driver code for it.
* a low-level driver (just compile it into the Netduino firmware) which provides DMX support
Let's see what we can figure out together as a community here...
[And thanks Chris Seto for the link to the DMX docs; great starting info there.]
Chris
#7
Posted 09 August 2010 - 09:22 PM
#8
Posted 18 December 2010 - 06:51 AM
#9
Posted 24 January 2011 - 11:44 AM
Edited by Mich, 24 January 2011 - 08:16 PM.
#10
Posted 05 March 2011 - 12:14 PM
#11
Posted 06 March 2011 - 05:53 PM
I can't find a timer which works with microseconds because you need to hold each bit for 4µs. Has anybody any ideas?
You don't have to resort to manually bitbanging the DMX data as it's just a serial protocol, so you can use one of the UARTs of the netduino. Just look at the example i posted in the Showcase section.
#12
Posted 09 March 2011 - 04:11 PM
You don't have to resort to manually bitbanging the DMX data as it's just a serial protocol, so you can use one of the UARTs of the netduino. Just look at the example i posted in the Showcase section.
hey thanks for this code I thought about doing the same thing but didn't find much information on the SerialPort class in the micro framework. Mostly the thing with the stop-bits. I thrust that this generates the start-bit to.
I still have one question about the code. Why do you call Thread.Sleep(40)?
#13
Posted 10 March 2011 - 09:16 AM
Why do you call Thread.Sleep(40)?
The SerialPort.Write command does not block until all data is actually sent. So i have to wait or otherwise the break generation of the next round collides with sending of data of the last round.
Of course to get highest possible refresh rate, one would have to resort to a more sophisticated approach, maybe waiting until BytesToSend is zero.
#14
Posted 07 May 2012 - 01:53 AM
#15
Posted 03 August 2012 - 04:37 PM
Hi there is there a sample code for a DMX512 receiver?
I need a code base for a project.
thank you
Did you ever find any sample code for a DMX receiver? I'd like to add this to one of my projects also.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users