process control unit documentation -...

17
Process Control Unit Documentation Small-Scale Biofuel Production 2010/2011

Upload: donguyet

Post on 17-May-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

Process Control UnitDocumentation

Small-Scale Biofuel Production2010/2011

Contents

Introduction 3

Hardware Overview 3

Power Supply 3

Microcontroller 4

Temperature measurement 5

Electrical Interface 6

User Interface 7

Real Time Clock 8

MicroSD Card 9

Board Layout and Schematics 10

IntroductionThis Process Control Unit board was designed to provide an integrated solution for controlling a small-scale biofuel production plant. The unit interfaces with an electro-mechanical installation consisting of motors, heaters, solenoid valves, relays and other components. User interface consists of an LCD and four push buttons.

This document provides the information required to use and develop the control system.

Hardware OverviewThe main features of the board are:

• PIC18F66K22 8-bit microcontroller

◦ 64KB Flash Program Memory

◦ 4KB SRAM

◦ 1KB Data EEPROM

• 16MHz crystal oscillator

• Switch-mode voltage regulator with input range of 4V to 34V and an adjustable output set to 5V

• Low Drop-Out linear regulator providing 3.3V output

• Five thermocouple channels

• Seven open-drain outputs and one input designed to interface to external opto-isolators

• HD44780-compatible LCD interface

• Push button interface consisting of 4 I/O pins and 2 power pins

• MicroSD card slot (SPI mode)

• Real-Time Clock with a dedicated 32.768kHz crystal

• In Circuit Serial Programming (ICSP) header

Power SupplyThe on-board power supply, in Figure 1, was designed to accept a wide range of input voltages. The switching regulator is capable of working with up to 34V input. The output is set to 5V and is used to power the LDO regulator and the LCD.

The circuit takes power from a wall plug PSU rated for up to 1A at 12V. A standard DC jack with pin diameter of 2.1mm is used for power connection.

All components except the LCD are powered from a 3.3V supply. This is provided by a Low Drop-Out regulator.

For more information, refer to Schematic Sheet 2.

Note: The LDO used is in TO-252 package and the tab is connected to output. The heatsink is soldered to the same plane as the tab and, therefore, has 3.3V on it.

Figure 1: Power supply circuitry

MicrocontrollerThe control logic is implemented on a PIC18F66K22 microcontroller (revision A3). The PIC and relevant components are shown in Figure 2.

Figure 2: Microcontroller circuitry

ICSP HeaderThe most relevant part of the circuitry, for the purpose of development, is the ICSP programming and debugging header. This is a standard 5-pin interface for programming PIC controllers.

Figure 3: ICSP pin layout

5 4 3 2 1 ◀ 1. MCLR2. 3.3V3. GND4. PGD5. PGC

ICSP

Note: PIC programmers have 6-pin headers. Pin 6 is reserved for Low Voltage programming (LVP).

Expansion HeadersThere are two unpopulated headers that can be used to further extend the functionality of the board.

The UART (Universal Asynchronous Receiver/Transmitter) port can be used to add a serial communication for debugging or data logging.

Figure 4: UART pin layout

UART

1 2 3 1. GND2. TX13. RX1

The second header breaks out the CCP (Capture/Compare/PWM) pins. These have many possible uses. PWM output, for example, could be used to implement a piezoelectric buzzer driver for audio feedback.

Figure 5: CCP pin layout

5 5 6 7 8 8 1. CCP92. CCP83. CCP74. CCP65. 3.3V6. 3.3V7. GND8. GND

1 1 2 3 4 4

CCP

The above headers can also be used as a general I/O expansion.

Temperature measurementThe temperature measurement circuitry consists of five thermocouple channels and an on-board reference temperature sensor.

Figure 6: Temperature measurement circuitry

The thermocouples are connected to the terminal blocks (at the bottom of Figure 6). The polarity is indicated by a special marking (shown inFigure 7) and is the same for all five pairs.

