<?xml version="1.0"?>
<!--<!DOCTYPE report SYSTEM "chrome://media/structure/academic-entities.dtd">-->
<!DOCTYPE report SYSTEM "../../media/structure/academic-entities.dtd">

<?xml-stylesheet type="text/css" href="../../resources/style/report.css" ?>

<!-- XXX Mozilla Bug 17643 (M13) -->

<!-- This file is located at: 
http://www.bath.ac.uk/%7Epy8ieh/a/academic/beam-splitter/
  -->

<!-- tables: --> <!-- XXX Bugzilla Bug 18217 (NEW) -->

<!-- doesn't print when images are not transparent.
     possible problem with backtick ` and printing.
     printing transparent gifs prints a big black box
     interlaced gifs don't get sized
     XXX Bugzilla Bugs not reported.
  -->


<report xmlns="http://www.bath.ac.uk/%7Epy8ieh/media/structure/report"
        xmlns:math="http://www.w3.org/Math/MathML" 
        xmlns:html="http://www.w3.org/TR/REC-html40"> <!-- XXX -->

   <header>
      <title> Design, Construction and Profiling of a CRO Beam Splitter </title>
      <author> Ian Hickson </author>
      <credit title="Tutor"> Dr Laughton </credit>
      <address> Department of Physics <br/> University of Bath <br/> Bath BA2 7AY </address>
      <date> March 2000 <br/> (2nd Year) </date>

      <abstract> Two analogue signals are chopped using a 4016B CMOS
      bilateral switch and a 555 timer so that they can be displayed
      simultaneously on a CRO while using only a single input. An
      operational adder is then used to add DC-offset options to the
      system. The resulting circuit is found to work reliably with
      input signals of 9V pk-pk, and frequencies of up to 100kHz.
      Using two identical circuits, four separate waveforms are
      displayed on a single, two channel CRO. </abstract>

   </header>

   <body>

      <introduction>
<!--
        <ednote> What this section should include:
               <list>
                  <item> Explanation of aim </item>
                  <item> Diagram </item>
                  <item> <em>Brief</em> theoretical background </item>
                  <item> Methods </item>
               </list>
         </ednote>
-->
         <p>The aim of this project was to research, develop, and
         characterise a beam splitter circuit to allow another channel
         on a cathode ray oscilloscope. The required specifications of
         this beam splitter were:</p>

         <list type="ordered">

            <item>The beam splitter was to be self contained, with the
            exception of the power supply.</item>

            <item>The beam splitter was to have two independent
            inputs.</item>

            <item>The beam splitter will have "shift" potentials to
            separate the two signals.</item>

         </list>

         <p>Two methods were suggested for the implementation of this
         system.</p>

         <p>The first is <dfn>alternate mode</dfn>, where one input is
         connected to the CRO for one complete scan, then the other
         input is connected for the next cycle, and so on,
         alternately. </p>

         <p> The second is <dfn>chopped mode</dfn>, where a switch
         operates at a higher frequency than the timebase so that each
         input signal is connected to the CRO for a number of short
         intervals during beam scan. </p>

         <p> The second method was used, as the first is only useful
         for <em>extremely</em> high frequencies way beyond the top
         limit (1MHz) of the range of frequencies that the function
         generators used to generate the test signals, where the time
         base used would be so short as to show the chopping.</p>

      </introduction>

      <section title="1. Circuit Design">

         <!-- 
         <ednote> What this section should include:
               <list>
                  <item> First design </item>
                  <item> Diagram </item>
                  <item> Problems with the design </item>
                  <item> Other issues with the equipment </item>
               </list>
         </ednote>
         -->

         <p> Based on the brief, a first approximation of the
         circuit's design was drawn out, as shown in figure 1. This
         design was made based on previous experience with
         electronics. </p>

         <figure>
            <html:div style="width: 204.555mm;">
              <html:img src="concept.gif" alt="Eek! please e-mail me to ask me what this diagram is -- I haven't had the time to write alternative text it seems!"/>
            </html:div>
            <caption num="1"> Original design concept. Two analogue
            inputs first have a DC offset applied, and are then fed to
            a bilateral switch, which is controlled by a periodic
            square wave signal. The output (one signal) is displayed
            on an oscilloscope. </caption>
         </figure>

         <p> Research then uncovered three reasonably simple circuits,
         one for each module in the original circuit design. Note that
         the exact workings for each component in the circuit can be
         found in any standard text book [1]. </p>

         <p> Note. The numbers on the wires connected to the
         integrated circuits on the diagrams below refer to the pin
         numbers. </p>

        <!--
         <ednote> What this section should include:
               <list>
                  <item> Explanation </item>
                  <item> Diagram </item>
                  <item> Construction 
                    <list>
                       <item> Use of storage oscilloscope </item>
                    </list>
                  </item>
                  <item> Improvements over initial designs
                    <list>
                       <item> No circuits </item>
                       <item> High gain amplifier </item>
                       <item> Uses proven, industrial-grade, reliable equipment </item>
                       <item> Uses coaxial cable, less mains interfeerence </item>
                    </list>
                  </item>
                  <item> Limitations of the design 
                    <list>
                       <item> Sensitivity </item>
                       <item> (within brief) limited range of 1-5m </item>
                       <item> (within brief) can only detect objects perpendicular to transceiver </item>
                    </list>
                  </item>
               </list>
         </ednote> 
         -->

         <subtitle>1.1 Bilateral Switch</subtitle>

         <p>The most important part of the circuit is the bilateral
         switch. This is a component which lets an analogue signal
         pass between two pins depending on the voltage difference
         between a control pin and the earth. This is similar to a
         transistor, but for relatively high voltage analogue signals
         as opposed to TTL signals.</p>

         <p>As shown in figure 2, we used a 4016B CMOS Bilateral
         Switch, since that was what was recommended in the brief.
         This provides a pass-through resistance of 300 Ohms for the
         analogue signals [1]. </p>

         <!--

          CMOS bilateral switch with split-rail power supplies for
          a.c. signal operation VSS < Vin < VDD. IC pin numbers refer
          to 4016 DIL package.

          [1] page 228.

         -->

         <figure>
            <html:div style="width: 98.129mm">
              <html:img src="splitter%20circuit.gif" alt="Eek! please e-mail me to ask me what this diagram is -- I haven't had the time to write alternative text it seems!" />
            </html:div>
            <caption num="2"> The connections to the 4016B CMOS Bilateral Switch. </caption>
         </figure>

         <p>The 10k Ohm resistor on the outputs provides an output
         impedance to the CMOS, which is required for good power
         transfer. (It was also the recommended resistance on the
         circuit found in research.) </p>

         <subtitle>1.2 Triggering the Bilateral Switch</subtitle>
         
         <p> For the most effective signal chopping, the bilateral
         switch must allow only one input to pass through at any one
         time, otherwise the waves will <em>add</em> on the CRO. This
         has to happen periodically; if overall one input is let
         through for a longer time than the other then the former wave
         will appear brighter. A periodic square wave was therefore
         used.</p>

         <p> The two inputs must be triggered with the same frequency
         but the polarity of the control inputs must be opposite, so
         that as one signal passes through, the other is not. Since
         the control inputs can be triggered using TTL voltages, a NOT
         gate can be used to ensure that the two control voltages are
         always of opposite polarity (5V vs 0V in this case). This
         means that the square wave has to be generated in the range
         0V to 5V.</p>

         <p> Note that the slight response delay of the NOT gate can
         cause some problems. This is discussed in the limitations
         section (section 4).</p>

         <p>As with the bilateral switch, circuits for a timer and NOT
         gate were found after some research [1]. These are shown in
         figures 3 and 4. </p>

         <figure>
            <html:div style="width: 80.603mm;">
              <html:img src="timer%20circuit.gif" alt="Eek! please e-mail me to ask me what this diagram is -- I haven't had the time to write alternative text it seems!"/>
            </html:div>
            <caption num="3"> The connections around the 555 timer which result in a 50kHz square wave. </caption>
         </figure>

         <figure>
            <html:div style="width: 66.802mm;">
              <html:img src="not%20circuit.gif" alt="Eek! please e-mail me to ask me what this diagram is -- I haven't had the time to write alternative text it seems!" />
            </html:div>
            <caption num="4"> The connections to the 7404 (NOT gate). </caption>
         </figure>

         <p>A frequency (<var>f</var>) of 50kHz was used since that
         allowed the workings of the circuit to be clearly seen on the
         CRO, for analysis purposes. This value is also the value
         recommended in the brief.</p>

         <p> To set the frequency of the 555 timer, the resistor
         between the TRIGGER and OUTPUT pins,
         <var>R<sub>t</sub></var>, and the capacitor between the
         THRESHOLD pin and earth, <var>C<sub>t</sub></var>, were
         selected using equation 1 and a recommendation that
         <var>C<sub>t</sub></var> be set to a value close to 10nF
         [1].</p>

         <html:table>
           <html:caption>Equation 1</html:caption>
           <html:tr>
              <html:td> <var>f</var> = </html:td> 
              <html:td>
                <html:table>
                  <html:tr>
                    <html:td> 1 </html:td> 
                  </html:tr>
                  <html:tr>
                    <html:td> 1.4 <var>R<sub>t</sub></var> <var>C<sub>t</sub></var>  </html:td> 
                  </html:tr>
                </html:table>
              </html:td>
           </html:tr>
         </html:table>

<!--
         <math:math>
           <math:mrow>
             <math:mi> f </math:mi> 
             <math:mo> = </math:mo>
             <math:mfrac>
               <math:mrow> 
                 <math:mn> 1 </math:mn> 
               </math:mrow>
               <math:mrow> 
                 <math:mn>1.4</math:mn> 
                 <math:msub> <math:mi>R</math:mi> <math:mi>t</math:mi> </math:msub>
                 <math:msub> <math:mi>C</math:mi> <math:mi>t</math:mi> </math:msub>
               </math:mrow>
             </math:mfrac>
           </math:mrow>
         </math:math>
-->

         <p>Thus a value of <var>R<sub>t</sub></var> of 1.5 k Ohm was
         selected, as shown in figure 3.</p>

         <p>Note that the RESET pin on the 555 is kept high at all
         times. This is because the 555 timer will reset when the
         RESET input goes <em>low</em> (0V).</p>

         <subtitle>1.3 DC Offset</subtitle>

         <p>The final piece of the overall circuit is the DC offset
         module. Research proposed that an operational adder (a
         circuit built around an operational amplifier such as the
         741) would be an adequate circuit to use [1]. The standard
         circuit was slightly modified to include a pair of variable
         resistors of wide range (0-1M Ohm) which allowed the exact
         voltage to add to the input to be selected without explicitly
         changing the power supply.</p>

         <figure>
            <html:div style="width: 70.104mm;">
              <html:img src="dc%20offset%20circuit.gif" alt="Eek! please e-mail me to ask me what this diagram is -- I haven't had the time to write alternative text it seems!" />
            </html:div>
            <caption num="5"> An 741 Operational Amplifier used as an operational adder. </caption>
         </figure>

         <p> Using the variable resistors as shown in figure 5, it is
         possible to offset the signal by -7.5V to +7.5V. Those values
         were selected since -7.5V and +7.5V rails were already
         available on the circuit board, and that range is beyond the
         abilities of the bilateral switch to cope with and so does
         not limit the offset feature's range. </p>

         <p>The resistances for this circuit are set by equation 2.</p>

         <html:table>
           <html:caption>Equation 2</html:caption>
           <html:tr>
             <html:td>
               <html:table>
                 <html:tr>
                   <html:td> - <var>v</var><sub>out</sub> </html:td> 
                 </html:tr>
                 <html:tr>
                   <html:td> <var>R</var><sub>F</sub> </html:td> 
                 </html:tr>
               </html:table>
             </html:td>
             <html:td> = </html:td> 
             <html:td>
               <html:table>
                 <html:tr>
                   <html:td> <var>V</var><sub>1</sub> </html:td> 
                 </html:tr>
                 <html:tr>
                   <html:td> <var>R</var><sub>1</sub> </html:td> 
                 </html:tr>
               </html:table>
             </html:td>
             <html:td> + </html:td> 
             <html:td>
               <html:table>
                 <html:tr>
                   <html:td> <var>V</var><sub>2</sub> </html:td> 
                 </html:tr>
                 <html:tr>
                   <html:td> <var>R</var><sub>2</sub> </html:td> 
                 </html:tr>
               </html:table>
             </html:td>
           </html:tr>
         </html:table>

         <p>Given that an <em>adder</em> is what is wanted,
         <var>v</var><sub>out</sub> = <var>V</var><sub>1</sub> +
         <var>V</var><sub>2</sub> by definition. Thus it follows that
         <var>R</var><sub>F</sub> = <var>R</var><sub>1</sub> =
         <var>R</var><sub>2</sub>. A value of 150k Ohm was selected
         and found to be suitable, and was also used for
         <var>R</var><sub>x</sub>.</p>

         <subtitle>1.4 Test Signals</subtitle>

         <p>Test signals came from a pair of wave function generators,
         but could of course come from any analogue signal source
         within the range of voltages described in the profile section
         (section 2). Indeed, to produce one of the output charts
         (figure 9) a total of 6 separate wave function generators
         were used simultaneously.</p>

      </section>

      <section title="2. Profile">

        <p>The completed circuit was then tested to find the input
        voltage range and the frequencies it could handle.</p>

        <p class="heehee">A closer study should probably have been
        made, but each examination ran the risk of frying the CMOS so
        it was felt wiser not to pursue this too enthusiastically.
        </p>

        <subtitle>2.1 Input Signals at 1V pk-pk</subtitle>
      
        <p>For working operation, it was found that
        <var>V<sub>DD</sub></var> could not be set to +7.5V.
        <var>V<sub>SS</sub></var> and <var>V<sub>DD</sub></var> had to
        be set to -7.5V and 9.0V respectively.</p>

        <p>Setting <var>V<sub>DD</sub></var> below 9V caused the waves
        to add instead of chop. Conversely, increasing
        <var>V<sub>DD</sub></var> to above +14.0V caused the signal to
        die out altogether (the CMOS was probably saturating).</p>

        <p>Setting <var>V<sub>SS</sub></var> to a voltage more negative
        than -8V also caused the waves to add.</p>

        <p>It would appear that the actual rule is that
        <var>V<sub>DD</sub></var>-<var>V<sub>SS</sub></var> must be in
        the range 16V - 24V for the 4016B to perform to specifications.</p>

        <subtitle>2.2 Input Signals at 9V pk-pk</subtitle>

        <p>With the input waves at 9V peak to peak, the CMOS was found
        to have to require a 17V to 37V difference between
        <var>V<sub>DD</sub></var> and <var>V<sub>SS</sub></var> for
        the waves to reliably chop.</p>

        <subtitle>2.3 Frequency Response</subtitle>

        <p>Surprisingly, considering the warnings regarding the
        expected range of frequencies given in the brief, the beam
        splitter circuit was found to work perfectly with input
        signals with frequencies up to approximately 100kHz, twice the
        frequency of the timer. Above this frequency the chopping
        continued to work, but less than 100% of the amplitude of the
        input waves was transmitted, probably due to a deficiency in
        the frequency response of the 4016B. </p>

      </section>

      <section title="3. Results">

        <p> With the use of a graphical printer CRO [2], permanent
        records of some of the results were obtained. </p>

        <subtitle>3.1 Normal Operation</subtitle>

         <figure>
            <html:div style="width: 180.269mm;">
              <html:img src="two%20channels%20disconnected.jpeg" alt="Eek! please e-mail me to ask me what this diagram is -- I haven't had the time to write alternative text it seems!" />
            </html:div>
            <caption num="6"> Two high frequency waves displayed on
            the CRO at a relatively short time base.  </caption>
         </figure>

         <p> Careful study of figure 6 shows how the two waves are
         never shown simultaneously: at every position along the time
         (horizontal) axis, if one signal is being displayed, the
         other is cut. This is because only one signal is
         <em>actually</em> being shown on the CRO at all -- what looks
         like two waves is in fact a single wave, chopped at regular
         intervals between the two inputs to the beam splitter.</p>

         <figure>
            <html:div style="width: 185.116mm;">
              <html:img src="two%20channels%20low%20time%20base.jpeg" alt="Eek! please e-mail me to ask me what this diagram is -- I haven't had the time to write alternative text it seems!" />
            </html:div>
            <caption num="8"> Two very high frequency waves displayed
            on a very short time base, with "connect-the-dots" mode
            enabled. The chopping action is clearly visible. </caption>
         </figure>

         <p>Figure 8 shows the chopped mode operation in more detail.
         Here, the "connect-the-dots" mode has been enabled on the
         CRO, and for approximately half of the time, a triangular
         wave signal is displayed, and for the other half of the time,
         a sinusoidal signal (of approximately 4 times the wavelength)
         is shown. </p>

         <subtitle>3.2 DC Offset</subtitle>

         <figure>
            <html:div style="width: 180.269mm;">
              <html:img src="two%20offset%20channels.jpeg" alt="Eek! please e-mail me to ask me what this diagram is -- I haven't had the time to write alternative text it seems!" />
            </html:div>

            <caption num="7"> Two low frequency waves at a long time
            base, with "connect-the-dots" mode enabled, showing the DC
            offset module in operation. </caption>

         </figure>

         <p> In figure 7, a DC offset has been applied to the signal
         from channel 2, a triangular wave, thus moving it below the
         section of the output which represents channel 1.</p>

         <p> This allows the two waves to be compared and measured
         separately, without having to be very careful about not
         reading the wrong amplitude or wavelength. Without a DC
         offset, this would be an especially difficult issue if the
         waves are of similar shapes (e.g., both sinusoidal) and of
         similar amplitudes and wavelengths.</p>

         <p>The blackness comes from the lines between the signals, as
         in figure 8, being very close together. When
         "connect-the-dots" mode is disabled, the CRO appears to
         display two completely separate signals, even though only one
         cable was connected to the oscilloscope at the time.</p>

         <subtitle>3.3 Extension</subtitle>

         <p>Using two beam splitter circuits in parallel, each
         splitting two inputs into a single output, and then
         connecting these two outputs to the two inputs on the CRO,
         one can display four simultaneous waves on a single screen.
         Figure 9 demonstrates this.</p>

         <figure>
            <html:div style="width: 188.383mm;">
              <html:img src="four%20channels.jpeg" alt="Eek! please e-mail me to ask me what this diagram is -- I haven't had the time to write alternative text it seems!" />
            </html:div>
            <caption num="9"> Four channels displayed on a single
            two-input CRO using a combination of two beam splitter
            circuits. </caption>
         </figure>

      </section>

      <section title="4. Limitations">

        <p>The output from the 555 timer proved to be slightly
        "dirtier" than could have been hoped. The negative output
        (discharge output) of the timer, in particular, contained many
        spikes and other imperfections. The NOT gate's output did not
        contain many of these imperfections and that is one reason
        that the NOT gate was used, together with the main timer
        output, rather than just using the two outputs of the 555.
        </p>
        
        <p>However, use of a NOT gate introduces some problems of its
        own, in particular the propagation delay which can result in
        the two waves adding for a short time instead of being
        displayed sequentially. This can cause spurious dots (in dot
        mode) or lines (in "connect-the-dots" mode) on the CRO
        display.</p>

        <p>At the frequency used (50kHz) this is not a noticeable
        problem. It would probably become considerably more noticeable
        at higher timer frequencies.</p>

      </section>

      <conclusion>

        <p>A circuit was designed to chop two analogue signals using a
        4016B CMOS bilateral switch and a 555 timer so that they can
        be displayed simultaneously on a CRO while using only a single
        input. An operational adder is also used to add DC-offset
        options to the system.</p>

        <p>This circuit was found to work reliably with input signals
        of up to 9V pk-pk, and frequencies of up to 100kHz. Using two
        identical circuits, four separate waveforms are displayed on a
        single, two channel CRO.</p>

      </conclusion>

      <appendix title="A. Acknowledgements">

        <p>My lab partner, Tim Wilkins, proved to be exceptionally
        competent at wiring circuits, and the success of this project
        can be largely attributed to this ability.</p>

        <p>Mike Westmuckett and Phil Waring allowed us to temporarily
        steal their version of the beam splitter in order to generate
        figure 9.</p>

        <p>Mike Harriman was once again very helpful in finding and
        providing us with all the equipment for which we asked.</p>

      </appendix>

      <references style="byid">
         
         <ref id="1">
           <author>Martin Hartley Jones</author> 
           <pubyear>1985</pubyear> 
           <resource>A Practical Introduction to Electronic Circuits, Second Edition</resource>
           <publisher>Cambridge University Press</publisher>
         </ref>

         <ref id="2">
           <resource>Manual, Hameg Instruments Graphic Printer HM 8148-2</resource>
           <pubyear>1989</pubyear>
           <publisher location="Bedfordshire, UK">Hameg LTD</publisher>
         </ref>

         <!--
          Hameg LTD
          74-78 Collington Street
          LUTON, Bedfordshire LU1 1RX
         -->

      </references>

   </body>

</report>
