Dmx


Closed Thread
Results 1 to 5 of 5

Thread: Dmx

  1. #1
    electronicsuk's Avatar
    electronicsuk Guest

    Default Dmx

    I'm looking to design an 8 channel DMX 512 dimmer. I have designed an AC dimmer using PWM and zero cross detector before, and this interfaced to a computer serial port at 9600bps.

    However, I'm not sure how I should go about receiving a DMX signal. The first problem is the speed it operates at, but I'm sure it's possible to achieve the required speeds using PBP and a fast enough clock speed.

    Secondly, the USART probably wont take a liking to the DMX break and certain other parts of the DMX signal.

    If anyone has some fairly complete working code to receive DMX through the USART (I'll be using 16F627) then it would be much appreciated.

    If the clock is fast enough, I should be able to keep checking the USART on each cycle of the code, and stop it from overrunning, while still having time to sample for zero crossing and do the dimming.

    Once again many thanks!

    Matthew

  2. #2
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Post

    Hi Matthew,

    I must admit that i don't know much about DMX, but after looking at this site.......

    http://www.proav.de/index.html?http&...ng/DMX512.html

    .....it seems possible. 250kbaud 8N2 is possible to achieve with the UART if you stick to an oscillator in multiples of four(4,8,12,16,20) MHz.

    I can't answer if the PIC is able to cope with the ammount of data cause i don't know how much it will be.

    /Ingvar

  3. #3
    lwright's Avatar
    lwright Guest


    Did you find this post helpful? Yes | No

    Default

    I have been developing PIC Based dmx transmission gear with PB but I haven't had much experience with reception but maybe this will help.

    I think PB will struggle with speed and getting accurate timing. You will probably need to do the actual receiving of the packet in assembler (This is what I am doing for transmission). At 4MHz one bit = 4 cycles. I don't think the UART will handle the Break/MAB format. Might have to do it directly of another pin.

    Let me know how you go.

    PS How hard was it to build your RS232 dimmer?

    Regards,


    Lee Wright.

  4. #4
    electronicsuk's Avatar
    electronicsuk Guest


    Did you find this post helpful? Yes | No

    Default

    The RS232 dimmer was easy, the only thing that's holding me back with DMX is the protocol itself. I would use assembler but it's hardly one of my strongpoints

    Matthew

  5. #5
    Join Date
    Apr 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    I know this thread was alond time ago but could you share some information on your rs232 light dimmer\
    Cheers

Similar Threads

  1. DMX receive issue
    By NoahLD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th August 2014, 13:51
  2. Simple 4 channel DMX controller
    By eggman in forum Code Examples
    Replies: 19
    Last Post: - 18th July 2012, 01:40
  3. Big Problem in PBP To receive DMX
    By programmer07 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2007, 18:49
  4. Decoding DMX with picbasic pro
    By fred.pacc in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th September 2006, 14:34
  5. DMX & PicBasic coding problem
    By magicmarty in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th September 2004, 15:35

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts