====== MB-LRE8x2CS PCB / 16 LEDrings/Encoders Control Surface ====== Welcome to the wiki page of the control surface board featuring combo DINx4 and improved DOUTx4 modules with 16 LEDrings and 16 encoders. You can find the tread of the PCB design [[http://midibox.org/forums/topic/16973-dinx4-doutx4-schematic-verification/ |here]]. The last revision of the PCB is rev 2.5. It is a very practical and cheap way to make a midi controller with adding only a core or make a more important controller without having to wire LEDrings. ===== PCB ===== The PCB have components soldered on the two sides.\\ Top side: Encoders and LEDs.\\ Back side: All others components (see [[http://www.midibox.org/dokuwiki/doku.php?id=fairlightiii#bom |BOM below]]).\\ The PCB is two sides white silkscreened on green FR4 material, 1.6mm thickness, 1Oz copper, HASL, 100% E-tested & ROHS compliant.\\ The board is 3,368 x 13,472 inch (342,2mm x 85,5mm): just less than 2U standard.\\ The diameter of each LEDring is 1,299 inch (33 mm) with the use of 3mm LED.\\ =====Pictures===== ==Protoboard (note this is not the last version but has same dimensions and LEDs/Encoders positioning):== |{{http://jeromebo.free.fr/Wiki/PCB1.jpg?800 |PCB}}| | |{{http://jeromebo.free.fr/Wiki/PCB3.jpg?800 |PCB}}| | |{{http://jeromebo.free.fr/Wiki/PCB4.jpg?800 |PCB}}| | |{{http://jeromebo.free.fr/Wiki/PCB5.jpg?800 |PCB}}| | |{{http://jeromebo.free.fr/Wiki/PCB6.jpg?800 |PCB}}| ==Protoboard in action:== |{{http://jeromebo.free.fr/Wiki/PCB2.jpg?800 |PCB}}| | |{{http://jeromebo.free.fr/Wiki/PCB7.jpg?800 |PCB}}| | |{{http://jeromebo.free.fr/Wiki/PCB8.jpg?800 |PCB}}| | |{{http://jeromebo.free.fr/Wiki/PCB9.jpg?800 |PCB}}| | | You can see the LEDring animation in this [[http://www.youtube.com/watch?feature=player_detailpage&v=3QYxTF6gutA |poorly quality video]]. ====Dimensions==== |{{http://jeromebo.free.fr/Wiki/Board.jpg?800 |Board}}| You can download a better definition version [[http://jeromebo.free.fr/Wiki/Board.pdf |here]]. ====Layout==== |{{http://jeromebo.free.fr/Wiki/Layout.png?800 |Layout}}| You can download a better definition version (without ground surfaces for better visibility) [[http://jeromebo.free.fr/Wiki/Layout.pdf |here]]. ====Silkscreen==== You can download Top silkscreen [[http://jeromebo.free.fr/Wiki/Top_silkscreen.pdf |here]]. You can download (mirrored) Bottom silkscreen [[http://jeromebo.free.fr/Wiki/Bottom_silkscreen.pdf |here]]. ====Schematic==== |{{http://jeromebo.free.fr/Wiki/Schematic.png?500 |Schematic}}| You can download a better definition version [[http://jeromebo.free.fr/Wiki/Schematic.pdf |here]]. ====Coordinates==== The origin (0;0) is the bottom left corner of the board. ==LEDs/Encoders== You will find the coordinates of LEDs/Encoders in this [[http://jeromebo.free.fr/Wiki/Coordinates_rev_2.5.xls |files]] (new version with better accuracy positioning!). ==3mm board holes== Coordinates of the six holes (in inch): ^ X ^ Y ^ | 0,16 | 0,16 | | 6,736 | 0,16 | | 13,312 | 0,16 | | 0,16 | 3,208 | | 6,736 | 3,208 | | 13,312 | 3,208 | ====BOM==== ^**Quantity**^**Device**^**Parts**^**REICHELT**^**MOUSER**^**Note**^ |2|ULN2803 Transistors Darlington arrays|ULN2803#1, ULN2803#2|[[http://www.reichelt.de/ICs-U-ZTK-/ULN-2803A/3//index.html?ACTION=3&GROUPID=2921&ARTICLE=22085&SHOW=1&START=0&OFFSET=16&|ULN 2803A]]|[[http://www2.mouser.com/ProductDetail/Texas-Instruments/ULN2803AN/?qs=sGAEpiMZZMupZfs%2fwBb3DB9e3JcsATRuLmxIgE1KUkE%3d|595-ULN2803AN]]|optional| |8|10k 6 Pin SIL resistor network|RN3, RN4, RN5, RN6, RN7, RN8, RN9, RN10|[[http://www.reichelt.de/5-Resistance-6-Pins/SIL-6-5-10K/3/index.html?;ACTION=3;LA=446;ARTICLE=17791;GROUPID=4497;artnr=SIL+6-5+10K;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|SIL 6-5 10K]]|[[http://www2.mouser.com/ProductDetail/Xicon/264-10K-RC/?qs=sGAEpiMZZMuVmbMdVqM8/AejIFOVsQF2|264-10K-RC]]| |4|74HC165|IC1, IC2, IC3, IC4|[[http://www.reichelt.de/ICs-74HC-DIL/74HC-165/3/index.html?;ACTION=3;LA=446;ARTICLE=3155;GROUPID=2930;artnr=74HC+165;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|74HC 165]]|[[http://www2.mouser.com/ProductDetail/STMicroelectronics/M74HC165B1R/?qs=sGAEpiMZZMtsbn1GaJysl6MB7j0Br%2feDsjVmH1Bq4Nc%3d|511-M74HC165]]| |4|74HC595|SR1, SR2, SR3, SR4|[[http://www.reichelt.de/ICs-74HC-DIL/74HC-595/3/index.html?;ACTION=3;LA=446;ARTICLE=3269;GROUPID=2930;artnr=74HC+595;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|74HC 595]]|[[http://www2.mouser.com/ProductDetail/STMicroelectronics/M74HC595B1R/?qs=sGAEpiMZZMtsbn1GaJyslwzgtjFT6%252bN8B2dPP5ZzTsg%3d|511-M74HC595]]| |8|Ceramic Cap 100nF=0,1uF "104"|C1, C2, C3, C4, C6, C7, C8, C9|[[http://www.reichelt.de/Multi-layer-leaded-Z5U-20-/Z5U-2-5-100N/3/index.html?;ACTION=3;LA=446;ARTICLE=22977;GROUPID=3163;artnr=Z5U-2%2C5+100N;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|Z5U-2,5 100n]]|[[http://www2.mouser.com/ProductDetail/Kemet/C412C104K5R5HA/?qs=%2fha2pyFadujUupwLInIvN4Ok%2fED44x4z1zwDk22svMvXLs10xlQrAQ%3d%3d|80-C412C104K5R]]| |1|Polarized Electrolytic Capacitor 100 uF|C5|[[http://www.reichelt.de/Electrolyte-Capacitors-radial/RAD-100-16/3/index.html?;ACTION=3;LA=446;ARTICLE=15101;GROUPID=3143;artnr=RAD+100%2F16;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|rad 100/16]]|[[http://www2.mouser.com/ProductDetail/Lelon/REA101M1CBK-0611P/?qs=%2fha2pyFaduihP%2fa%252bRFM5YjfdU8xyvx5EAdO%252bg3xCGxHq%2fI2wtlRu%2f084auw92Qnq|140-REA101M1CBK0611P]]| |2|220 Ohm 16 Pin DIL resistor network|RN1, RN2|-|[[http://www2.mouser.com/ProductDetail/Bourns/4116R-1-221LF/?qs=sGAEpiMZZMvrmc6UYKmaNRuan3WLynlgAFnIEIuWu8Y%3d|652-4116R-1LF-220]]|or 16x Resistor 220 Ohm| |//16//|//220 Ohm metal film resistor//|//8 for RN1, 8 for RN2//|[[http://www.reichelt.de/1-4W-1-100-Ohm-976-Ohm/METALL-220/3/index.html?;ACTION=3;LA=446;ARTICLE=11627;GROUPID=3077;artnr=METALL+220;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|METALL 220]]|[[http://fr.mouser.com/ProductDetail/KOA-Speer/MF1-4DCT52R2200F/?qs=sGAEpiMZZMu61qfTUdNhG%2fDQawzJ6c7Pvwf5CGzltL8%3d|MF1/4DCT52R2200F]]|Instead the 2 RNs above| |2|2-row DIL Header (2x5 pins)|"IN", "OUT"|[[http://www.reichelt.de/Strip-connectors/SL-2X10G-2-54/3/index.html?;ACTION=3;LA=446;ARTICLE=19488;GROUPID=3220;artnr=SL+2X10G+2%2C54;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|SL 2X10G 2,54]]|[[http://fr.mouser.com/ProductDetail/FCI/67996-420HLF/?qs=%2fha2pyFaduhlYj7BigKlfWQj76HEZJ4FBt1ycFmUekM4T7G8yCcUag%3d%3d |649-67996-420HLF]]|For Reichelt, buy only 1 item and cut it in 2 parts| |1|1-row SIL Header (1x16 pins)|"TO_SWITCH_BOARD"|[[http://www.reichelt.de/Strip-connectors/SL-1X36G-2-54/3/index.html?;ACTION=3;LA=446;ARTICLE=19504;GROUPID=3220;artnr=SL+1X36G+2%2C54;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|SL 1X36G 2,54]]|[[http://fr.mouser.com/ProductDetail/FCI/68001-416HLF/?qs=%2fha2pyFaduj2kX7F%2fjLYsz3Ub4meObGdqvb1PukbIIRu5ukyLqoPwg%3d%3d |649-68001-416HLF]]|optional| |16|PEC16-4020F-N0024|ENC1, ENC2, … , ENC16|-|[[http://www2.mouser.com/ProductDetail/Bourns/PEC16-4020F-N0024/?qs=%2fha2pyFaduidMAYXvh4P%252bEanIsGgmf2%2f0x52XmivDsxMksvDEy77TF6d7yR15tkq|652-PEC16-4020FN0024]]|Undetended - without build-in switch| | //or//|PEC16-4020F-S0024| |-|[[http://www2.mouser.com/ProductDetail/Bourns/PEC16-4020F-S0024/?qs=%2fha2pyFaduidMAYXvh4P%252bBRWlDqCgjW9Zaz1UYvxiiu4QrPXX2IsiUoSeMNo9bgu|652-PEC16-4020FS0024]]|Undetended - with build-in switch| |10|Socket 16 pins|-|[[http://www.reichelt.de/Sockets-IC/GS-16/3/index.html?;ACTION=3;LA=446;ARTICLE=8208;GROUPID=3215;artnr=GS+16;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|GS 16]]|[[http://www2.mouser.com/ProductDetail/TE-Connectivity-AMP/1-390261-4/?qs=sGAEpiMZZMs%2fSh%2fkjph1tvt1%2fmEPT%2fXoNq7gP2OHJlQ%3d|571-1-390261-4]]| |2|Socket 18 pins|-|[[http://www.reichelt.de/Sockets-IC/GS-18/3/index.html?;ACTION=3;LA=446;ARTICLE=8210;GROUPID=3215;artnr=GS+18;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|GS 18]]|[[http://www2.mouser.com/ProductDetail/TE-Connectivity-AMP/1-390261-5/?qs=sGAEpiMZZMs%2fSh%2fkjph1tvt1%2fmEPT%2fXoZIDJRoSu7Is%3d|571-1-390261-5]]|**8** (__**NOT 9**__) bridges to solder if not using ULN2803s| |256|LED 3mm or rectangular (2x5x7mm)|LED1, LED2, ... ,LED256|[[http://www.reichelt.de/LEDs-standard-hell/LED-3MM-RT/3/index.html?;ACTION=3;LA=446;ARTICLE=10228;GROUPID=3018;artnr=LED+3MM+RT|LED 3MM RT]]|-|Reichelt model recommended|\\ This is a [[http://www.mouser.com/ProjectManager/ProjectDetail.aspx?AccessID=69bb107803|Mouser Orderlist]] (Thank you Lamouette). You have only to add your LEDs and Pinheaders. ====LED black list==== Since Tk discovered a [[http://midibox.org/forums/topic/17378-control-surface-pcb-for-16-encodersledrings-bulk-order/page-12#entry154421|brightness problem]] with some rectangular 5x2x7mm LEDs, we found it useful to create a list of LEDs wich are successfully or unsuccessfully tested. Members are welcome to edit this page to add their LED feedback. |Model|Type|Link|Good|Not good|Comment|Author| |Kingbright WP103HD|5x2x7mm rectangular|[[http://fr.mouser.com/ProductDetail/Kingbright/WP103HD/?qs=sGAEpiMZZMs4quMj8r4lmhjquLrW8G4%252b6fJ5ym%2fib3s%3d|Mouser]]| | X | |Tk| |LED 3MM RT|3mm round|[[http://www.reichelt.de/LEDs-standard-hell/LED-3MM-RT/3/index.html?;ACTION=3;LA=446;ARTICLE=10228;GROUPID=3018;artnr=LED+3MM+RT|Reichelt]]| X | | |Tk| |"10001"|5x2x7mm rectangular|[[http://www.auspiciousmall.com/index.php?main_page=product_info&cPath=78_1_2&products_id=19|auspiciousmall.com]]| X | X |Used without ULNs(prototype)|Fairlightiii| |Kingbright L-934ID|3mm round|[[http://www.segor.de/#Q=LED%203%20rt%20diffus%2050mcd%20630 |Segor Electronics]]| X | | |rvlt| |Kingbright WP132XID|3mm round|[[http://fr.mouser.com/ProductDetail/Kingbright/WP132XID/?qs=sGAEpiMZZMs4quMj8r4lmsNxrQ0ZQMdoZ/c/v7yOhNA= |Mouser]]| X | |Used without ULNs|grizz| |Kingbright WP132XID|3mm round|[[http://de.mouser.com/ProductDetail/Kingbright/WP132XID/?qs=sGAEpiMZZMs4quMj8r4lmsNxrQ0ZQMdoZ%2fc%2fv7yOhNA%3d |Mouser]]| | X |Used withMIDIbox NG & ULNs|MaG2k| |Kingbright WP113SRDT|5x2x7mm rectangular|[[http://de.mouser.com/ProductDetail/Kingbright/WP113SRDT/?qs=%2fha2pyFadugD%2fTsmQfHeoZzOEu7l2adZD53TPtc4aU1OtJcXIaccXQ%3d%3d |Mouser]]| | X |Used withMIDIbox NG & ULNs|MaG2k| |smashTV is selling|3mm round|[[http://www.avishowtech.com/buy.html |smashTV]]| | X |Used withMIDIbox NG & ULNs|MaG2k| |Tayda Electronics|3mm round|[[http://www.taydaelectronics.com/leds/round-leds/3mm-leds/led-3mm-red.html |Tayda Electronics]]| X | |Used withMIDIbox NG & ULNs|MaG2k| ====Components==== ==LEDs & LEDring== Each LEDring is composed of 16 LEDs.\\ You can use 3mm LEDs or 5x2x7mm rectangular LEDs (because the different angles of the LEDs in the LEDring) or all other LED with 0.1 inch (2,54 mm) leads spacing.\\ There's not enough space for 5mm LEDs. |{{http://jeromebo.free.fr/Wiki/LEDring.png |LEDring}}| The LED polarity: the cathode (short leg) has to show to the center of the LED ring: |{{http://www.ucapps.de/midibox_ng/lre8x2_led_polarity.jpg |LED polarity}}| ==Encoder== You can use 16mm "standard" encoders (ALPS STEC16, Bourns PEC16-4xxxF-Nxxxx series, encoders sell by [[http://www.voti.nl/winkel/catalog.html?SW-ROT-01|voti]], ...).\\ You can use instead PEC16-4xxxF-Sxxxx series (with built-in switch). Probably others built-in switch encoders comply the PCB footprint but you have to compare before [[http://www.bourns.com/pdfs/pec16.pdf|datasheets]].\\ ==16 pins SIL header== If you use switched encoders, one of the two pins of the built-in switch is grounded while the other pin is connected to a pin of this SIL connector. The silkscreen include the name of each switch. ==2x5 pins DIL headers== They are 1:1 with J8/J9 of Core8/Core32/LPC17 so you can use practical [[http://www.bikeland.info/images/ecu/idc001.jpg |IDC female Connector]] or still more easier [[https://dlnmh9ip6v2uc.cloudfront.net/images/products/8/5/3/5/CAB-08535-03-L.jpg |pre-built 2x5 Pin IDC Ribbon Cable]]. Be careful to the [[http://midibox.org/forums/topic/17378-control-surface-pcb-for-16-encodersledrings-bulk-order/page-11#entry154303|connection to the MBHP_CORE_LPC17 module]] because it could be confusing, since the SO pin of J8/9 has to be connected to the SI pin of the LRE2x8 board, and SI to the SO pin (for MBHP_DOUT/DIN we usually have the same names for these signals, this detail has been overlooked). ==ULN2803== This component provide more current to the matrix LED than the 74HC595 shift registers can and improve the brightness of the LEDs.\\ You can use or not Transistors Darlington arrays.\\ In the second case (__and only in this case__), you need to bridge 16 of the 18 free pins 2 by 2 (in red on the picture): |{{http://jeromebo.free.fr/Wiki/ULN2803_bridges.png |Bridges}}| |**Be careful to not bridge the 2 last pins**\\ (those opposite to the "head" of the chip).| |{{http://upload.wikimedia.org/wikipedia/commons/8/8b/RockerDipSwitch.png?200 |DIP switch}}|{{http://jeromebo.free.fr/Wiki/NT08.jpg?200 |DIP switch}}| |An idea is to use e.g. DIP16 Switch. ([[http://www.reichelt.de/Switches-dip-coding/NT-08/3/index.html?;ACTION=3;LA=446;ARTICLE=13534;GROUPID=3287;artnr=NT+08;SID=12UC05eH8AAAIAADZ-Tk83280bcbf1bb38ae589b1b56c8f1c3195|NT 08]] at Reichelt).|:::| ==220 Ohm 16 Pin DIL resistor network== As in the SmashTV's PCB, you can replace a DIL resistor network by 8 resistors.\\ In this case I recommend to use 1% metal film resistors because with the tolerance of standard carbon resistors you could see maybe different brightness of each LED of the LEDring. ==10kOhm 6 Pin SIL resistor network== Be careful when sourcing SIL resistor networks because a 6 Pin SIL resistor network can be 5 commoned resistors (what you need here) or __3__ independant resistors. ==Polarized Electrolytic Capacitor 100 uF== It is the only polarized cap of the board. The silkscreen indicate the "+" and "-" signs on the board. ====Diagram interconnection==== ==One board connection== |{{http://jeromebo.free.fr/Wiki/1boardconnection.png?800 |Diagram interconnection}}| Only one 2x5 Pin IDC Ribbon Cable is necessary to connect the board. |{{http://www.ucapps.de/midibox_ng/lre8x2_core_connection.jpg?800 |}}| ==Global interconnection== |{{http://jeromebo.free.fr/Wiki/Diagram_interconnection.png?1000 |Diagram interconnection}}| |You can download a better definition version [[http://jeromebo.free.fr/Wiki/Diagram_interconnection.pdf |here]].| You can chain 4 of this board or connect yours extra DIN/DOUT modules e.g. on the DIL connector named "OUT".\\ You can connect also this board at the end of the chain and connect this board with the "IN" connector after yours others modules. With the use of the upcoming [[http://www.ucapps.de/midibox_ng.html |MIDIbox NG]] (planned for Winter 2012/13) you will be able to have 2 chains of 4 boards each (2x4x16=128 encoders and 2x4x16=128 LEDrings). ====Whishlist==== For an eventual next revision of the PCB, this is a list of improvements that members are free to complete: * Changing IN/OUT sockets by polarized sockets and improving the silkscreen (to avoid confusing SI/SO pin). //Tk// **Done** * Moving cap C5 (too close to the IN socket). //Tk// **Done** * Trying to move some critical vias. //Fairlightiii// **Done** * What about the use of ULN2803s? //Fairlightiii// **Let them here for 8x2 configuration, not present on upcoming 4x2 and 8x1 boards** * Trying to add DINX2 onboard to handle the 16 encoder switches (start/end of the chain?). //Fairlightiii// **Not planned to be implemented** * What about the size of the PCB? //Fairlightiii// **Slightly less big (I won some mm in the edges)** * new arrangment of encoders and LED-rings in 4x4 matrix? //MaG2k// **Upcoming 4x2 and 8x1 boards**