-->
Page 1 of 5

ESP8266 as DMX sender / receiver

PostPosted: Tue Jun 30, 2015 5:11 pm
by noisette
Hi everyone
doas anybody has already tried to use an ESP8266 as a DMX sender / receiver
I'm trying to use mine as DMX sender, but no libs are working and I tried this code whiwh works on a teensy :
Code: Select all  Serial1.begin(83333, SERIAL_8N1);
  Serial1.write(0);
  Serial1.flush();
  Serial1.begin(250000, SERIAL_8N2);
  Serial1.write(buffer, sizeof(buffer));
  Serial1.flush();


but no DMX out from my GPIO2 :/

have you some ideas ?

bye

Re: ESP8266 as DMX sender / receiver

PostPosted: Tue Jun 30, 2015 6:39 pm
by RichardS
I will be interested to see this work also.... ARTNET and the like would be cool too!

Richard.

Re: ESP8266 as DMX sender / receiver

PostPosted: Wed Jul 01, 2015 2:56 am
by folny82
There are two codes for ArtNet DMX codes I tested and work great ;)

http://www.ulrichradig.de/home/index.ph ... t-net-node
https://github.com/twischer/WLAN-RGB-Para

Re: ESP8266 as DMX sender / receiver

PostPosted: Wed Jul 01, 2015 10:31 am
by martinayotte
DMX protocol is defined as a serial break, followed by a 0x00 byte start code, than followed by 512 dimmer's value slots.
This stream need to be repeated forever.
This means your code need to replicated this protocol in a loop.
In ESP8266, I don't know if there is an API to send the serial break, but if it is not provided, maybe it can be simulated with GPIO states.