rgb color sensor - e-gizmo.net documents/rgb color sensor/rgb... · by e-gizmo mechatronix central...

6
© Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved Pages 1 of 6 pages www.e-Gizmo.com RGB Color Sensor Hardware Manual Rev 1r0 FEATURES • Power requirement: 7 – 9VDC power supply or ba�ery. • Controller: Z8E04 MCU • Color memory: up to 3 colors can be stored • User interface: 3 push bu�ons. 1 for each color memory • Outputs: 3 logic outputs. 1 for each color RGB Color Sensor detects color by measuring how much light is reflected by the object under test us- ing red, green, and blue light source. Color tolerance is preset to 12% and is capable of detec�ng wide range and shades of colors. Internally stores up to three color profiles corresponding to its three Go-NoGo digital outputs. Microcontroller based sensor capable of detec�ng object of desired color. Can store up to 3 differ- ent colors and has 3 individual logic output for each se�ng. Se�ng of desired color can be done easily thru simple push bu�on ac�on.

Upload: vohanh

Post on 04-Jul-2018

254 views

Category:

Documents


0 download

TRANSCRIPT

© Copyright 2011 by e-Gizmo Mechatronix Central

All Rights Reserved

Pages 1 of 6 pageswww.e-Gizmo.com

RGB Color Sensor

Hardware Manual Rev 1r0

FEATURES • Power requirement: 7 – 9VDC power supply or ba�ery. • Controller: Z8E04 MCU • Color memory: up to 3 colors can be stored • User interface: 3 push bu�ons. 1 for each color memory • Outputs: 3 logic outputs. 1 for each color

RGB Color Sensor detects color by measuring how much light is reflected by the object under test us-ing red, green, and blue light source. Color tolerance is preset to 12% and is capable of detec�ng wide range and shades of colors. Internally stores up to three color profiles corresponding to its three Go-NoGo digital outputs.

Microcontroller based sensor capable of detec�ng object of desired color. Can store up to 3 differ-ent colors and has 3 individual logic output for each se�ng. Se�ng of desired color can be done easily thru simple push bu�on ac�on.

© Copyright 2011 by e-Gizmo Mechatronix Central

All Rights Reserved

Pages 2 of 6 pageswww.e-Gizmo.com

RGB Color Sensor Datasheet Version 1

MAJOR COMPONENTS PRESENTATION

Figure 1. RGB Color Sensor & its major components

PARTS DESCRIPTION:

Power LED - lights up when a supply voltage is presentLED 1, 2 & 3 - lights up individually when object’s color is the same or near the SET COLOR for each LED.Error LED - lights up when the sensor is saturated for that specific color being test. Also lights up at the ab-sence of an object.Switch 1, 2 & 3 - Use to set desired color. Push un�l corresponding LED blinks then release to set desired color. The corresponding LED will lights up indica�ng that the present color was set successfully.Output Port - each color have 1 logic output.VCC Port - for 7V-9V power supply or ba�ery.U2(Z8EO4 MCU) - microcontroller capable of detec�ng object of desired color.Color Sensor - act as input, and sense and register specific color.

© Copyright 2011 by e-Gizmo Mechatronix Central

All Rights Reserved

Pages 3 of 6 pageswww.e-Gizmo.com

OPERATION - HOW TO USE & APPLICATION EXAMPLES

RGB Color Sensor Datasheet Version 1

Figure 2. RGB Color Sensor Connected to a microcontroller with Color LCD Shield

To start, put a power supply in the ‘VCC’ port. Put the object on the RGB LED and Color sensor then press the chosen color registra�on bu�on(S1, S2, or S3) un�l the colored LED blinks (Indica�on of color registra�on), do the said process 3 �mes using different push bu�ons.

© Copyright 2011 by e-Gizmo Mechatronix Central

All Rights Reserved

Pages 4 of 6 pageswww.e-Gizmo.com

12

VCC

Vin

1

GND3

+5V2

U1

7805

C110uf/50C21uf/25

+5

CHO

1

CH1

2

CH2

3

CH3

4

CH4

5

CH5

6

CH6

7

CH7

8

COM

9

DGND

10AGND

11VREF

12SE

13DO

14SAR

15CLK

16DI

17CS

18V+

19VCC

20U3

ADC0838

RED1

GREEN

2

BLUE

3

GND4

T1RGB_LED

C 1E2

Q1

S1S2S3

R610k

R510k

R410k

Rr3

10k

R210k

R110k

+5

XTAL

CRYSTA

L

C327p

C427p

C6104+5

D2

R10

470

P31/OE

8

P32/EPM9

P33/VPP

10

XTAL1/CE

6XTAL2

7

P00/CLR11

P01/CLK12

P02/PGM

13

GND14

P20/D0

15

P21/D1

16

P22/D2

17

P23/D3

18

P24/D4

1

P25/D5

2

P26/D6

3

P27/D7

4

VCC 5

U2

E08

R11180

R12

10k

+5

R7470R8470R9470

D3

D4

D5

C5104

R14470

D1

+5

123

output

CON3

Figure 3. Schem

atic Diagram

of RG

B C

olor Sensor

RGB Color Sensor Datasheet Version 1

© Copyright 2011 by e-Gizmo Mechatronix Central

All Rights Reserved

Pages 5 of 6 pageswww.e-Gizmo.com

PCB BOARD PRESENTATION

Figure 5. RGB Color Sensor PCB Copper Pattern

Figure 4. RGB Color Sensor PCB (silkscreen layout)

RGB Color Sensor Datasheet Version 1

© Copyright 2011 by e-Gizmo Mechatronix Central

All Rights Reserved

Pages 6 of 6 pageswww.e-Gizmo.com

LIST OF MATERIALS

RGB Color Sensor Datasheet Version 1

I.D. Quan�ty Descrip�onU1 1 78m05 ox931U2 1 Z8E04 MCUU3 1 ADC0838CCNC1 1 capacitorC2 1 capacitorC3 1 capacitorC4 1 capacitorC5 1 capacitorC6 1 capacitorD1 1 LED (Green)D2 1 LED (Red)D3 1 LED (Red)D4 1 LED (Yellow)D5 1 LED (Green)R1 1 resistorR2 1 resistorR3 1 resistorR4 1 resistorR5 1 resistorR6 1 resistorR7 1 resistorR8 1 resistorR9 1 resistor

R10 1 resistorR11 1 resistorR12 1 resistorR13 1 resistorR14 1 resistorS1 1 Tact SwitchS2 1 Tact SwitchS3 1 Tact Switch

XTAL 1 7.2Mhz crystalRGB LED 1 Mul� color LED

Color Sensor 1PCB 1