Question: Description: You will write a MATLAB program that interfaces with the Arduino board, an RGB LED, and three resistors (330 Ohm each). The program will

 Description: You will write a MATLAB program that interfaces with the

Description: You will write a MATLAB program that interfaces with the Arduino board, an RGB LED, and three resistors (330 Ohm each). The program will ask the user to enter three numbers between O and 255. The program will then use these three numbers to generate the corresponding color on the RGB LED. A table of colors is provided below to indicate what values your program is required to accept. You may add other colors to the list if you wish.* Note: This is the exercise that Pouyan showed everyone in the discussion section last week. Also, depending on your RGB LED, you will either have a common anode (connects to the 5V pin) or a common cathode (connects to ground). Don't forget the resistor on each lead! Colors to program: Your program must support the following colors, where 255 represents 5V intensity for the LED and 0 represents intensity OV on the LED. Decimal Value Color Name (R,G.B) White (255,255,255) Red Green Blue Yellow(255,255,0) Cyan(0,255,255) (255,0,0) (0,255,0) (0,0,255) Magenta (255,0,255) Maroon(128,0,0) Olive(128,128,0) Purple(128,0,128) Navy (0,0,128)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!