Figure 7: Thermocouple input polarity indicator

- +

Signals from the thermocouples go the differential amplifier configured for a gain on 300. The amplified signals are then sampled by the Analogue to Digital Converter (ADC).

The on-board temperature sensor is a linear active thermistor. The device outputs 400mV at 0°C and has a temperature coefficient of 19.5mV/°C.

For further information, refer to Schematic Sheet 4.

Note: Due to noise problems, each negative input has been connected to ground. This is not reflected in the schematic diagram.

Electrical Interface

Figure 8: Electrical interface circuitry

Due to high voltages present on the electrical system, signals that go between the electrical and control parts need to be isolated. The isolation is achieved by using opto-couplers.

While the opto-couplers are located on the electrical side, the interface is on the control PCB. Eight terminal block pairs are used for connecting the two parts.

Pairs labelled as RELAYx and TRIACx are open-drain outputs and they are used to turn on the LED inside the opto-isolator. Pair labelled as ZERO is an input that is driven by the open-collector output of the opto-isolator while the opto-isolator itself is driven by a Zero Crossing Detector (ZCD).

Input ZERO is pulled to 3.3V line through a 10k resistor and goes to INT1 (Interrupt 1) pin on the PIC.

The polarity of the connectors is indicated by a marking near the ZCD input and is the same for all pairs.

Figure 9: Electrical interface polarity indicator

+ -

Further connection details can be found in Schematic Sheet 5.

User InterfaceThe user interface of the control system consists of an LCD and a key pad. The design supports all HD44780-compatible displays and currently uses a 4x20 character LCD. The key pad is made of four push buttons.

Figure 10: User interface circuitry

DisplayThe LCD header pin layout and descriptions are shown in Figure 11. The cathode of the backlight LED is connected to the drain of the MOSFET Q1. This enables the backlight to be controlled by software.

Figure 11: LCD header pin layout

LCD

16 15 14 13 12 11 6 5 4 3 2 1

Pin # Signal Description

1 GND Ground

2 5V Supply voltage

3 V0 Contrast

4 RS Register Select

5 RW Read/Write

6 E Enable

11 DB4 Data Bit 4

12 DB5 Data Bit 5

13 DB6 Data Bit 6

14 DB7 Data Bit 7

15 LED + Anode of the Backlight LED

16 LED - Cathode of the Backlight LED

As mentioned before, the LCD requires a 5V supply to operate, but the control and data pins can be driven directly by PIC, because a 3.3V signal is recognised, by the LCD, as a valid logic high.

Note: The board is designed for 4-bit LCD interface and, therefore, data bits 0 through 3 are not used.

KeypadThe keypad interface is very basic: it has two power pins and four I/O pins. The keypad was designed for this project and consists of four push buttons in an active-low configuration. The pin layout is shown in .

Figure 12: Keypad header pin layout

KBD

6 5 4 3 2 1 1. OK2. ESC3. 3.3V4. GND5. UP6. DOWN

Real Time Clock

Figure 13: Real Time Clock circuitry

The board also hosts a real time clock chip together with a 32.768kHz oscillator and a backup battery retainer.

The RTC communicates with PIC via an I2C bus. The battery retainer accepts CR2032 coin cells.

MicroSD Card

Figure 14: MicroSD card slot

For data logging capabilities, the design includes a microSD card slot. The PIC and the card can communicate using an SPI bus and SPI mode protocol. The “card in” signal can be used to detect when the card is present.

Board Layout and Schematics

1

1

2

2

3

3

4

4

D D

C C

B B

A A

DESCRIPTION

TITLE

SHEET of

REVISION

ENGINEER

AUTHOR

DATE

FILE0011 6 AJ

AJ03/04/2011control_system.SchDoc

Control System

Document Map

PSUpower_supply.SchDoc

Temperature measurementtemperature_measurement.SchDoc

Miscellaneous devicesmisc.SchDoc

Microcontrollermcu.SchDoc

