Subversion Repositories svn.mios

Rev

Rev 1186 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
163 tk 1
HEADER 3 MBHP DOUT Module
2
 
3
<H1>MIDIbox Hardware Platform, Digital OUT Module</H1>
4
 
1183 tk 5
<P><CENTER><IMG SRC="mbhp/mbhp_dout_r5.jpg" width=500 height=228></CENTER></P>
163 tk 6
 
1183 tk 7
<P CLASS=INFO>The DOUT module comes with multiple serial registers 74HC595; every register provides 8 digital outputs, which are updated with the latch enable signal RCLK and shifted out with the clock signal SCLK. The advantage of using such shift registers is, that they can be cascaded to a long chain without the need of more than 5 cables to the core module. The DOUT board has been designed on a way which allows to cascade not only the ICs on the board, but also several DOUT modules. But note that it depends on the firmware how much outputs are processed by the core module:
8
<UL CLASS=CL>
9
  <LI>MIOS8 based applications typically allow to cascade up to 4 modules (=16 DOUT SRs), makes up to 128 digital outputs
10
  <LI>MIOS32 based applications typically allow to cascade up to 8 modules (=32 DOUT SRs), makes up to 256 digital outputs
11
</UL></P>
163 tk 12
 
1183 tk 13
<P CLASS=DESC>Some applications also allow to scan the shift registers in a so called "matrix" configuration. E.g. a 8x8 matrix (which is driven by a two DOUT SRs) can drive up to 64 LEDs, a 16x16 matrix could drive up to 256 LEDs. But normally 8x8 matrices are perferred due to higher duty cycle: 8x8 matrices make LED visible at 12.5% of the time which is normally bright enough, 16x16 matrices make LED visible at only 6.2% of the time which is mostly too dark!.</P>
14
 
15
<P CLASS=DESC><B>Please note:</B> due to historical reasons, the "first LED" is usually located at D7 of an output connector, while on a <A HREF="mbhp_din.html">MBHP_DIN</A> module the "first button" is located at D0 of an output connector. See also <A HREF="http://www.midibox.org/dokuwiki/doku.php?id=din_dout_pintable" TARGET="_blank">this Wiki page</A>. This might be confusing, on the other hand changing these assignments for newer MIDIbox projects might confuse users even more! Therefore please bear with me that this assignment won't be changed anymore (it also has layout advantages)!</P>
16
 
163 tk 17
<DL>
18
  <DT><H2> <IMG SRC="images/bullet.gif" ALT=""> Download </H2></DT>
19
  <DD>
1113 tk 20
  <P CLASS=DESC><B>Note:</B> To reduce effort only the DOUTX4 variant is available at <A HREF="http://www.mikes-elektronikseite.de" TARGET="_blank">Mikes PCB shop</A> and <A HREF="http://www.midibox-shop.com" TARGET="_blank">SmashTV's MIDIbox Shop</A>. If you don't want to etch the modules by yourself, just use the DOUTX4 and stuff just only the ICs which are really required.</P>
163 tk 21
  <DD><TABLE BORDER=0 CELLSPACING=5 CELLPADDING=0>
22
    <TR>
932 tk 23
      <TD COLSPAN=4 CLASS=TABCOLOR1>PCB data, can be viewed, modified and converted with <A HREF="http://www.cadsoft.de/download.htm" TARGET="_blank">Eagle Light</A>. The .pdf based schematic has been created with <A HREF="http://opencircuitdesign.com/xcircuit" TARGET="_blank">xcircuit</A>. There are no special eagle schematics available, since components have been netlisted in the .brd file directly!</TD>
163 tk 24
    </TR>
25
    <TR>
26
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Module</STRONG></FONT></td>
27
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Schematic</STRONG></FONT></td>
1183 tk 28
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Layout Data (old PCB)</STRONG></FONT></td>
29
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Quick-view (old PCB)</STRONG></FONT></TD>
163 tk 30
    </TR>
31
    <TR>
32
      <TD CLASS=TABCOLOR2><I>MBHP_DOUTX4_V1</I></TD>
33
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx4.pdf">mbhp_doutx4.pdf</A></TD>
34
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx4_v1.brd">mbhp_doutx4_v1.brd</A></TD>
35
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx4.gif">mbhp_doutx4.gif</A></TD>
36
    </TR>
37
    <TR>
38
      <TD CLASS=TABCOLOR2><I>MBHP_DOUTX3_V1</I></TD>
878 tk 39
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx3.pdf">mbhp_doutx3.pdf</A></TD>
163 tk 40
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx3_v1.brd">mbhp_doutx3_v1.brd</A></TD>
41
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx3_v1.gif">mbhp_doutx3.gif</A></TD>
42
    </TR>
43
    <TR>
44
      <TD CLASS=TABCOLOR2><I>MBHP_DOUTX2_V1</I></TD>
878 tk 45
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx2.pdf">mbhp_doutx2.pdf</A></TD>
163 tk 46
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx2_v2.brd">mbhp_doutx2_v2.brd</A></TD>
47
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx2_v2.gif">mbhp_doutx2.gif</A></TD>
48
    </TR>
49
    <TR>
878 tk 50
      <TD CLASS=TABCOLOR2><I>MBHP_DOUTX1_V2</I></TD>
51
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx1.pdf">mbhp_doutx1.pdf</A></TD>
52
      <TD CLASS=TABCOLOR2>(normaly built on veroboard)</A></TD>
53
      <TD CLASS=TABCOLOR2>(normaly built on veroboard)</TD>
54
    </TR>
55
    <TR>
163 tk 56
      <TD CLASS=TABCOLOR2><I>MBHP_DOUT_MTC_V1</I></TD>
57
      <TD CLASS=TABCOLOR2>similar to DOUTX4</TD>
58
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_dout_mtc_v1.brd">mbhp_dout_mtc_v1.brd</A></TD>
59
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_dout_mtc_v1.gif">mbhp_dout_mtc.gif</A></TD>
60
    </TR>
1183 tk 61
 
62
    <TR>
63
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Module</STRONG></FONT></td>
64
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Schematic</STRONG></FONT></td>
65
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Layout Data (revised PCB)</STRONG></FONT></td>
66
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Quick-view (revised PCB)</STRONG></FONT></TD>
67
    </TR>
68
    <TR>
69
      <TD CLASS=TABCOLOR2><I>MBHP_DOUTX4_R5</I></TD>
70
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx4_r5.pdf">mbhp_doutx4_r5.pdf</A></TD>
71
      <TD CLASS=TABCOLOR2>ask SmashTV</TD>
72
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_dout_r5_detail.jpg">mbhp_dout_r5_detail.jpg</A></TD>
73
    </TR>
163 tk 74
  </TABLE></DD>
75
 
76
  <DD><TABLE BORDER=0 CELLSPACING=5 CELLPADDING=0>
77
    <TR>
78
      <TD COLSPAN=4 CLASS=TABCOLOR1><FONT SIZE=3>Additional informations</FONT></TD>
79
    </TR>
80
    <TR>
81
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>File</STRONG></FONT></td>
82
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Size</STRONG></FONT></td>
83
      <TD NOWRAP CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Description</STRONG></FONT></TD>
84
    </TR>
85
    <TR>
86
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx4_orderlist.txt">mbhp_doutx4_orderlist.txt</A></TD>
87
      <TD CLASS=TABCOLOR2>1k</TD>
1183 tk 88
      <TD CLASS=TABCOLOR2><A HREF="http://www.reichelt.de/" TARGET="_blank">Reichelt</A> orderlist for old layout</TD>
163 tk 89
    </TR>
90
    <TR>
1183 tk 91
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx4_r5_orderlist.txt">mbhp_doutx4_r5_orderlist.txt</A></TD>
92
      <TD CLASS=TABCOLOR2>1k</TD>
93
      <TD CLASS=TABCOLOR2><A HREF="http://www.reichelt.de/" TARGET="_blank">Reichelt</A> orderlist for SmashTV layout</TD>
94
    </TR>
95
    <TR>
163 tk 96
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx4_32leds.pdf">mbhp_doutx4_32leds.pdf</A></TD>
97
      <TD CLASS=TABCOLOR2>16k</TD>
1183 tk 98
      <TD CLASS=TABCOLOR2>How to connect 32 LEDs (old PCB)</TD>
163 tk 99
    </TR>
100
    <TR>
1200 tk 101
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx1_reed_relays.pdf">mbhp_doutx1_reed_relays.pdf</A></TD>
102
      <TD CLASS=TABCOLOR2>9k</TD>
103
      <TD CLASS=TABCOLOR2>How to connect Reed Relays to a DOUT module (old PCB) - see also <A HREF="mbhp/mbhp_doutx1_reed_relays.jpg">this photo</A></TD>
104
    </TR>
105
    <TR>
163 tk 106
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx4_ledrings.pdf">mbhp_doutx4_ledrings.pdf</A></TD>
107
      <TD CLASS=TABCOLOR2>31k</TD>
1200 tk 108
      <TD CLASS=TABCOLOR2>How to connect 16 LED-rings (old PCB)<BR>Note: a 16x16 LED matrix configuration leads to bad LED brightness - a 8x16 matrix configuration is recommended today!</TD>
163 tk 109
    </TR>
110
    <TR>
111
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_doutx4_mtc.pdf">mbhp_doutx4_mtc.pdf</A></TD>
112
      <TD CLASS=TABCOLOR2>12k</TD>
1183 tk 113
      <TD CLASS=TABCOLOR2>How to connect 8 LED-digits for the MTC display of <A HREF="midimon.html">MIDImon</A> (old PCB)</TD>
163 tk 114
    </TR>
115
    <TR>
1200 tk 116
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_dout_8x8leds.pdf">mbhp_dout_8x8leds.pdf</A></TD>
117
      <TD CLASS=TABCOLOR2>18k</TD>
118
      <TD CLASS=TABCOLOR2>How to connect a 8x8 LED matrix (new PCB)</TD>
163 tk 119
    </TR>
1200 tk 120
    <TR>
121
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_dout_8x16leds.pdf">mbhp_dout_8x16leds.pdf</A></TD>
122
      <TD CLASS=TABCOLOR2>18k</TD>
123
      <TD CLASS=TABCOLOR2>How to connect a 8x16 LED matrix (new PCB) - can also be used for LED rings (8x16 matrix is recommended instead of 16x16 for best brightness)</TD>
124
    </TR>
163 tk 125
  </TABLE></DD>
126
  </DD>
127
</DL>
128
 
129
<DL>
130
   <DT><H2> <IMG SRC="images/bullet.gif" ALT=""> Available Ports </H2></DT>
131
   <DD>
1183 tk 132
<P CLASS=DESC>Following interfaces are provided by the DOUTX4 module:</P>
163 tk 133
  <DD><TABLE CLASS=BOX WIDTH="100%" BORDER=1 CELLSPACING=5 CELLPADDING=0>
134
 
135
    <TR>
136
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Name</STRONG></FONT></td>
137
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>No. of pins</STRONG></FONT></td>
138
      <TD NOWRAP CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Description</STRONG></FONT></TD>
139
    </TR>
140
    <TR>
141
      <TD CLASS=TABCOLOR2>J1</TD>
142
      <TD CLASS=TABCOLOR2>5</TD>
1183 tk 143
      <TD CLASS=TABCOLOR2>Interface to CORE:J8 (if LEDs are used). DOUTX4:J1 provides two power pins for 5V/0V, the serial clock, the latch enable and the serial input of the register chain.<BR>This port can also be connected with J2 of another DOUTX module.<BR>
144
      The revised PCB layout from SmashTV uses a 2-row DIL Header instead to simplify the connection to the J8/9 connector of the core module.</TD>
163 tk 145
    </TR>
146
 
147
    <TR>
148
      <TD CLASS=TABCOLOR2>J2</TD>
149
      <TD CLASS=TABCOLOR2>5</TD>
1183 tk 150
      <TD CLASS=TABCOLOR2>Interface to another DOUTX4 module. DOUTX4:J2 provides nearly the same pins like J1, just only the serial input of the first IC is replaced by the serial output of the last IC.<BR>This port can be connected with J1 of the next DOUTX module.</TD>
163 tk 151
    </TR>
152
 
153
    <TR>
154
      <TD CLASS=TABCOLOR2>J3-J6</TD>
155
      <TD CLASS=TABCOLOR2>5</TD>
1183 tk 156
      <TD CLASS=TABCOLOR2>These are the digital output lines, every connector comes with 8 of them and an additional pin for ground. See <A HREF="mbhp/mbhp_doutx4_32leds.pdf">mbhp_doutx4_32leds.pdf</A> as an example how to connect LEDs to these pins, and <A HREF="mbhp/mbhp_doutx4_ledrings.pdf">mbhp_doutx4_ledrings.pdf</A> how to connect LED rings.<BR>
157
</TD>
158
      The revised PCB layout from SmashTV uses 2-row DIL headers instead so that buttons can be easily connected via 2-row DIL sockets.</TD>
163 tk 159
    </TR>
160
  </TABLE></DD>
161
  </DD>
162
</DL>
163
 
164
 
165
<DL>
166
   <DT><H2> <IMG SRC="images/bullet.gif" ALT=""> Used Components </H2></DT>
167
   <DD>
1183 tk 168
   <DD><TABLE CLASS=BOX WIDTH="100%" BORDER=1 CELLSPACING=5 CELLPADDING=0>
163 tk 169
 
170
    <TR>
171
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Part Name</STRONG></FONT></td>
172
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Value</STRONG></FONT></td>
173
      <TD NOWRAP CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Description</STRONG></FONT></TD>
174
    </TR>
175
 
176
    <TR>
177
      <TD CLASS=TABCOLOR2>IC1, IC2, IC3, IC4</TD>
178
      <TD CLASS=TABCOLOR2>74HC595</TD>
179
      <TD CLASS=TABCOLOR2>The digital output shift registers</TD>
180
    </TR>
181
 
182
    <TR>
183
      <TD CLASS=TABCOLOR2>R1-R32</TD>
184
      <TD CLASS=TABCOLOR2>220</TD>
185
      <TD CLASS=TABCOLOR2>These resistors are required if LEDs should be driven with the output, just to limit the current through the LEDs. If you are using the DOUT module with a MIDIO128, and would like to drive additional logic chips instead of LEDs, these resistors are not required and can be replaced by bridges.<BR>If the module is used to drive the LED-Rings of MIDIbox16E, R1-R16 have to be replaced by bridges, see also <A HREF="mbhp/mbhp_doutx4_ledrings.pdf">mbhp_doutx4_ledrings.pdf</A></B></TD>
186
    </TR>
187
 
188
    <TR>
189
      <TD CLASS=TABCOLOR2>C1-C4</TD>
190
      <TD CLASS=TABCOLOR2>100nF</TD>
191
      <TD CLASS=TABCOLOR2>The additional bypass caps have to be placed on the bottom side of the PCB, as close to the +5V power input of the 74HC595 as possible.</TD>
192
    </TR>
193
 
194
    <TR>
195
      <TD CLASS=TABCOLOR2>J*</TD>
196
      <TD CLASS=TABCOLOR2>*</TD>
197
      <TD CLASS=TABCOLOR2>All connectors are optional, the cables can also be soldered directly into the board. Otherwise I suggest SIL headers (header sockets), known from PC motherboards. They are cheap and usefull.</TD>
198
    </TR>
199
 
200
    <TR>
201
      <TD CLASS=TABCOLOR2>DIL</TD>
202
      <TD CLASS=TABCOLOR2>SOCKETS</TD>
1183 tk 203
      <TD CLASS=TABCOLOR2>Don't forget to buy sockets for the shift registers. 4 * 16 pin DIL sockets are required for the old PCB layout, resp. 4 2x5 DIL sockets for the SmashTV layout.</TD>
163 tk 204
    </TR>
205
  </TABLE></DD>
206
  </DD>
207
</DL>
208
 
209
 
210
<DL>
211
  <DT><H2> <IMG SRC="images/bullet.gif" ALT=""> Soldering Guide </H2></DT>
212
  <DD>
1183 tk 213
  <P CLASS=DESC>This soldering guide explains how to build a DOUT module based on the revised layout from <A HREF="http://www.midibox-shop.com" TARGET="_blank">SmashTV</A>. If you want to build a DOUT module based on the old layout (e.g. from <A HREF="http://www.mikes-elektronikseite.de" TARGET="_blank">Mike</A>) please continue at <A HREF="mbhp_dout_oldpcb.html">this page</A>.</P>
