Docstoc

18 PIN PROJECT BOARD WITH OUTPUT DRIVERS

Document Sample
18 PIN PROJECT BOARD WITH OUTPUT DRIVERS Powered By Docstoc
					18 PIN PROJECT BOARD WITH OUTPUT DRIVERS

     CHI-030       Standard 18-pin Project Board
     CHI-035       High Power 18-pin Project Board
     Also available
     CHI-040       8 pin Project Board
     AXE-020       28 pin Project Board

Introduction
     The 18 pin microcontroller project boards are available in two
     configurations, standard and high-power. The input configuration on
     both boards is identical, providing up to 5 inputs.

     The standard board uses a darlington driver IC to provide 8 digital (on/off)
     outputs. Each output is rated at 800mA.


          V1+                                                                      V2+
            0                                                                      7
            1                                                                      6
            2                                                                      5
            3                                                                      4
            4                                                                      3
            6                                                                      2
            7                                                                      1
            R                                                                      0
            G                                                                      G
                              G      V1+               G    V2+


     The high power board uses 4 FETs to provide 4 high power digital outputs (rated
     at 1.5A each), and the option of a L293D motor driver IC to provide 2 reversible
     motor outputs, rated at 1A each. Please note that the L293D chip must be
     purchased separately.


         V1+                                                                                     V2+
            0                                                                                    motor B
            1
            2                                                                                    motor A
            3
            4                                                                                    3
            6                                                                                    2
            7                                                                                    1
            R                                                                                    0
            G                                                                                    G


     Both boards are supplied ready for use with a PICAXE-18 or PIC16F627
     microcontroller. However the boards may be modified as described in Appendix
     A for use with the older style PIC16F84A (or any other 18 pin microcontroller).




revolution          Revolution Education Ltd. Email: info@rev-ed.co.uk Web: www.rev-ed.co.uk   Version 3.1 31/01/04
                                                                                                                      18 PIN.P65
18 PIN PROJECT BOARD WITH OUTPUT DRIVERS                                                                                        2




Project Boards Power Supply
      The projects board require a single 3-5V power supply to operate. We recommend
      this is supplied via AA cell battery packs, connected to the V2+ terminal
      connections beside the reset switch. This pack will then power the
      microcontroller and the output devices.

      The black wire is
      connected to the G
      (ground) connection
      and the red wire to the
      V2+ connection.




                                                                           G             V2+
                                                                      black
                                                                                     red




      If a higher voltage (e.g. 12V) is required to drive the FET or darlington outputs,
      two separate power supplies may be used. In this case the second power supply
      only powers the output devices. The 3-5V power supply is connected to V1+ and
      the second 12V power supply is connected to V2+. When using two power
      supplies the resistor shown must be cut off the board to separate the supplies.



                                         cut off this resistor




                                            G        6V               G     6-12V
                                                  (PIC)                   (output)




revolution            Revolution Education Ltd.    Email: info@rev-ed.co.uk Web: www.rev-ed.co.uk   Version 3.1 31/01/04
                                                                                                                           18 PIN.P65
18 PIN PROJECT BOARD WITH OUTPUT DRIVERS                                                                                            3




Output Devices
      Output devices are connected between the pairs of holes on the pcb (pin and
      V2+) as shown below.


                                                                                 black


                                                                                   red


                                                                                         buzzer




                                                                                         motor




      Note that motors should be suppressed by
      soldering a 220nF polyester capacitor across the
      motor terminals to prevent electrical noise
      affecting the circuit.




Controlling Motors on the High Power Board
      To control motors an L293D motor driver IC must be fitted to the board as shown
      below. Only a single 4.5-6V supply should be used with motor outputs.


          V1+                                                                                            V2+
               0                                                                                         motor B
               1
               2                                                                                         motor A
               3
               4                                                                                         3
               6                                                                                         2
               7                                                                                         1
               R                                                                                         0
               G                                                                                         G


      Note that there is a 1.5V voltage drop within the chip and so, for instance, if a 6V
      supply is used the motor voltage will be 4.5V.

      The chip is designed to run warm in use. This is normal.
      The direction of rotation of the motors is defined as follows:

       Pin 4       Pin 5      Motor A                   Pin 6       Pin 7       Motor B
        off         off       off                        off         off        off
        on          off       forward                    on          off        forward
        off         on        reverse                    off         on         reverse
        on          on        off                        on          on         off




revolution                 Revolution Education Ltd.   Email: info@rev-ed.co.uk Web: www.rev-ed.co.uk   Version 3.1 31/01/04
                                                                                                                               18 PIN.P65
18 PIN PROJECT BOARD WITH OUTPUT DRIVERS                                                                                         4