Electrical interfaceelectrical_interface.SchDoc

1

1

2

2

3

3

4

4

D D

C C

B B

A A

DESCRIPTION

TITLE

SHEET of

REVISION

ENGINEER

AUTHOR

DATE

FILE0032 6 AJ

AJ03/04/2011power_supply.SchDoc

Power Supply

Switching power supply and a low dropout regulator.

15uF

C135V

68uH

L1

Inductor

D1Diode

220uF

C210V

3.01K

R11%

976R

R21%

GN

D

OUTIN

U2

AP1117

5V 3V3

GND

10uF

C36.3V

10uF

C46.3V

10uF

C56.3V

SHDN

IN SW

FBGND

U1

MIC4680

1

23

J1

12V DC

Input: 12V DC, 1A.

GNDGND

PIC101

PIC102COC1 PIC201

PIC202COC2 PIC301

PIC302COC3 PIC401

PIC402COC4 PIC501

PIC502COC5

PID101PID102

COD1

PIJ101PIJ101APIJ101B

PIJ102PIJ102APIJ102B

PIJ103PIJ103APIJ103B

COJ1PIL101 PIL102

COL1

PIR101

PIR102COR1

PIR201

PIR202COR2

PIU101

PIU102 PIU103

PIU104PIU105

COU1

PIU201

PIU202PIU203

COU2

PIC401 PIC501

PIU202

PIC201 PIC301

PIL102

PIR102PIU203

PIC102 PIC202 PIC302 PIC402 PIC502PID101

PIJ102PIJ102APIJ102B

PIJ103PIJ103APIJ103B

PIR201

PIU101

PIU105

PIU106 PIU107 PIU108

PIU201PIR101

PIR202

PIU104

PID102

PIL101PIU103

PIC101

PIJ101PIJ101APIJ101B PIU102

1

1

2

2

3

3

4

4

D D

C C

B B

A A

DESCRIPTION

TITLE

SHEET of

REVISION

ENGINEER

AUTHOR

DATE

FILE0033 6 AJ

AJ03/04/2011mcu.SchDoc

PIC18F66K22 Microcontroller

*

GND

3V3

1 2Y1

16MHz

30pF

C17Cap

GNDGND

30pF

C18Cap

10K

R27Res2

10K

R28Res2

3V3100nF

C13Cap

100nF

C14Cap

100nF

C15Cap

100nF

C16Cap

3V3

GND

3V3

10K

R23Res2

GND

S1

RESET

100nF

C19Cap

10K

R26Res2

10K

R25Res2

10K

R24Res2

RE1/WR/P2CRE0/RD/P2D

RG0/ECCP3/P3ARG1/TX2/CK2/AN19/C3OUTRG2/RX2/DT2/AN18/C3INA

RG3/CCP4/AN17/P3D/C3INB

MCLR/RG5

RG4/RTCC/T7CKI/T5G/CCP5/AN16/P1D/C3INC

VSS

VDDCORE/VCAP

RF7/AN5/SS1RF6/AN11/C1INA

RF5/AN10/CVREF/C1INBRF4/AN9/C2INA

RF3/AN8/C2INB/CTMUIRF2/AN7/C1OUT

RF1/AN6/C2OUT/CTDIN

ENVREG

AV

DD

AV

SS

RA3/AN3/VREF+RA2/AN2/VREF-RA1/AN1RA0/AN0/ULPWU

VSS

VD

D

RA5/AN4/T1CKI/T3G/HLVDINRA4/T0CKI

RC1/SOSCI/ECCP2/P2ARC0/SOSCO/SCLKI

RC6/TX1/CK1RC7/RX1/DT1

RC2/ECCP1/P1ARC3/SCK1/SCL1RC4/SDI1/SDA1RC5/SDO1

RB7/KBI3/PGD

VD

D

OSC1/CLKI/RA7OSC2/CLKO/RA6

VSS

