PDA

View Full Version : "Hserin" Problem for 512dmx



programmer07
- 1st March 2007, 14:18
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?

keithdoxey
- 1st March 2007, 16:00
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.

mister_e
- 1st March 2007, 17:46
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/dmxsign.gif

http://www.theater-technisch-lab.nl/dmxen.htm

DynamoBen
- 2nd March 2007, 16:52
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.