214
 
163 tk 215
  <DD><TABLE CELLSPACING=0 CELLPADDING=0>
216
    <TR>
1183 tk 217
      <TD><IMG SRC="mbhp/mbhp_dout_r5_2.jpg" WIDTH=280 HEIGHT=139 BORDER=0 ALT=""></TD>
218
      <TD CLASS=TABCOLOR2>It's always a good idea to start with the smallest components to simplify mounting.<BR>
219
So, start with the caps:
220
<UL>
221
<LI>C1-C4: 100 nF
222
</UL>
163 tk 223
    </TR>
224
    <TR>
1183 tk 225
      <TD><IMG SRC="mbhp/mbhp_dout_r5_3.jpg" WIDTH=280 HEIGHT=143 BORDER=0 ALT=""></TD>
226
      <TD CLASS=TABCOLOR2>Continue with the 4 IC sockets.</TD>
163 tk 227
    </TR>
228
    <TR>
1183 tk 229
      <TD><IMG SRC="mbhp/mbhp_dout_r5_4.jpg" WIDTH=280 HEIGHT=142 BORDER=0 ALT=""></TD>
230
      <TD CLASS=TABCOLOR2>And then solder the resistors - here I'm using the nice 8x220 Ohm arrays (which look like ICs). Unfortunately they are only available at <A HREF="http://www.mouser.com" TARGET="_blank">Mouser</A> (652-4116R-1LF-220). Alternatively mount 32 discrete 220 Ohm resistors (not shown here).</TD>
163 tk 231
    </TR>
232
    <TR>
1183 tk 233
      <TD><IMG SRC="mbhp/mbhp_dout_r5_5.jpg" WIDTH=280 HEIGHT=132 BORDER=0 ALT=""></TD>
234
      <TD CLASS=TABCOLOR2>Thereafter mount the 2x5 SIL headers. As you can see, we are using "polarized" headers for J1 and J2, and DIL headers for J3-J6, so that the silkscreen (which shows the pin names) won't be hidden. It's your personal choice to use "polarized" headers for these connections as well.</TD>
163 tk 235
    </TR>
236
    <TR>
1183 tk 237
      <TD><IMG SRC="mbhp/mbhp_dout_r5_6.jpg" WIDTH=280 HEIGHT=129 BORDER=0 ALT=""></TD>
238
      <TD CLASS=TABCOLOR2>Finally put the 74HC595 ICs into the sockets. Your module is now ready for use!</TD>
163 tk 239
    </TR>
240
    <TR>
1183 tk 241
      <TD COLSPAN=2 CLASS=TABCOLOR2><IMG SRC="mbhp/mbhp_dout_r5_chain.jpg" WIDTH=500 HEIGHT=290 BORDER=0 ALT=""><BR>
242
      Two cascaded DOUTX4 modules connected to J8/9 of a <A HREF="mbhp_core_stm32f4.html">MBHP_CORE_STM32F4</A> module with selfmade IDC cables.</TD>
163 tk 243
    </TR>
244
    <TR>
1183 tk 245
      <TD COLSPAN=2 CLASS=TABCOLOR2><IMG SRC="mbhp/mbhp_dindout_r5_chain.jpg" WIDTH=500 HEIGHT=268 BORDER=0 ALT=""><BR>
246
      Two cascaded <A HREF="mbhp_din.html">DINX4</A> and two DOUTX4 modules connected to J8/9 of a <A HREF="mbhp_core_stm32f4.html">MBHP_CORE_STM32F4</A> module with selfmade IDC cables.<BR>
1186 tk 247
      <A HREF="mbhp/mbhp_dindout_cable.jpg">This picture</A> gives you a more detailed view of the special (selfmade) Y cable which has one additional DIL socket at the middle so that the DIN and DOUT chain can be connected to the J8/9 connector of the core module.</TD>
163 tk 248
    </TR>
249
  </TABLE></DD>
250
  </DD>
251
</DL>
252
 
253
FOOTER