home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / SOUNDUTL / MODCODE.ZIP / HARDWARE.DOC next >
Text File  |  1992-04-12  |  13KB  |  283 lines

  1.              MODOBJ  *********                            (C) Mark J Cox
  2.              MODOBJ  **                                           1991-2
  3.              MODOBJ  *******                              
  4.              MODOBJ  **************   
  5.  
  6.              Hardware devices for great sound output!
  7.  
  8.  
  9.     I. CONTENTS
  10.     ─────────────────────────────────────────────────────────
  11.  
  12.     How to make:
  13.                 Mono output from a parallel port for about 5 pounds
  14.                 Mono output from a parallel port for around 1 pound
  15.                 Stereo from one parallel port for about 12 pounds
  16.         A +5v power supply
  17.         A 22W amplifier
  18.  
  19.     This document has been supplied with MODOBJ.  You may distribute
  20.     this file freely with any program you include MODOBJ in as long as
  21.     it remains unaltered.
  22.  
  23.  
  24.     I. INTRODUCTION
  25.     ─────────────────────────────────────────────────────────
  26.  
  27.     MODPLAY will play modules through the PC Speaker as mentioned above, via
  28.     an D to A converter on any of the three possible parallel ports, in stereo
  29.     if you have an D to A converter on both LPT1 and LPT2 (this sounds really
  30.     good) and also through a special board that plays stereo from one
  31.     printer port ("stereo─on─1")
  32.  
  33.     1. HOW TO MAKE A D/A CONVERTER FOR FIVE POUNDS
  34.     ─────────────────────────────────────────────────────────
  35.  
  36.     A simple circuit for HiFi quality sound needs only a few components (and
  37.     this circuit will work with other software).   It even sounds better than
  38.     a Sound Blaster for sampled output!
  39.  
  40.     You need:
  41.  
  42.     IC1 a ZN426E (about 3 pounds) (Ferranti or Plessey are UK manufacturers)
  43.  
  44.     C1 a 10micro-farad electrolytic capacitor (10V or greater)
  45.  
  46.     C2 a 4.7micro-farad electrolytic capacitor (10V or greater)
  47.  
  48.     R1 a 380ohm resistor (5%, 1/8W)
  49.  
  50.     CON1 a phono socket for connecting a lead to your amplifier
  51.  
  52.     CON2 a 25 way male D-type connector for your parrallel port
  53.  
  54.     A bit of 10 way cable - or 10 short wires.
  55.  
  56.     A +5v supply
  57.  
  58.                                Zn426e    +5V
  59.     D-type pin no  \          ┌────────┐  │  
  60.                   (2)  D0  ───┤9     14├──┤
  61.                   (3)  D1  ───┤10      │ ┌┴┐ 
  62.                   (4)  D2  ───┤11      │ │ │ 390Ω
  63.                   (5)  D3  ───┤12      │ └┬┘
  64.                   (6)  D4  ───┤13     5├──┤
  65.                   (7)  D5  ───┤1      6├──┤       +
  66.                   (8)  D6  ───┤2      4├──│────────┤█────> TO AMPLIFIER
  67.                   (9)  D7  ───┤3   7   │  │        10µF  
  68.                               └────┬───┘ +╧        (may not be needed)
  69.                                    │ 4.7µF█  
  70.                                    │      │  
  71.                   (25) GND ────────┴──────┴────────────── GND
  72.                                    
  73.  
  74.     2. USING A DIFFERENT DAC
  75.     ─────────────────────────────────────────────────────────
  76.  
  77.     Lots of people have found that they cannot get the ZN* chips outside
  78.     the UK - so heres a circuit that will do the same as above..
  79.     Use a DAC0800 or DAC0801 or DAC0803 from National Semiconductors...
  80.  
  81.                                DAC 080x   
  82.    Parallel Port Pin          ┌────────┐0.01µF  0.1µF
  83.                   (2)  D0  ───┤12    16├──┤█────┤█──────┬─── GND 
  84.                   (3)  D1  ───┤11      │                │
  85.                   (4)  D2  ───┤10    15├─────────██████─┘5kΩ 
  86.                   (5)  D3  ───┤9       │                 
  87.                   (6)  D4  ───┤8     14├─────────██████─┐5kΩ 
  88.                   (7)  D5  ───┤7     13├────────────────┤
  89.                   (8)  D6  ───┤6      2├──┤█────────────┴── +5V
  90.                   (9)  D7  ───┤5 3 1  4├──────────┤█────> TO AMPLIFIER
  91.                               └──┬─┬───┘0.1µF    + 10µF  
  92.                                  └─┤             (may not be needed)
  93.                                    │        
  94.                   (25) GND ────────┴──────────────────── GND
  95.  
  96.     The 0.01uF and 2x 0.1uF   capacitors are Ceramic.  Resistor values
  97.     not critical
  98.      
  99.  
  100.     2. GETTING A +5V POWER SUPPLY
  101.     ─────────────────────────────────────────────────────────
  102.  
  103.     Catalogues such as MAPLIN (uk) provide simple circuits for obtaining
  104.     a +5v power supply (it only has to be 100mA maximum).  Alternatively
  105.     you could tap +5v off the keyboard connector or use 3 1.5volt
  106.     batteries (or even 4 1.5volt batteries with two diodes in series to
  107.     drop the voltage).  In fact, anything that produces a voltage in the
  108.     range 4.5 ─ 5.5 volts. (in fact you can even tap +5v from the game
  109.     port).  Don't forget to connect the 0v of your power supply to the GND
  110.     rail shown.
  111.  
  112.     Heres a simple circuit for +5v from mains.  Mains voltage is lethal
  113.     so always get a qualified person to make this if you are unsure.  Make
  114.     certain that the mains voltage is completely isolated from the computer
  115.     side and that it is impossible to touch - If you don't want to take the
  116.     risk then don't make this circuit.
  117.  
  118.            ┌───────────┐     ≈┌───┐+                  ┌──────┐
  119.            │           │      │ B ├─────┬───────┬─────┤ 7805 ├────┬────── +5V
  120.     ───────┤Step down  ├──────┤ R │     │+      │     └──┬───┘    │+
  121.     Mains  │transformer│ 6V   │ I │    ═╪═ C1  ═╪═ C2    │       ═╪═ C3
  122.            │to 6VAC    │ AC   │ D │     │       │        │        │
  123.     ───────┤           ├──────┤ G │     │       │        │        │
  124.            │           │      │ E ├─────┴───────┴────────┴────────┴────── 0V
  125.            └───────────┘     ≈└───┘-
  126.  
  127.     C1     1000 µF electrolytic capacitor            (Circuit from Kenneth
  128.     C2     0.1 µF  ceramic capactitor                 Aaron, Israel)
  129.     C3     100 µF  electrolytic capacitor
  130.     BRIDGE any diode bridge
  131.  
  132.  
  133.     3. HOW TO MAKE AN EVEN CHEAPER D/A
  134.     ─────────────────────────────────────────────────────────
  135.  
  136.     For the price of 20 1% resistors and a plug, with no power supply
  137.     needed you can make a D/A converter that sounds close to the IC
  138.     one above (it seems only the UK can get a Plessey ZN426E)
  139.  
  140.     You need one plug for your amp, one for your parallel port and
  141.     9 20k and 9 10K resistors
  142.     Use 1% resistors if possible ─ and 20k sound much better than 22k
  143.  
  144.           Printer Port:
  145.  
  146.           signal   pin        20k   20k
  147.           D0       2      >───░░░─┬─░░░──0v
  148.                               20k ░ 10k
  149.           D1       3      >───░░░─┤
  150.                               20k ░ 10k
  151.           D2       4      >───░░░─┤
  152.                               20k ░ 10k
  153.           D3       5      >───░░░─┤
  154.                               20k ░ 10k
  155.           D4       6      >───░░░─┤
  156.                               20k ░ 10k
  157.           D5       7      >───░░░─┤
  158.                               20k ░ 10k
  159.           D6       8      >───░░░─┤
  160.                               20k ░ 10k
  161.           D7       9      >───░░░─┤
  162.                               20k ░ 10k  100nF
  163.                                   ├──────┤█────> TO AMPLIFIER
  164.                                   ░ 10k
  165.           GND      20     >───────┼────────────>
  166.                                   0v
  167.           
  168.      Thanks to Harry Stox for the above circuit.  Again, make sure all
  169.      the 0v lines are connected together.  The 100nF capacitor may not
  170.      be needed, try removing it if this circuit sounds poor.
  171.  
  172.  
  173.  
  174.     4. STEREO-ON-1 BOARD
  175.     ─────────────────────────────────────────────────────────
  176.  
  177.     It is possible to play in stereo with only one parallel port (MODPLAY
  178.     version 2.00 onwards) using the circuit below.  MODPLAY will
  179.     automatically detect this circuit if it is present and work out what
  180.     address it is at ─ so you can plug it into any of your parallel ports. 
  181.     MODPLAY needs no further options and will default to playing through
  182.     this device.  The +5v supply can be  anywhere between 4.5 and 5.5 volts
  183.     so it could be run from three 1.5v  batteries. (Or from four
  184.     rechargable batteries as these are only 1.2v) 
  185.  
  186.     * Stereo-on-1 works from MODPLAY 2.03 onwards where it did not in 2.00 *
  187.  
  188.     You can use your stereo-on-1 board with other programs that require
  189.     a single D/A on the port as follows:
  190.  
  191.     Find out what address your port is at (LPT1 = 0378, LPT2 = 0278) and
  192.     add 2 (LPT1 = 037A, LPT2 = 027A).  Go into DEBUG and type
  193.     o 37a,3       (replacing 37a with the port address)
  194.     q
  195.     Then all sound directed to the parallel port will come out of both
  196.     channels. 
  197.  
  198.                                 ZN428
  199.                                 ┌──────────────┐         390Ω
  200.               ┌─────────────────┤11           6├─┬────┬─▒▒▒▒▒──+5v
  201.               │ ┌───────────────┤12           7├─┘    │ 
  202.               │ │ ┌─────────────┤13           3├NC    │      
  203.               │ │ │ ┌───────────┤14            │      │  + 10µF
  204.               │ │ │ │ ┌─────────┤15           5├──────│───╢├─────> Left out
  205.               │ │ │ │ │ ┌───────┤16            │      │     0v───>
  206.       20 >─0v │ │ │ │ │ │ ┌─────┤1           10├──+5v │ 
  207.               │ │ │ │ │ │ │ ┌───┤2            9├─┬─0v │      
  208.       14 >────│─│─│─│─│─│─│─│───┤4            8├─┘    │    
  209.               │ │ │ │ │ │ │ │   └──────────────┘      │    
  210.       11 >────┤ │ │ │ │ │ │ │   ZN428                 │  + 1µF    
  211.               │ │ │ │ │ │ │ │   ┌──────────────┐      ├───╢├─0v
  212.        9 >────┴─│─│─│─│─│─│─│───┤11 D7   VRIN 6├──────┘
  213.        8 >──────┴─│─│─│─│─│─│───┤12 D6  VROUT 7├ NC
  214.        7 >────────┴─│─│─│─│─│───┤13 D5     NC 3├ NC     
  215.        6 >──────────┴─│─│─│─│───┤14 D4         │        + 10µF
  216.        5 >────────────┴─│─│─│───┤15 D3    OUT 5├─────────╢├─────> Right out
  217.        4 >──────────────┴─│─│───┤16 D2         │           0v───>
  218.        3 >────────────────┴─│───┤1 D1     +V 10├──+5v    
  219.        2 >──────────────────┴───┤2 D0     0v  9├─┬0v
  220.        1 >──────────────────────┤4 !EN    0v  8├─┘
  221.       25 pin male D connector   └──────────────┘ 
  222.  
  223.  
  224.       Notes:
  225.  
  226.       Make sure all the 0v lines are connected together and connected to the
  227.       0v line of your power source.  Also, make sure the +5v lines are 
  228.       connected together.  The lines marked 'NC' do not need to be connected.  
  229.  
  230.       If a ZN428 is not available, any D/A with input latches will work -
  231.       the D/A should latch the data bus when pin 4 (!EN) is low.
  232.  
  233.       ─│─ = No connection, ─┼─ = joined
  234.  
  235.       The above circuit (Stereo-on-1) is (C) Mark J Cox 1991, 29 Lundie Close
  236.       Stenson Fields, Derby DE2 3AN; and is supplied for personal use only.  
  237.       For any other use, please contact the author at the address above. If 
  238.       this circuit is abstracted or incorporated into any other document or
  239.       circuit then that document or documentation supplied with that circuit
  240.       must contain this paragraph of text.  Any commercial use where not 
  241.       agreed by written contract with the author (Mark J Cox) is prohibited.
  242.  
  243.  
  244.      13. STEREO AMPLIFIER
  245.      ─────────────────────────────────────────────────────────
  246.  
  247.      For those of you who have built a stereo DAC and haven't enough
  248.      inputs to your Amplifier - Kenneth Aaron has supplied this
  249.      circuit which is designed to give a high power (11W per channel)
  250.      high quality, low interference, single rail supply amplifier!
  251.  
  252.       Enable
  253.      >──────────────┬────────┐   ┌────┬─────────────────────── +12v
  254.                     │+       │   │    │
  255.                    ═╪═ 10µF┌─┴───┴────┴─────┐
  256.            0v ──────┘      │ 7   13   3    1├──────────── Left
  257.       Left     470nF    ┌──┤4              2├──────────── Speaker
  258.      >─────────╫────────┤  │                │
  259.                         └──┤5   TDA 7370  14├──────────── Right
  260.       Right    470nF    ┌──┤11            15├──────────── Speaker
  261.      >─────────╫────────┤  │                │
  262.                         └──┤12              │
  263.                     +┌─────┤6    8   9    10├─NC
  264.                47µF ═╪═    └─────┬───┬──────┘
  265.                      │           │   │
  266.                      └───────────┴───┴───────────────────────── 0v
  267.  
  268.      Make sure that 0v of the +12v supply is connected to all the 0v
  269.      connections on the main circuit.   The enable line has to be tied
  270.      to +12v to 'switch on' the amp
  271.  
  272.  
  273.      14. AUTHOR
  274.      ─────────────────────────────────────────────────────────
  275.  
  276.      Mark J Cox                 Electronic Mail:
  277.      29 Lundie Close                     m.j.h.cox@bradford.ac.uk
  278.      Stenson Fields                    
  279.      Derby, UK                  If that fails - try:
  280.      DE2 3AN                          bc732@cleveland.freenet.edu
  281.                                
  282.  
  283.