Input Devices
      Analogue inputs are connected to input 0 (A) ands input 1 (B) as shown.
      Digital inputs are connected between V1+ and the pin as shown below.


                       analogue
                       e.g. potentiometer




             digital
             switch




      Note that input 5 does not exist. This is a characteristic of the microcontroller
      design.

      The connections marked 3 and 4 should not be used with the PICAXE system.
      These are used by the PICAXE chip as the ‘serial in’ and ‘serial out’ PC download
      connection.

      The board is configured as supplied to use inputs 0 and 1 as analogue inputs. To
      use these inputs as digital inputs instead, or to provide a pull down resistor for
      the analogue potential divider, solder an appropriate resistor (e.g. 10k) into the
      positions marked R8 (input 0) and R7 (input 1).

      Reset Switch
      A small reset switch is provided on the board. If desired an external reset switch
      can be connected in parallel between the R input and G (ground, 0V).

      Piezo Sounder (Chip Factory Systems Only)
      The Chip Factory system automatically re-configures input 4 as a sound output.
      The piezo sounder should be connected between V1+ and input 4 for correct
      operation.




revolution              Revolution Education Ltd.   Email: info@rev-ed.co.uk Web: www.rev-ed.co.uk   Version 3.1 31/01/04
                                                                                                                            18 PIN.P65
18 PIN PROJECT BOARD WITH OUTPUT DRIVERS                                                                                          5




Connecting to the Project Boards
      Inputs and outputs may be soldered via wires directly to the board. Alternately
      you may wish to purchase screw terminal blocks (5mm pitch) and solder these to
      the boards as shown below. This allows wires to be temporarily connected via the
      screw terminals.




                  V1+                                                                             V2+
                     0                                                                            7
                     1                                                                            6
                     2                                                                            5
                     3                                                                            4
                     4                                                                            3
                     6                                                                            2
                     7                                                                            1
                    R                                                                             0
                    G                                                                             G
                                           G V1+                    G V2+



      Note that when using terminal blocks it is necessary to ‘share’ the V2+ output
      with all output pins and to ‘share’ the V1+ output with all inputs.




                                                                                                      V2+
                                                                                                      motor B


                                                                                                      motor A


                                                                                                      3
                                                                                                      2
                                                                                                      1
                                                                                                      0
                                                                                                      G




revolution           Revolution Education Ltd.   Email: info@rev-ed.co.uk Web: www.rev-ed.co.uk       Version 3.1 31/01/04
                                                                                                                             18 PIN.P65
18 PIN PROJECT BOARD WITH OUTPUT DRIVERS                                                                                      6




Appendix A - Adapting the board for use with the old PIC16F84A
      The project board as supplied is configured for use with a PICAXE-18 or
      PIC16F627 using the internal resonator.

      To modify the board for use with a PIC16F84A, or any other 18 pin
      microcontroller that requires an external resonator, the following modifications
      are required.

      (Note that these changes apply to both boards, although the standard board is
      illustrated).
                                                     solder resonator here




                 cut off these two resistors




      Cut off the two 10K resistors as shown.
      Solder a 4MHz 3 pin ceramic resonator as shown.
      No external connection should be made to inputs 6 and 7, as these are now the
      resonator pins.

      In addition inputs 0 and 1 now become digital inputs (rather than analogue
      inputs as with the 16F627). This requires the addition of two extra 10k pull-down
      resistors as shown.


                                                     add these two
                                                      10k resistors




revolution           Revolution Education Ltd.   Email: info@rev-ed.co.uk Web: www.rev-ed.co.uk   Version 3.1 31/01/04
                                                                                                                         18 PIN.P65
18 PIN PROJECT BOARD WITH OUTPUT DRIVERS                                                                                                           7




Appendix B - CHI030 Circuit Diagram

              CHI030 Project Board
   V+                                                                                                                                   V+
   PIC                                                                                     R9                                           PWR
                               C1                + C2        R6               14                                  10
                                                                              V+                                     V+             V
                                                                                            13            1                    18
       V                                                                        Out7                          In7      Out7         7
                                                                     17                     12            2                    17
       0                                                                  In0   Out6                          In6      Out6         6
                                                                     18                     11            3                    16
       1                                                                  In1   Out5                          In5      Out5         5
                                                                      1                     10            4                    15
       2                                                                  In2   Out4                          In4      Out4         4
                                                                      2                     9             5                    14
       3                                                                  Txd   Out3                          In3      Out3         3
                                                                      3                     8             6                    13
       4                                                                  Rcv   Out2                          In2      Out2         2
                                                                     15                     7             7                    12
       6                                                                  In6   Out1                          In1      Out1         1
                                                                     16                     6             8                    11
       7                                                                  In7   Out0                          In0      Out0         0
                                                                      4                                                             G
       R                                                                  Reset
       G                                                                           0V                                  0V
                                             X1                                    5 IC1                               9 IC2
                                                              R11
                R8
                     R7
                          R4
                               R3
                                    R5
                                          R2
                                                  R1




                                                                      SW1
                                                 CT1
                                                              R10                                  (Test)



     G                                                                                                                                  G
     PIC                                                                                                                                PWR