RB6/KBI2/PGCRB5/KBI1/T3CKI/T1GRB4/KBI0RB3/INT3/CTED2/ECCP2/PA2RB2/INT2/CTED1RB1/INT1RB0/INT0/FLT0

RD7/PSP7/SS2RD6/PSP6/SCK2/SCL2RD5/PSP5/SDI2/SDA2

RD4/PSP4/SDO2RD3/PSP3RD2/PSP2

RD1/PSP1/T5CKI/T7G

VSS

VD

D RD0/PSP0/CTPLS

RE7/ECCP2/P2ARE6/P1B/CCP6RE5/P1C/CCP7RE4/P3B/CCP8

RE3/P3C/CCP9/REF0RE2/CS/P2B/CCP10

U10

PIC18F66K22

123

J2

UART

1234

5678

J3

CCP

3V3

GND

RELAY1RELAY2RELAY3RELAY4

RELAY5

TRIAC1TRIAC2

ZERO

SDASCL

RTC_INT

LCD_RSLCD_RWLCD_CLK

LCD_D4LCD_D5LCD_D6LCD_D7LCD_BL

MICROSD_CS

MOSIMISOSCK

MICROSD_IN

KBD_OKKBD_ESCKBD_UPKBD_DN

MC

LRPGDPGC

ADC_CS

PIC1301

PIC1302COC13

PIC1401

PIC1402COC14

PIC1501

PIC1502COC15

PIC1601

PIC1602COC16

PIC1701

PIC1702COC17

PIC1801

PIC1802COC18

PIC1901

PIC1902COC19

PIJ201

PIJ202

PIJ203

COJ2

PIJ301

PIJ302

PIJ303

PIJ304

PIJ305

PIJ306

PIJ307

PIJ308

COJ3

PIR2301

PIR2302COR23

PIR2401

PIR2402COR24

PIR2501

PIR2502COR25

PIR2601

PIR2602COR26

PIR2701

PIR2702COR27

PIR2801

PIR2802COR28

PIS101 PIS102

COS1

PIU1001

PIU1002

PIU1003

PIU1004

PIU1005

PIU1006

PIU1007

PIU1008

PIU1009PIU10010

PIU10011

PIU10012

PIU10013

PIU10014

PIU10015

PIU10016

PIU10017

PIU10018

PIU10019

PIU10020

PIU10021

PIU10022

PIU10023

PIU10024

PIU10025

PIU10026

PIU10027

PIU10028

PIU10029

PIU10030

PIU10031

PIU10032

PIU10033

PIU10034

PIU10035

PIU10036

PIU10037

PIU10038

PIU10039

PIU10040

PIU10041

PIU10042

PIU10043

PIU10044

PIU10045

PIU10046

PIU10047

PIU10048

PIU10049

PIU10050

PIU10051

PIU10052

PIU10053

PIU10054

PIU10055

PIU10056

PIU10057PIU10058

PIU10059

PIU10060

PIU10061

PIU10062

PIU10063

PIU10064

COU10

PIY101 PIY102

COY1

PIC1302 PIC1402 PIC1502 PIC1602

PIJ305

PIJ306

PIR2302 PIR2402 PIR2502 PIR2602 PIR2702 PIR2802

PIU10019PIU10026PIU10038 PIU10057

PIC1301 PIC1401 PIC1501 PIC1601

PIC1701 PIC1801

PIC1901

PIJ201

PIJ307

PIJ308

PIS101

PIU1009

PIU10018

PIU10020PIU10025 PIU10041PIU10056

PIU10064 POLCD0RS

PIU10059

PIU10053

PIU10052

PIU10049

PIU10048PORTC0INTPIU10047POZEROPIU10046

PIU10045

PIU10044

PIU10043

PIU10042POPGCPIU10037POPGD

PIU10036POMOSIPIU10035POMISOPIU10034POSCKPIU10033

PIU10030POTRIAC2PIU10029POTRIAC1

PIU10028

PIU10027PORELAY5

PIU10024PORELAY4PIU10023PORELAY3PIU10022PORELAY2PIU10021PORELAY1

PIU10017 POKBD0DNPIU10016 POKBD0UPPIU10015 POKBD0ESCPIU10014 POKBD0OKPIU10013

PIU10012

PIU10011

PIU1008 POLCD0BLPIU1006 POLCD0D7PIU1005 POLCD0D6PIU1004 POLCD0D5PIU1003 POLCD0D4

PIU1002 POLCD0CLKPIU1001 POLCD0RW

PIR2801

PIU10050 POSCL

PIR2701

PIU10051 POSDA

PIR2601

PIU10054 POADC0CS

PIR2501

PIU10055 POmicroSD0IN

PIR2401PIU10058 POmicroSD0CS

PIR2301PIS102 PIU1007

POMCLR

PIJ304PIU10060

PIJ303PIU10061

PIJ302PIU10062

PIJ301PIU10063

PIJ203

PIU10032PIJ202

PIU10031

PIC1902PIU10010

PIC1802

PIU10040

PIY102

PIC1702

PIU10039

PIY101

POADC0CS

POKBD0DN

POKBD0ESCPOKBD0OK

POKBD0UP

POLCD0BL

POLCD0CLK

POLCD0D4POLCD0D5POLCD0D6POLCD0D7

POLCD0RSPOLCD0RW

POMCLRPOMICROSD0CSPOMICROSD0IN

POMISOPOMOSI

POPGCPOPGD

PORELAY1PORELAY2PORELAY3PORELAY4

PORELAY5

PORTC0INT

POSCK

POSCLPOSDA

POTRIAC1POTRIAC2

POZERO

1

1

2

2

3

3

4

4

D D

C C

B B

A A

DESCRIPTION

TITLE

SHEET of

REVISION

ENGINEER

AUTHOR

DATE

FILE0054 6 AJ

AJ03/04/2011temperature_measurement.SchDoc

Temperature Measurement

Thermocouple interfaces, on-board temperature sensor and ADC.

VDD

GNDVout

U4

MCP9701A

GND

3V3

GND

3V3

TC_1TC_2TC_3TC_4TC_5

12

TC1

Terminal

300K

R3

0.1%

U5MAX4239

3V3

GND GND

TC_1100nF

C6Cap

3V3

GND

300K

R60.1%

1K

R9

0.1%

300K

R4

0.1%

U6MAX4239

3V3

GND GND

TC_2

300K

R70.1%

300K

R5

0.1%

U7MAX4239

3V3

GND GND

TC_3

300K

R80.1%

300K

R15

0.1%

U8MAX4239

3V3

GND GND

TC_4

300K

R170.1%

300K

R16

0.1%

U9MAX4239

3V3

GND GND

TC_5

300K

R180.1%

100nF

C7Cap

100nF

C8Cap

100pF

C9Cap

100nF

C10Cap

100nF

C11Cap

100nF

C12Cap

12

TC2

Terminal

12

TC3

Terminal

12

TC4

Terminal

12

TC5

Terminal

CH0CH1CH2CH3CH4CH5CH6CH7

VddVref

AGND

CLKDoutDin

CS/SHDN

DGND

U3

MCP3008

1K

R10

0.1%

1K

R11

0.1%

1K

R12

0.1%

1K

R13

0.1%

1K

R14

0.1%

1K

R19

0.1%

1K

R20

0.1%

1K

R21

0.1%

1K

R22

0.1%

GND

MOSIMISOSCK

ADC_CS

PIC601

PIC602COC6

PIC701

PIC702COC7

PIC801

PIC802COC8

PIC901

PIC902COC9

PIC1001

PIC1002COC10

PIC1101

PIC1102COC11

PIC1201

PIC1202COC12

PIR301 PIR302

COR3

PIR401 PIR402COR4

PIR501 PIR502

COR5

PIR601

PIR602COR6

PIR701

PIR702COR7

PIR801

PIR802COR8

PIR901PIR902

COR9

PIR1001PIR1002

COR10

PIR1101PIR1102

COR11

PIR1201PIR1202COR12

PIR1301PIR1302

COR13

PIR1401PIR1402

COR14

PIR1501 PIR1502

COR15

PIR1601 PIR1602COR16

PIR1701

PIR1702COR17

PIR1801

PIR1802COR18

PIR1901PIR1902

COR19

PIR2001PIR2002

COR20

PIR2101PIR2102

COR21

PIR2201PIR2202COR22

PITC101

PITC102

COTC1

PITC201

PITC202

COTC2

PITC301

PITC302

COTC3

PITC401

PITC402

COTC4

PITC501

PITC502

COTC5PIU301

PIU302

PIU303

PIU304

PIU305

PIU306

PIU307

PIU308PIU309

PIU3010

PIU3011

PIU3012

PIU3013

PIU3014

PIU3015

PIU3016

COU3

PIU402

PIU403

PIU404

COU4

PIU501

PIU502

PIU503

PIU504PIU506

PIU507COU5

PIU601

PIU602

PIU603PIU604PIU606

PIU607COU6

PIU701

PIU702

PIU703

PIU704PIU706

PIU707COU7

PIU801

PIU802

PIU803

PIU804PIU806

PIU807COU8

PIU901

PIU902

PIU903PIU904PIU906

PIU907COU9

PIC602 PIC702 PIC802 PIC902 PIC1002 PIC1102 PIC1202

PIU3015

PIU3016

PIU404

PIU501

PIU507

PIU601

PIU607

PIU701PIU707

PIU801

PIU807

PIU901

PIU907

PIC601 PIC701 PIC801 PIC901 PIC1001 PIC1101 PIC1201

PIR601

PIR701

PIR801

PIR1701

PIR1801

PIU307

PIU308PIU309

PIU3014

PIU402

PIU504

PIU604

PIU704

PIU804

PIU904PIU3013POSCKPIU3012POMISOPIU3011POMOSI

PIU3010POADC0CS PIU306

PIU403

PIR2201

PITC502

PIR2101

PITC501

PIR2001

PITC402

PIR1901

PITC401

PIR1802

PIR2202

PIU903

PIR1702

PIR2002

PIU803

PIR1602

PIR2102

PIU902

PIR1502

PIR1902

PIU802

PIR1401

PITC302

PIR1301

PITC301

PIR1201

PITC202

PIR1101

PITC201

PIR1001

PITC102

PIR901

PITC101

PIR802

PIR1402

PIU703

PIR702

PIR1202

PIU603

PIR602

PIR1002

PIU503

PIR502

PIR1302

PIU702

PIR402

PIR1102

PIU602

PIR302

PIR902

PIU502

PIR301

PIU301

PIU506

NLTC01

PIR401

PIU302

PIU606

NLTC02

PIR501

PIU303

PIU706

NLTC03

PIR1501

PIU304

PIU806

NLTC04

PIR1601

PIU305

PIU906

NLTC05

POADC0CS

POMISOPOMOSI

POSCK

1

1

2

2

3

3

4

4

D D

C C

B B

A A

DESCRIPTION

TITLE

SHEET of

REVISION

ENGINEER

AUTHOR

DATE

FILE0055 6 AJ

AJ03/04/2011electrical_interface.SchDoc

Electrical Interface

Interface to optocouplers on the external system.

Q2

GND

100R

R33Res2

3V3

12

J7

RELAY1

12

J14

ZERO

Q4

GND

3V3

12

J9

RELAY3

Q6

GND

3V3

12

J11

RELAY5

Q5

GND

3V3

12

J10

RELAY4

Q7

GND

3V3

12

J12

TRIAC1

10K

R45Res2

3V3

GND

100R

R37Res2

100R

R41Res2

100R

R38Res2

100R

R42Res2

10K

R40Res2

10K

R36Res2

10K

