Renard Pixel String
 
Notifications
Clear all

Renard Pixel String

62 Posts
16 Users
0 Reactions
32.9 K Views
Posts: 2167
(@djulien)
Noble Member
Joined: 19 years ago
cypress1138 wrote:Specifically, in the case of led_1 it would be assigned to 0x070 which is also 0x0F0. When I am in bank 1 would referencing led_1 cause an error or would I have to reference 0x0F0 meaning I would need led0_1 and led1_1 if I wanted to stick to named variables?

0x70 and 0xf0 physically map to the same byte of memory, so you could use either address to get the same results in this case.

Now if the variable's address was 0x6f (ie, outside the shared address range), then if RP0=0 and RP1=0 and the opcode refers to 0x6f then you would really access the RAM at address 0x6f, but if RP0=1 and RP1=0 and the opcode refers to 0x6f then you would be accessing 0xef. That is, the PIC opcodes only contain the lower 7 bits of the address, and then RP0 and RP1 are used to supply the upper bits of the address.

don


Reply
Posts: 84
Topic starter
(@cypress1138)
Trusted Member
Joined: 18 years ago

Thanks for clearing this up for me!


Reply
Posts: 6720
(@p-short)
Illustrious Member
Joined: 20 years ago

Also, you will almost certainly want the _w and _status registers (or whatever registers that you use for context saving in the ISR) in the upper 16 bytes of the bank.


Reply
Posts: 84
Topic starter
(@cypress1138)
Trusted Member
Joined: 18 years ago

eBay is a wondrous thing! I just picked up a Connect Tech 8 port RS 485 PCI card for $20 😀


Reply
Posts: 84
Topic starter
(@cypress1138)
Trusted Member
Joined: 18 years ago

You know its funny how life works sometimes especially when it comes to projects like this. I have decided that I'm going to be moving from the PIC16F688 to the PIC16F1827 to help with costs. The 1827 has an internal 32MHz oscillator meaning that I can get rid of the external oscillator which will help to offset some of the cost increase in the rest of the board (more decade counters and flip/flops). The faster speed will help with the routine execution speed which will really help as well. It also has more I/O pins as a side benefit so I can add an ICSP header to allow for easier reprogramming of the PIC and believe me if I'm writing the code this is going to happen very often! But it seems a shame to use these pins just for programming. So I was thinking what else could these be used for and then I thought about Phil's new addressable Renard firmware. I could use these pins to set the starting address of the board by using dip switches.
The original idea for this project was to enclose the whole string in shrink tubing making it virtually impossible to access the control board after the fact. But since fathead45's group buy of PLCC-6 RGB LEDs and covers the design has changed with the LEDs sealed individually (hot glue is a wonderful thing!) and the board in its own enclosure (looking to source some in the 3-4 dollar range). So if I'm looking at an addressable design then why not consider looking at making it DMX capable as well? Which lead me to reconsider MPH's suggestion to look at Art-Net. So I started looking through all the Art-Net info here and found this tasty nugget here:

mrpackethead wrote:Nice Ben.. I've been messing with the LLA ( Linux Lighting Architecture ) porting it to run under open-wrt.. Making some progress.. Its a bit clunky.. still need a usb dongle plugged into it... Which prop are you using?

As for needing a Vixen Artnet driver, that need for me has somewhat dissapeared as i'm building my shows using Quartz Composer ( mac ), which now has an art-net plug in.. However it would no doubt be really useful for others.. Ideally i'd like to use both.. Quartz is good for some stuff, but not very good for other stuff. I could run them together.

Ball part what do you think your nodes are worth ( parts etc ).. An affordable ( and practical ) Artnet node could revolutise DIY christmas shows.. Everyone has ( well almost ) ethernet on their pcs these days.

Which needless to say really warmed my Macintosh loving heart (I am using windows under protest for this project) !
So who knows this whole project may morph completely but for now I will keep plugging away at the software to control this thing via Renard protocol since its the only thing that even comes close to making sense to me 😉


Reply
Posts: 84
Topic starter
(@cypress1138)
Trusted Member
Joined: 18 years ago

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?


Reply
Posts: 1041
(@n1ist)
Noble Member
Joined: 19 years ago

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


Reply
ErnieHorning
Posts: 4428
(@erniehorning)
Famed Member
Joined: 20 years ago
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.


Reply
Posts: 1041
(@n1ist)
Noble Member
Joined: 19 years ago

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


Reply
dmcole
Posts: 2196
(@dmcole)
Noble Member
Joined: 19 years ago
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.


Reply
Page 6 / 7
Share: