Hi! How can I send DMX data from DMX Shield to pc over serial? If I try to do that with conceptinetics DMX library it gives me error, because library already uses serial port to communicate between arduino and DMX shield.
Thanks for your help!
Elias
Hi! How can I send DMX data from DMX Shield to pc over serial?
You'd have to modify the shield. Bend the pins that connect to the hardware serial pins (0 and 1) so that they do not engage the slots on the Arduino.
Connect those pins to other pins on the Arduino, and use SoftwareSerial to read from the shield.
Whether that is even realistic depends on how much data is being send to the Arduino via the DMX shield.
An alternative to modifying the shield is to mount it on a Leonardo, where pins 0 and 1 are connected to Serial1, and Serial is not connected to any pins Serial1 is another instance of the HardwareSerial class, so it's not going to introduce the problems that SoftwareSerial might.
Sorry to hijack this topic but i am trying to do the same.
I like to pick up the DMX signal and then transport this by serial to then translate it into channels for home automation software to pick up.
But, i am using a Conceptinetics DMX shield with the jumpers on them.
Jumper 1 is to enable or disable the shield so you can write the arduino without to unplug the board
Jumper 2 is for slave or master setting
Jumper 3 is to change the UART TX from standard pin 1 , to pin 4
Jumper 4 is to change the UART RX from standard pin 0 , to pin 3
So far i understand it, and i am using this code that is specially written to do this and also keeps in mind that the pins are changed to 3/4 for dmx receiving and tx ,, and 0 and 1 are used for the serial connection like it normally is. ( sorry i PAULS for this big mistake in number change and assumption ! changed the numbers in the text)
This is all good, i have uploaded the code to the arduino uno, then i connect the wires to my DMX Master that is sending out dmx signals.
I have a decoder here connected with some LED that i see flashing and running the scene that the master is sending, when i connect the arduino/dmx shield everything stops.
LEDs are still on, but the program stops.
First i did not knew what was going on, the greed led on the decoder still flashes , that there is signal coming in.
Then used a meter to measure if there was coming something from the arduino , when i measure D+ and D- i get readings from it, 4-5 Volts Dc, the same happens when i measure D+ and GND.
So this is giving problems, what am i doing wrong here ?
The shield is not supposed to send something right ? i have checked everything and settins for the jumpers but it al seems correct.
have been searching on the internet for a similar problem but could not find it or i have overlooked it.
Is there anyone that has more experience with this ?
Greatly appreciated.
thanks
Jumper 3 is to change the UART TX from standard pin 2 , to pin 4
Jumper 4 is to change the UART RX from standard pin 1 , to pin 3
There is nothing standard about using pins 1 and 2 for serial data. Nothing.
and 1 and 2 are used for the serial connection like it normally is.
No, pins 1 and 2 and NOT the normal serial connection.
So this is giving problems, what am i doing wrong here ?
Who knows. You gave some vague hand-waving description of the shield, some completely incorrect description of the board it is connected to, and a non-functional link to where you got some code that you compiled for some undefined board. Then, you have some silly description of, apparently, trying to determine that there is, or is not, serial data being sent by using a multimeter, without defining what the serial data is supposedly going to.
have been searching on the internet for a similar problem but could not find it
I'm not surprised in the least.
Nice!
I understand that there are many questions like these , but then you do not have to answer like this.
I read topics i found with the search on the forum and many are like these so i thought i supplied enough information.
I even went to the sub forum to see if there was a How to /readme, i found how to use the forum sticky and it did NOT described how to give the best information, just how to register and post.
So i'm sorry PaulS but i think i have done some research before i posted, also this is an excising topic which does not contain any of this information you liked to see as i read it back that , still you did not reply back the same to this person ?
A non working link ?
Not sure what is going on there on your computer but when i copy it in my browser it works.
Sorry that is is not Click-able but i could not figure it out how to get it on this forum.
Also the board description of the dmx shield is found on google when you copy the name and then search, hit number one gave it to me.
Again, i thought i supplied the right information !
About the serial ports, i assumed it was the "standard" since it is printed on the silkscreen of the boards and also when i look at the description it says change the ports from 0-1 to 3 and 4 hence i thought these where the standard ports.
Here we have probably a miscommunication since you say that i was trying to determine if there was serial data, with a multimeter, this is not what i said , As i quote- Then used a meter to measure if there was coming something from the arduino - I also said that i was trying to see if there was something to measure that comes from the DMX connection from the DMX - arduino shield.
Anyway, i got it partially working, and from your text i understand that you are maybe tired of people asking around.
That still does not give you the right in my opinion to respond like this.
So thanks for the trouble Sir, ill won't do it again !
O, and the solution was using another cable, not sure why but it solved my problems using a DMX Conceptinetics shield with a arduino UNO.
And i have read some of your answers , i get it , you are probably tired of answering , but why are you still doing it then. Most answers are giving me and probably most other people the impression you do not want to help them, or that they should have known this already , not everybody is as good informed as you, this is why they come to a forum and ask for tips not to get burned because they do not get something!
And i found the secretly hidden full forum menu finally so here you go, i made the links "working" .
Not sure what is going on there on your computer but when i copy it in my browser it works.
Well, I could have done that, too. Or you could have used the icon on the top row (the 12th one from the left, looks like handcuffs and a green light (what a stupid icon) to wrap the URL appropriately, so the forum software makes it a real link, like this:
Now, anyone can click on it.
This, GitHub - ktgow/dmx_serial_sender: Arduino Uno code to read DMX data from a CTC-DRA-10-1 DMX Shield and send it over a Serial connection., on the other hand requires me to do a lot of work.
Which is more likely to be used?
Now, suppose I actually went and looked at the code. All I see is that there is one Serial port being used. I can't tell from the code there what hardware you have attached to the Arduino. All I know is that it is something called "Conceptinetics DMX shield with the jumpers on them". Now, that is not a link (or even a URL that I could copy/paste, if I was so inclined), so I know nothing about the hardware.
You implied that you set the jumpers to send output to/get input from other pins. The hardware you sort of linked to does not get data from anything other than pins 0 and 1. It does not send data to anything other than pins 0 and 1.
So, if you have modified the code to use other pins, the code you sort of linked to is not the code that you are actually running.
If you haven't modified the code, then positioning the jumpers to connect the shield to other pins would certainly explain why nothing happens to the other pins.
So, here is your opportunity to post a link to the hardware you are actually using, and to post the code you are actually using.