Appendix B - CHI030 / CHI035 Parts List
      R1-5, 7,8,10          10k resistor
      R6                    4k7 resistor
      R9                    100R resistor
      R11                   22k resistor
      CT1                   3.5mm stereo PICAXE download socket
      SW1                   minature reset switch
      C1                    100nF polyester
      C2                    100uF 16V electrolytic
      IC1                   PIC
      IC2                   ULN2803A (CHI030 only)
      Additional CHI035 parts
      IC2                   L293D (optional)
      D1-4                  1N4001 diode
      Q1-4                  IRF520 FET
      C3-4                  220nF polyester




revolution           Revolution Education Ltd.    Email: info@rev-ed.co.uk Web: www.rev-ed.co.uk   Version 3.1 31/01/04
                                                                                                                                              18 PIN.P65
18 PIN PROJECT BOARD WITH OUTPUT DRIVERS                                                                                                               8




Appendix D - CHI035 Circuit Diagram
        The project board was initially designed for single power supply use when the
        L293D was used, and hence the L293D logic and main supply connections were
        not separated. At users request, these two connections will be modified on V3 of
        the board (see the text by FETs - will say ‘PIC Interface B V2’ or ‘V3’). If desired
        (on V2 boards) the Vs pin (pin 8) can be separated by cutting the two tracks to
        pin8 and soldering V+ PIC to pin 9 and V+ PWR to pin 8.

             CHI035 Project Board (v2)                                                                 R9
V+                                                                                                                                     V+
PIC                                                                                                                                    PWR
                              C1             + C2          R6                                                  1 9 16 8
                                                                            14
                                                                                                                V+
                                                                             V+                                 IC2                V
                                                                                           13          10                     11
    V                                                                          Out7                         In3     Out3           7
                                                                    17                     12          15                     14
    0                                                                    In0   Out6                         In4     Out4           6
                                                                    18                     11           2                     3
    1                                                                    In1   Out5                         In1     Out1           5
                                                                     1                     10           7                     6
    2                                                                    In2   Out4                         In2 0V Out2            4
                                                                     2                     9
    3                                                                    Txd   Out3                            4 5 12 13           3
                                                                     3                     8
    4                                                                    Rcv   Out2                                                2
                                                                    15                     7
    6                                                                    In6   Out1                                                1
                                                                    16                     6
    7                                                                    In7   Out0                                                0
                                                                     4                                                        D1
    R                                                                    Reset                                                     G
    G                                                                            0V
                                           X1                                    5 IC1                                             FET & diode
                                                            R11                                                                    repeated for
                                                                                                                                   outputs 1-3
               R8
                    R7
                         R4
                              R3
                                   R5
                                         R2
                                               R1




                                                                                                                       Q1

                                                                    SW1
                                              CT1
                                                            R10                                   (Test)



  G                                                                                                                                  G
  PIC                                                                                                                                PWR
             CHI035 Project Board (v3)                                                                 R9
V+                                                                                                                                     V+
PIC                                                                                                                                    PWR
                              C1             + C2          R6                                                  1 9 16 8
                                                                            14
                                                                                                                V+
                                                                             V+                                 IC2                V
                                                                                           13          10                     11
    V                                                                          Out7                         In3     Out3           7
                                                                    17                     12          15                     14
    0                                                                    In0   Out6                         In4     Out4           6
                                                                    18                     11           2                     3
    1                                                                    In1   Out5                         In1     Out1           5
                                                                     1                     10           7                     6
    2                                                                    In2   Out4                         In2 0V Out2            4
                                                                     2                     9
    3                                                                    Txd   Out3                            4 5 12 13           3
                                                                     3                     8
    4                                                                    Rcv   Out2                                                2
                                                                    15                     7
    6                                                                    In6   Out1                                                1
                                                                    16                     6
    7                                                                    In7   Out0                                                0
                                                                     4                                                        D1
    R                                                                    Reset                                                     G
    G                                                                            0V
                                           X1                                    5 IC1                                             FET & diode
                                                            R11                                                                    repeated for
                                                                                                                                   outputs 1-3
               R8
                    R7
                         R4
                              R3
                                   R5
                                         R2
                                               R1




                                                                                                                       Q1

                                                                    SW1
                                              CT1
                                                            R10                                   (Test)



  G                                                                                                                                  G
  PIC                                                                                                                                PWR

revolution                Revolution Education Ltd.   Email: info@rev-ed.co.uk Web: www.rev-ed.co.uk   Version 3.1 31/01/04
                                                                                                                                                  18 PIN.P65

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:65
posted:3/9/2010
language:English
pages:8
Description: 18 PIN PROJECT BOARD WITH OUTPUT DRIVERS