How to Create Tens of Thousands of Colors Using a C Program

CSEF · 2007 Mathematics & Software

Overview

Objectives/Goals I hypothesize that by using a C program to increase or decrease the intensity of each one of the red, green, and blue LEDs and mixing the three colors, I can create tens of thousands of different colors. Methods/Materials Select a color from the Color Gamut. Then edit the C program to generate the color. Save the file and compile the C program. Program the PSoC chip. Place a color mixing chamber on top of the LEDs. Then run the program in the Demo Board. Repeat this process 6 times. Results It was found that in a C Program by varying the intensity of the red, green and blue LEDs one can produce tens of thousands of various colors in the color mixing chamber. The C program mixed proper amounts of each one of the three colors.

Summary statement

Create different colors by changing and combining intensities of red, green, and blue LEDs using a C program.

Help received

My father helped me with debugging the C program.

Competition history

  • CSEF 2007 Mathematics & Software · Entry J1306

Resources

Related projects

Closest projects by meaning, across every fair and year in the corpus.

Browse more like this

Source: California Science & Engineering Fair public projects

Save projects to your library

Sign in with Google to keep track of projects you find interesting, organized into folders. An account also raises your daily allowance for “Has this been done?”, and lets you create a key for the MCP server with a much higher limit than anonymous use. Browsing stays public.

Continue with Google