Well its been awhile but I have been plugging away at this. To that end I started figuring out how to run this board via DMX instead of Renard. DMX would be a much better fit for me especially if I can get the show control running from my Mac! To that end I spent a considerable amount of time trying to figure out how to get the software based PWM to run on a PIC while at the same time reading packets of DMX data. I was even working on this during the cruise I took with my wife to celebrate our 10 year anniversary... in hindsight probably not the wisest of decisions 😉 Anyway, I could not figure out how to compress the code down so that it could run between DMX bytes, about 44uS. Also, the board design was getting bigger which means water proofing costs were going to get higher. Ultimately, I have decided to offload the PWM for the LEDs to a pair of Texas Instruments TLC5947. After hunting around here and on the web this just seems to be much easier to implement. The main inspiration was the awesome looking boards that aussiephil has done on his TigerDMX controllers. While he has not posted schematics or firmware specifics that I know of just looking at his boards the solution he is using, having external LED drivers, just made so much sense. The down side to this is that the wire count coming from the control board has grown considerably but is still manageable since each color of each LED will need its own dedicated wire. This trade off of more complex wiring for greatly simplified firmware for me is well worth it! I have attached the schematic for this new design below. The PIC will now just be essentially an interrupter converting the 8-bit DMX channel data to 12-bit channel data for the TLC5947 and moving it out to them. I'm still working through the firmware and once again would like to thank P. Short for his work on the Renard DMX firmware and especially for posting it. It is making my life much easier! Now I could go back in the future and write a Renard based firmware for these boards after I get them working for this years show but it would have to wait awhile. Since this project has pretty much moved away from the Renard protocol and over to DMX I am not sure if I should continue updating this thread or start a new thread over in the DMX forum. What do you guys think?
A few notes on the schematic:
- 12v in goes to a net labeled "+24"
- The LEDs are all backwards
- There's a large rectangle that cuts through components on the bottom of the schematic
- I would add 100n decoupling caps on U3 and U4
- I would tie U4p1 high or pull it up
- RN1 is not needed
/mike
n1ist wrote:I would tie U4p1 high or pull it up
Tyeing an output directly to power is never a good idea, even if it's not enabled. Pulling it up with a resistor is fine but not necessary though.
RN1 is not needed because it's done internally by the software.
Of course I meant U3p4 (the D input), not U4p1 (the R output). It's not too critical since DE is tied off, but I don't like floating inputs.
/mike
cypress1138 wrote:Since this project has pretty much moved away from the Renard protocol and over to DMX I am not sure if I should continue updating this thread or start a new thread over in the DMX forum. What do you guys think?
I just accidentally stumbled onto this thread this afternoon and would have missed the switch to DMX entirely unless I had. I think you should start a new thread over there and then make a last post here with a link to that thread.
Just MHO.
\dmc
PS: Yes, the Sawyer Star (linked in the second post of this thread) is still alive. Just not ready for prime time yet.