R39Res2

10K

R35Res2

10K

R31Res2

Q8

GND

3V3

12

J13

TRIAC2

100R

R44Res2

10K

R43Res2

Q3

GND

3V3

12

J8

RELAY2

100R

R34Res2

10K

R32Res2

RELAY1

RELAY2

RELAY3

RELAY4

RELAY5

TRIAC1

TRIAC2

ZERO

PIJ701

PIJ702

COJ7

PIJ801

PIJ802

COJ8

PIJ901

PIJ902

COJ9

PIJ1001

PIJ1002

COJ10

PIJ1101

PIJ1102

COJ11

PIJ1201

PIJ1202

COJ12

PIJ1301

PIJ1302

COJ13

PIJ1401

PIJ1402

COJ14

PIQ201PIQ202

PIQ203COQ2

PIQ301PIQ302

PIQ303COQ3

PIQ401PIQ402

PIQ403COQ4

PIQ501PIQ502

PIQ503COQ5

PIQ601PIQ602

PIQ603COQ6

PIQ701PIQ702

PIQ703COQ7

PIQ801PIQ802

PIQ803COQ8

PIR3101

PIR3102COR31

PIR3201

PIR3202COR32

PIR3301

PIR3302COR33

PIR3401

PIR3402COR34

PIR3501

PIR3502COR35

PIR3601

PIR3602COR36

PIR3701

PIR3702COR37

PIR3801

PIR3802COR38

PIR3901

PIR3902COR39

PIR4001

PIR4002COR40

PIR4101

PIR4102COR41

PIR4201

PIR4202COR42

PIR4301

PIR4302COR43

PIR4401

PIR4402COR44

PIR4501

PIR4502COR45

PIR3302

PIR3402

PIR3702

PIR3802

PIR4102

PIR4202

PIR4402

PIR4502

PIJ1402

PIQ203

PIQ303

PIQ403

PIQ503

PIQ603

PIQ703

PIQ803PIR3101

PIR3201

PIR3501

PIR3601

PIR3901

PIR4001

PIR4301

PIQ802

PIR4302POTRIAC2

PIQ702

PIR4002POTRIAC1

PIQ602

PIR3902PORELAY5

PIQ502

PIR3602PORELAY4

PIQ402

PIR3502PORELAY3

PIQ302

PIR3202PORELAY2

PIQ202

PIR3102PORELAY1

PIJ1401

PIR4501

POZERO

PIJ1302

PIQ801

PIJ1301

PIR4401

PIJ1202

PIQ701

PIJ1201

PIR4201

PIJ1102

PIQ601

PIJ1101

PIR4101

PIJ1002

PIQ501

PIJ1001

PIR3801

PIJ902

PIQ401

PIJ901

PIR3701

PIJ802

PIQ301

PIJ801

PIR3401

PIJ702

PIQ201

PIJ701

PIR3301

PORELAY1

PORELAY2

PORELAY3

PORELAY4

PORELAY5

POTRIAC1

POTRIAC2

POZERO

1

1

2

2

3

3

4

4

D D

C C

B B

A A

DESCRIPTION

TITLE

SHEET of

REVISION

ENGINEER

AUTHOR

DATE

FILE0036 6 AJ

AJ03/04/2011misc.SchDoc

Miscellaneous Devices

*

3V3

GND

BT1Battery

GND

1 2Y2

32.768kHz

GNDGND

20pF

C23Cap

20pF

C22Cap

RTC

_XTA

L1

RTC

_XTA

L2

RTC_XTAL1RTC_XTAL2

VBATTVBATT

XTAL1XTAL2

IRQ/OUT/FT/SQW

SDASCL

VBATTVCC

VSS

U11

M41T81S

3V3

GND

100nF

C20Cap

GNDVCC

SCKGNDMISO

MOSICS

SD1

SDCARD

3V3

GND

100nF

C21Cap

microSD Card

Real Time Clock

123456789101112

J5

LCD

