SparkFunDMX
SparkFunDMX copied to clipboard
Problems reading DMX
Hi, I am using the Sparkfun Thing Plus dmx to led shield with the Sparkfun Thing Plus esp s2 with usb c connector.
I am using lib. Version 2.0.1
I am having problems reading any values with the Dmx input sketch.
Firstly, is this the correct collection of hardware?
Originally I was stuck in the …while(dmx.dataAvailable()…) loop.
After some digging I found a possible solution, namely changing dmxSerial() to 1, changing the en pin to 3 and the rx and tx pins to 33 and 34.
Changing the dmxSerial to 1 and the en pin to 3 brought me out of the while(dmx.dataAvailable()…..) loop but the readings from channel 1 are always zero. Unplugging the lighting desk from the dmx socket on the shield might, sometimes, produce a value (or two) other than zero.
I’m uncertain how to change the rx and tx pin values.
Am I on the right path? Any help much appreciated.
I left trying to read Dmx in and tried the Dmx output example.
This worked with dmxSerial(1) and en pin =3.
I then re-tried the input example - and it now works ???
However, it only works for channel 1. I would like to choose a specific channel to monitor. I have read and tried the code where 192 channels are read but not managed to get that working. Only zeros are produced.
Is there an easy way to simply read one user defined channel or have I bought the wrong equipment?
Thanks in advance…..