01.04.2014 Views

ColorPAL (#28380): Color and Ambient Light Sensor and Color ...

ColorPAL (#28380): Color and Ambient Light Sensor and Color ...

ColorPAL (#28380): Color and Ambient Light Sensor and Color ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Deeply- or incorrectly-nested subroutine calls <strong>and</strong> loops may cause the stack to encroach upon the end of<br />

the buffer space in RAM. Each call adds one byte to the stack; each loop, two bytes. There is no error<br />

checking for excess nesting or unterminated loops. It is the programmer’s responsibility to ensure that<br />

programs are correctly structured.<br />

<strong>Color</strong> Matching Program<br />

The Parallax website includes a PC color-matching program that you can use to demo your <strong><strong>Color</strong>PAL</strong>. The<br />

zip file includes the exe file for the PC, a BASIC Stamp program for the <strong><strong>Color</strong>PAL</strong>, <strong>and</strong> a couple BASIC<br />

Stamp programs for the TCS230-DB, along with some documentation.<br />

Schematic<br />

+5V<br />

LED1<br />

OVSARGB3R8<br />

B<br />

RP1<br />

4 x 68R<br />

G<br />

R<br />

J1<br />

+5V<br />

C1<br />

10µF<br />

R1<br />

10K<br />

R2<br />

330R<br />

U1<br />

1 N/C OUT 4<br />

2 Gnd Vdd 3<br />

TSL13T<br />

U2<br />

1<br />

8<br />

/RST Vdd<br />

2<br />

7<br />

PB.3 PB.2<br />

3 PB.4 PB.1 6<br />

4 5<br />

Gnd PB.0<br />

ATTiny13A<br />

+5V<br />

C2<br />

0.1µF<br />

© Parallax, Inc. • <strong><strong>Color</strong>PAL</strong> (2009.06.15) Page 12 of 12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!