Ren48LSDv3c: Difference between revisions

From doityourselfchristmas.com
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:


==What is the Ren48LSD?==
==What is the Ren48LSD?==
The Ren48LSD ('''L'''ED '''S'''trip '''D'''river) controller came about as a solution to drive Frank's LED Super Strips. Originally I used [[DCSSR|DCSSRs]] to drive them and while it's a workable solution, it tends to be somewhat bulky and requires lots of additional wiring between the controller and DCSSRs as well as to the strips themselves. Another alternative is [[24_Channel_Renard_without|Frank's Ren24LV]] which uses ULN2803 drivers. The issue with this solution is that it has limitations in how much power it can sink to the strips due to the ULN2803 package power dissipation.
The Ren48LSD ('''L'''ED '''S'''trip '''D'''river) controller came about as a solution to drive Frank's LED Super Strips. Originally I used [[DCSSR|DCSSRs]] to drive them and while it's a workable solution, it tends to be somewhat bulky and requires lots of additional wiring between the controller and DCSSRs as well as to the strips themselves. Another alternative is [[Renard 24LV|Frank's Ren24LV]] which uses ULN2803 drivers. The issue with this solution is that it has limitations in how much power it can sink to the strips due to the ULN2803 package power dissipation.


The strips require up to 360mA per output (18 LEDs x 20mA) so I used an NPN bipolar transistor to drive them. The transistors support up to 600mA so there's plenty of headroom left. The transistors are fairly cheap so it makes for a simple, inexpensive solution. The controller design used the [[The_Renard_SS24_Controller_Board|Ren24SS]] as a base, using the same PIC, clocking and serial interface configuration but expanded to 6 PICs to support 48 channels or driving up to 12 strips per board. Because of this, the controller supports standard [[Renard_Firmware#Regular_Firmware|Renard protocol FW]] using RS-232/485 as well as the [[Renard_Firmware#DMX_firmware|DMX]] version. The board requires either a 5vdc well regulated supply or a good 9-24vdc supply. The input supply also drives the LED strips.
The strips require up to 360mA per output (18 LEDs x 20mA) so I used an NPN bipolar transistor to drive them. The transistors support up to 600mA so there's plenty of headroom left. The transistors are fairly cheap so it makes for a simple, inexpensive solution. The controller design used the [[The_Renard_SS24_Controller_Board|Ren24SS]] as a base, using the same PIC, clocking and serial interface configuration but expanded to 6 PICs to support 48 channels or driving up to 12 strips per board. Because of this, the controller supports standard [[Renard_Firmware#Regular_Firmware|Renard protocol FW]] using RS-232/485 as well as the [[Renard_Firmware#DMX_firmware|DMX]] version. The board requires either a 5vdc well regulated supply or a good 9-24vdc supply. The input supply also drives the LED strips.

Revision as of 23:25, 1 February 2011

Ren48LSD (v3c) Construction Manual

What is the Ren48LSD?

The Ren48LSD (LED Strip Driver) controller came about as a solution to drive Frank's LED Super Strips. Originally I used DCSSRs to drive them and while it's a workable solution, it tends to be somewhat bulky and requires lots of additional wiring between the controller and DCSSRs as well as to the strips themselves. Another alternative is Frank's Ren24LV which uses ULN2803 drivers. The issue with this solution is that it has limitations in how much power it can sink to the strips due to the ULN2803 package power dissipation.

The strips require up to 360mA per output (18 LEDs x 20mA) so I used an NPN bipolar transistor to drive them. The transistors support up to 600mA so there's plenty of headroom left. The transistors are fairly cheap so it makes for a simple, inexpensive solution. The controller design used the Ren24SS as a base, using the same PIC, clocking and serial interface configuration but expanded to 6 PICs to support 48 channels or driving up to 12 strips per board. Because of this, the controller supports standard Renard protocol FW using RS-232/485 as well as the DMX version. The board requires either a 5vdc well regulated supply or a good 9-24vdc supply. The input supply also drives the LED strips.

For information on the previous version of this board (v3b) please go to Ren48LSD. This page is for the v3c version of the board.

Ren48LSD (v3c) Parts

In addition to the PCB, you will need the following components:

Mouser BOM
Mouser PNDescriptionQty
579-PIC16F688-I/PMicrocontrollers (MCU) 7KB 256 RAM 12 I/O6
571-1-390261-3IC & Component Sockets 14P ECONOMY TIN6
511-ST485BNBuffers & Line Drivers Hi-Spd Lo Pwr Trans2
571-1-390261-2IC & Component Sockets 8P ECONOMY TIN2
520-TCH1843-XECS-2100AX-18.432MHZ1
863-MPS2222AGBipolar Transistors 600mA 75V NPN48
78-1N5239BZener Diodes 9.1 Volt 0.5 Watt1
78-1N5229BZener Diodes 4.3 Volt 0.5 Watt1
863-1N5819GSchottky (Diodes & Rectifiers) 1A 40V2
863-LM2575TV-5GSwitching Converters, Regulators & Controllers 5V 1A PWR SW REG1
532-577102B00Heatsinks TO-220 HORIZ/VERT SLIM CHANNEL STYLE1
604-WP7113IDStandard LED - Through Hole HI EFF RED DIFFUSED1
581-SA105E104MARMultilayer Ceramic Capacitors (MLCC) - Leaded 50volts 0.1uF 20% Z5U9
667-ELC-18B331LPower Inductors 330UH RADIAL COIL CHOKE1
140-RXJ331M1CBK1012PAluminum Electrolytic Capacitors - Leaded 16V 330uF 105C 10x12.5 mm1
140-RXJ101M1HBK1016PAluminum Electrolytic Capacitors - Leaded 50V 100uF 105C 10x16 mm1
299-680-RCCarbon Film Resistors 680ohms1
299-120-RCCarbon Film Resistors 120ohms1
299-27K-RCCarbon Film Resistors 27Kohms2
299-1K-RCCarbon Film Resistors 1.0Kohms2
299-470-RCCarbon Film Resistors 470ohms48
299-10K-RCCarbon Film Resistors 10Kohms6
571-5556416-1Telecom & Ethernet Connectors 8 PCB TOP ENTRY14
571-7969492Terminal Blocks 5.08MM VERTICAL 2P wire protector3
571-5-146281-2Headers & Wire Housings 2 P HEADER GOLD 30u single row2
649-65474-002LFHeaders & Wire Housings SHUNT TIN1

Most of the components are not overly critical and some can be omitted in certain cases. The electrolytic capacitors must only be subsituted with low-ESR versions only. Failure to do so could result in instability in the regulation circuit. If you are using a well regulated 5vdc supply, the voltage regulator, 1N5819 diodes (2), 330uH coil, and 100uf capacitor should not be installed. This will require a jumper to be placed across the +5vdc bypass terminal block which effectively shunts DC IN 1 directly to the board logic.

Building the Ren48LSD

The Ren48LSD requires a fair bit of soldering so take your time and ensure you install the components in the correct orientation when required. Start by sorting the components by type and values. Look over the PCB before starting noting the location of the various components. Follow the standard procedure of installing the lowest profile parts first and ending up with the tallest.

  1. Install the six 10k resistors near each PIC
  2. Install the two 1k resistors near the 485 chips
  3. Install the two 27k resistors near the 485 chips
  4. Install the one 120 resistor near the 485 chips
  5. Install the one 680 resistor near the LED
  6. Install the 1N5229 diode near the 485 chips – note the correct orientation
  7. Install the 1N5239 diode near the 485 chips – note the correct orientation
  8. Install the two 1N5819 diodes near the voltage regulator (Do not install for 5vdc input) – note the correct orientation

  1. Install all forty-eight 470 ohm resistors doing 4-8 at a time.

  1. Install the nine decoupling capacitors near the IC sockets and oscillator

  1. Install the six 14-pin PIC chip sockets - note the correct orientation (top 3 go one way, bottom 3 go the other way)
  2. Install the two 8-pin 485 chip sockets - note the correct orientaiton
  3. Install the 18.432MHz oscillator – note the squared corner for correct orientation

  1. Install the 48 transistors – note the correct orientation – the emitter is nearest the PICs, base in the middle and collector near the RJ45 jacks

Note that if you are using a regulated 5vdc power supply for your input, you should omit installing most of the regulator circuitry.

  1. Install the two 2-pin shunt jumpers
  2. Install the LED – note correct orientation
  3. Install the DC input terminal blocks – note correct orientation
  4. Install the +5vdc bypass block (Install for 5vdc input) – note correct orientation
  5. Install the LM2575 regulator (Do not install for 5vdc input) - note correct orientation - pin 1 is denoted by the square pad - the odd number pins are the pins farthest away from the back
  6. Install the 100uF/50v capacitor (Do not install for 5vdc input) – note correct orientation
  7. Install the 330uF/16v capacitor – note correct orientation
  8. Install the choke coil (Do not install for 5vdc input)

NOTE - IN THE 2010 Group Buy, a 47uf/100v part was subsituted due to long backorders of the 100uf/50v part

  1. Install the fourteen RJ45 jacks – note that side-entry jacks can be subsituted
  2. Mount the 5v regulator heat sink if you installed the regulator – use a small amount of heat sink compound

Congratulations! That completes the construction of the Ren48LSD!

Initial Testing

The first thing you will want to do in any PCB construction project is to double check that you have all components installed and in the proper orientation. You will then want to inspect the board for any cold/bridged solder joints. Take your time with this step and go over each and every joint.

If you have any of the IC's installed - remove them now. Connect your power supply to the “DC IN 1” - it supplies power to controller portion of the board as well as strip outputs 1-6. “DC IN 2” is a separate input to drive strips 7-12. Note that the ground is shared between the two inputs. If you are using a well regulated +5vdc power supply as your power input, the regulator circuit should not be installed. However, you must manually bypass this by placing a jumper wire between the +5vdc bypass terminal block. Turn on the supply and verify the power LED lights up. Verify you have 5v between pins 1 and 14 on each PIC socket as well as between pins 5 and 8 on the 485 chip sockets. Install all of the IC's if this passes.

Programming the PIC controllers

The Ren48LSD does not supply or use a ZeroCross input and therefore the Renard firmware (either Renard or DMX protocol) must be configured for DC/PWM operation. In addition, if you are using the DMX firmware, you may want to set the initial starting address but generally, this can be left at '1' for all PICs since the code is self-addressing. Also – like the ULN2803 drivers, the transistors invert the output so the firmware uses positive outputs.

Renard Protocol

Obtain the standard Renard firmware here:

Make the following changes:

#define PWM_build 1 – change from '0'
#define DC_build 1 – change from '0'
#define CTR_LOCKOUT 1 – change from '15'
;#define OUTPUT_NEGATIVE_TRUE – comment this out

Compile the code into hex code and program all six PICs with the same code. A standard version of the code with the settings above has been compiled already for you in the File Library available here.

Renard-DMX Protocol

Obtain the DMX Renard firmware from here:

#define DC_build 1 – change from '0'
#define CTR_LOCKOUT 0 – change from '40'
#define SINK_map 0x00 – change from '0xFF'

If you want to change the DMX starting address then alter it below – this is only required on the first PIC in the chain. If you have multiple Ren48LSD controllers, you can leave the second/subsequent PICs at '1' and they will automatically start off where the last PIC left off.

#define DMX_START_ADDRESS 1

Compile the code into hex code and program all six PICs with the same code (unless using a starting address). A standard version of the code with the settings above has been compiled already for you in the File Library available here.

Whichever firmware you choose, install the flashed PICs into the sockets noting the correct orientation. Also install the two 485 chips into their sockets noting the correct orientation. You are now ready for final testing.

Final Testing

I chose not to design in the diagnostic LEDs as those used on the RenSS series of controllers. The design is fairly straight-forward and as long as you are sure of the voltage inputs and the PICs are flashed properly you should not have any issues if your soldering is good.

If you are using RS232, you should install the shunt on the "RS232" header which shorts pin 5 of the RJ45-IN connector to ground for proper RS232 operation. The wiring is the same as the RenardSS series so you can follow the cabling requiremnents for that.

As the Renard controller variations do not use bussed DMX it's not critical to install the DMX termination shunt if you are only using Renard controllers. This is because they are using point-to-point configurations. However - if this particular controller is at the end of a line of other normal (bussed) DMX devices, you should install the shunt to properly terminate the bus.

I'm assuming at this point that you have built one or more of the LED SuperStrips to test with. If not - - well - - do it... Note that the strips have one caveat – I have found that the LED colors go in Red, Blue, Green and White order – not Red, Green, Blue and White order. The RJ45 outputs are as follows:

  1. Common +DC
  2. Red Ground
  3. Common +DC
  4. Blue Ground
  5. Common +DC
  6. Green Ground
  7. Common +DC
  8. White Ground

What does this mean to you? Well – if you use standard straight-thru RJ45/Ethernet cables, the color order will be RBGW channel order in Vixen so if you want to use an RGBW order, you'll need to change the channel order in Vixen. The other alternative (and the way I do it) is to swap pins 4 and 6 at one end of the RJ45 cable. I did this because I thought it made more sense to keep the natural pin order versus color order. Note that pins 1, 3, 5 and 7 are tied together both on the PCB as well as the strips – there is no way to have separate +DC runs with the strips.

Connect the Ren48LSD to your PC using standard wiring practices as on the Wiki for other Renard controllers. Develop a Vixen sequence to turn on/off each channel in groups of four using the appropriate Renard/DMX plug-in. Channels 1, 5, 9, etc should have the same programming but only have 1 channel in the group (1,2,3,4) on at a time. This helps ensure you have unique channel addressing from each RJ45 output.

With the sequence running, plug in a strip into each RJ45 and ensure each color turns on in order (remember that the B & G colors are swapped). Once that is complete you change the on/off to ramp up/downs to verify dimming operation. Finally, you can perform a full load test with 12 strips installed.

FAQ

Q1: What if I only have 6 strips?

A1: Well - you're in luck! Next to PIC #3 and PIC #6 is a via hole that will bypass PICs #4 - #6 if you install a wire between them. Note that this is only necessary if you are planning to daisy-chain another board from this one. This effectively makes this a Ren24LSD. If you are not going to daisy-chain another board, you can leave it off as well as the RS-485 output chip. Personally, I think this is false economy since you'll have to dig the parts up if you change your mind and want to run a board off this one. In either case, you certainly save time and money by not installing the PICs, sockets, transistors, resistors and output connectors for strips 7-12 if you don't have them.

Q2: Can I use standard DIY SSRs with the Ren48LSD?

A2: Maybe - but with the following caveats:

  • It has not been tested at all
  • The power LED on the SSR will not work as there is no ground fed to pin 7.
  • To be safe, pins 3, 5 and 7 should not be connected from the Ren48LSD to the SSR.
  • You may want to stick with a 5vdc source only if insure of the specifications of the optoisolators used on the SSRs. If you are using the standard coop AC or DC SSRs then they should be able to use anything up to 12vdc OK.

For these reasons, it is not really recommended to use an SSR on the Ren48LSD at this time.


Here is the schematic drawing for the Ren48LSD v3c in PDF format - File:Ren48LSD-v3c-Schematic.pdf


--Budude 03:08, 4 June 2010 (UTC)