Hi, all and Merry Christmas!
The Pi is out of the box and I’m taking advantage of a quiet moment whist everyone is watching a film to have a little play.
Anyway – I’m going to try to get DMX working first (as lots of work has been done with that by others) and when we have some code for that, move into pixels.
So, the GPIO pins on the PI are 3.3V and ideally need isolating before we connect them to a DMX device. I have a couple of budude’s E681 to DMX converters (link), am I correct in thinking that these would be ok to isolate / buffer the outputs?
5V from the PI board to run the ST485 – 3.3V input to the ST485 – Ground to Ground.
Barnabybear wrote:Hi, all and Merry Christmas!
The Pi is out of the box and I’m taking advantage of a quiet moment whist everyone is watching a film to have a little play.
Anyway – I’m going to try to get DMX working first (as lots of work has been done with that by others) and when we have some code for that, move into pixels.
So, the GPIO pins on the PI are 3.3V and ideally need isolating before we connect them to a DMX device. I have a couple of budude’s E681 to DMX converters (link), am I correct in thinking that these would be ok to isolate / buffer the outputs?
5V from the PI board to run the ST485 – 3.3V input to the ST485 – Ground to Ground.
I usually use the 5v buffer setting for the E681 but I *think* 3.3v might be OK as well. The datasheet says VIH is 2.0v and VIL is 0.8v - if that falls within the specs for the 'duino then it might work... I've seen 3.3v specific drivers (work off 3.3v supply as well) but they tend to cost a bit more than the good 'ol ST485 parts. If you want true isolation though you want to add something like a 6N137 or similar for the signals and power supply isolation as well.
Already looking at the GPIO's? Wow... all I managed to was to get the point of questioning why I didn't have sound. The RPI is an interesting little toy.
I had an idea, but the timing issues get difficult quick. The idea is to take the HDMI output of the Raspberry PI and feed it into a FPGA. The FPGA would grab a line or two of 720p output and spew it out DMX wires (with appropriate level translation).
Then all the linux device would have to do would write into the frame buffer and the lights would change to the RGB setting. This add on device pretty much allows you to use any HDMI input but the Raspberry PI would be a cheap and very controllable way to handle the output.
Caveats :
- Timing is tight. Signaling is difficult. Would be made easier with a SiI9025 HDMI® Receiver which would give you R,G, B parallel data. Now we are talking a lot of parts and connections.
- Data is 8 bits.
- Large FPGAs which can handle this would probably be rather Expensive.
Anyways, it was a thought.
Tony M.
Thanks for the input Tony. I had to google most of what you said - but yes that would handle massive amounts of data. Timing seems to have been a problem for other people who have looked at this.
I dont have the data sheets for all the common pixels yet (anyone feel free to post if you have one). The TLS3001s that I have can recieve data at between 100KHz and 2MHz (1MHz recommended max), where as DMX is at 250KHz. Some other pixels run at unusual speeds.
Where my head is at the moment -
The PIs SPI clock runs at 250MHz and can be devided by mulitipples of 2, 125, 64, 32, 16, 8, 4, 2, 1MHz etc. Which will be fast enough for what we need and anything above 16MHz is very optermistic for DIY build.
It would be cool to have more than one output (more than one universe).
So - use a shift register connected to the PIs SPI and send data at a highish speed (2, 4 or 8MHz). Then shift the data to the shift registers output at the correct speed for the pixels or DMX and trigger the next data to be sent to the register.
What would determine the timing for the shift - I'm unsure of at this time.
If the shift register was clocked for DMX then the outputs could only be DMX, as the PI has CE0 and CE1 outputs, 2 shift registers could be connected - giving 2 different output types (pixel and DMX or 2 different types of pixel). All this in theory.
I've played a little today with some good results and will post more a little later.
