RGB Ratios, Decimals and Percents

Report 6 Downloads 59 Views
Mathematician(s): ___________________________________________



RGB Ratios, Decimals and Percents

In your experiment, you changed the Arduino sketch so that your RGB LED would light up in one color. In the space below, pick two of your experiments and describe them. Include how you changed the Arduino sketch, what color the RGB LED emitted, your RGB readings from the Space Board and your Ratio, Decimal and Percent calculations.

Example Fill in your Space Board RGB Luminosity readings (don’t

Fill in the numbers you put in your sketch (values must

forget your units!):

be between 0-255): 22

analogWrite(redPin, ____225____);

23

analogWrite(greenPin, ___225_____);

24

analogWrite(bluePin, ____225____);

RGBTCSRED: _______297 lux_________________ RGBTCSGREEN: ______960 lux________________

Describe the color you saw on your LED when you loaded the sketch on your Arduino:

RGBTCSBLUE: _______3713 lux_______________

Bluish-green Total (RED + GREEN + BLUE): _____4970 lux______ Color

Ratio (Color #/Total)

Decimal (divide your ratio)

Percent (multiply decimal by 100)

Red:

297 4970

≈ 0.059843

≈ 5.9843%

Green:

960 4970

≈ 0.193431

≈ 19.3431%

Blue:

3713 4970

≈ 0.748136

≈ 74.8136%

Totals:

4970 4970

≈ 1.00141

≈ 100.141

V203162017LH

341 Main St #111, Salt Lake City, UT 84111 | ardusat.com RGB Ratios, Decimals and Percents

Page 1 of 4

Mathematician(s):

___________________________________________



Color #1: Fill in the numbers you put in your sketch (values must

Fill in your Space Board RGB Luminosity readings (don’t

be between 0-255):

forget your units!):

22

analogWrite(redPin, ________);

RGBTCSRED: _______________________________

23

analogWrite(greenPin, ________);

24

analogWrite(bluePin, ________);

RGBTCSGREEN: _____________________________

Describe the color you saw on your LED when you loaded

RGBTCSBLUE: ______________________________

the sketch on your Arduino: Total (RED + GREEN + BLUE): ___________________

Color

Ratio (Color #/Total)

Decimal (divide your ratio)

Percent (multiply decimal by 100)

Red:

Green:

Blue:

Totals:

V203162017LH

341 Main St #111, Salt Lake City, UT 84111 | ardusat.com RGB Ratios, Decimals and Percents

Page 2 of 4

Mathematician(s):

___________________________________________

Color #2: Fill in the numbers you put in your sketch (values must be between 0-255): 22

analogWrite(redPin, ________);

23

analogWrite(greenPin, ________);

24

analogWrite(bluePin, ________);

Fill in your Space Board RGB Luminosity readings (don’t

forget your units!):

RGBTCSRED: _______________________________ RGBTCSGREEN: _____________________________

Describe the color you saw on your LED when you loaded

RGBTCSBLUE: ______________________________

the sketch on your Arduino: Total (RED + GREEN + BLUE): ___________________

Color

Ratio (Color #/Total)

Decimal (divide your ratio)

Percent (multiply decimal by 100)

Red:

Green:

Blue:

Totals:

V203162017LH

341 Main St #111, Salt Lake City, UT 84111 | ardusat.com RGB Ratios, Decimals and Percents

Page 3 of 4

Mathematician(s):

___________________________________________



CHALLENGE: Can you pick the RGB numbers so that the luminosity reading uses equal parts of RGB (33% for each color)?

Fill in the numbers you put in your sketch (values must

Fill in your Space Board RGB Luminosity readings (don’t

be between 0-255):

forget your units!):

22

analogWrite(redPin, ________);

RGBTCSRED: _______________________________

23

analogWrite(greenPin, ________);

24

analogWrite(bluePin, ________);

RGBTCSGREEN: _____________________________

Describe the color you saw on your LED when you loaded

RGBTCSBLUE: ______________________________

the sketch on your Arduino: Total (RED + GREEN + BLUE): ___________________

Color

Ratio (Color #/Total)

Decimal (divide your ratio)

Percent (multiply decimal by 100)

Red:

33%

Green:

33%

Blue:

33%

Totals:

V203162017LH

341 Main St #111, Salt Lake City, UT 84111 | ardusat.com RGB Ratios, Decimals and Percents

Page 4 of 4