GND5V

5K

R29Contrast

GND

CO

NTR

AST

BACKLIGHT-

Q1MOSFET-N

GND

BA

CK

LIG

HT-LCD

CONTRAST

123456

J4

KBD

3V3

GND

Keyboard ICSP

12345

J6

ICSP

3V3

GND

10K

R30Res2

SDASCL

RTC_INT

LCD_RSLCD_RW

LCD_CLKLCD_D4LCD_D5LCD_D6LCD_D7

LCD_BL

MICROSD_CSMOSIMISOSCK

MICROSD_IN

KBD_OKKBD_ESC

KBD_UPKBD_DN

MCLR

PGDPGC

PIBT101

PIBT102COBT1

PIC2001

PIC2002COC20

PIC2101

PIC2102COC21

PIC2201

PIC2202COC22

PIC2301

PIC2302COC23

PIJ401

PIJ402

PIJ403

PIJ404

PIJ405

PIJ406

COJ4

PIJ501

PIJ502

PIJ503

PIJ504

PIJ505

PIJ506

PIJ507

PIJ508

PIJ509

PIJ5010

PIJ5011

PIJ5012

COJ5

PIJ601

PIJ602

PIJ603

PIJ604

PIJ605

COJ6

PIQ101PIQ102

PIQ103COQ1

PIR2901

PIR2902PIR2903

COR29PIR3001

PIR3002COR30

PISD101

PISD102 PISD103

PISD104

PISD105

PISD106PISD107

PISD109 PISD1010

COSD1

PIU1101

PIU1102

PIU1103

PIU1104

PIU1105

PIU1106

PIU1107

PIU1108

COU11

PIY201 PIY202

COY2

PIC2002 PIC2102

PIJ403

PIJ602

PISD104

PIU1108

PIJ502

PIJ5011

PIJ5012

PIQ101

NLBacklight0

PIJ503

PIR2901PIR2903

NLContrast

PIBT102

PIC2001 PIC2101

PIC2201 PIC2301

PIJ404

PIJ501

PIJ603

PIQ103

PIR2902PIR3001

PISD103

PISD106

PISD1010

PIU1104 PIU1107 PORTC0INT

PIU1106POSCLPIU1105POSDA

PISD109POmicroSD0IN

PISD107POMISOPISD105POSCK

PISD102POMOSIPISD101POmicroSD0CS

PIQ102

PIR3002POLCD0BL

PIJ605POPGCPIJ604POPGD

PIJ601POMCLR

PIJ5010POLCD0D7PIJ509POLCD0D6PIJ508POLCD0D5PIJ507POLCD0D4PIJ506POLCD0CLKPIJ505POLCD0RWPIJ504POLCD0RS

PIJ406POKBD0DNPIJ405POKBD0UP

PIJ402POKBD0ESCPIJ401POKBD0OK

PIC2202PIU1101

PIY201NLRTC0XTAL1

PIC2302PIU1102

PIY202

NLRTC0XTAL2

PIBT101PIU1103

POKBD0DN

POKBD0ESCPOKBD0OK

POKBD0UP

POLCD0BL

POLCD0CLKPOLCD0D4POLCD0D5POLCD0D6POLCD0D7

POLCD0RSPOLCD0RW

POMCLRPOMICROSD0CS

POMICROSD0IN

POMISOPOMOSI

POPGCPOPGD

PORTC0INT

POSCK

POSCLPOSDA

1

1

2

2

3

3

4

4

D D

C C

B B

A A

DESCRIPTION

TITLE

SHEET of

REVISION

ENGINEER

AUTHOR

DATE

FILE0031 1 AJ

AJ06/04/2011keyboard.SchDoc

Keypad

Keypad for the user interface

123456

P1

Header

Vss

Vdd

10K

R1Res2

10K

R2Res2

10K

R3Res2

10K

R4Res2

S1

ESC

S2

OK

S3

UP

S4

DOWN

Vss

Vdd