"Hserin" Problem for 512dmx


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    12

    Default "Hserin" Problem for 512dmx

    There is many theread in the forum but we see nothing as a example code to
    receive 512dmx. they aid me that i can make it with "hserin" command but how?

    is there any body here that succeed to receive it?

    i think it is impossible to receive dmx512 signal to pic with Pbp. i use microCodestudio and pbp 2,47

    i have pic16f628A , 20Mhz , and i want to receive dmx512. i know that dmx has 1 start bit 8 data bits and 2 stop bits and it work in 250000 baudrate.
    i will use it 3 chanel intensty for the leds
    i mean 0 - 255 data = %0 - %100 intensty for each chanel..
    but it is very big problem for me to receive dmx adres and data bits.

    how can i receive it with "hserin" command?
    Last edited by programmer07; - 1st March 2007 at 14:27. Reason: edit

  2. #2
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by programmer07 View Post
    but it is very big problem for me to receive dmx adres and data bits.
    There are many devices successfully using PICs to decode DMX but I think you need to read up more on the subject.

    The only places a DMX address exists is within the controllers memory and as a setting on the DIP switches of the dimmer pack/lighting fixture.

    The data travelling along the DMX cable does not contain ANY explicit address information, it is merely a stream of bytes indicating the levels for all the channels starting at the first channel. You have to count the number of bytes being received and act upon the byte(s) that correspond to the address your receiver is set to.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Yes indeed, and it's been already said in other threads. Time for our student here to dig and study all links we already provided

    As i already said, detect the DMX break fisrt, then wait 'till you reach the user-defined channel.


    http://www.theater-technisch-lab.nl/dmxen.htm
    Last edited by mister_e; - 1st March 2007 at 17:49.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I've worked with DMX for years, what makes it hard to understand is the technical descriptions of DMX makes it sound much more complicated than it actually is.

    The below site should help:
    http://www.ubasics.com/adam/electronics/dmx512.shtml

    As was mentioned above its all about learning how DMX functions. Once you understand that the rest is pretty straight forward. We can't write the code for you but we can provide you resources; which in this case are located elsewhere on the forum.

Similar Threads

  1. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 20:17
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  4. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  5. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59

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