Begin with a breadboard, wire, an RGB LED and some resistors. Using the forward voltages given in the RGB LED datasheet, calculate the correct current-limiting resistors needed to light each color of the LED (assuming VDD = +5V). Using a power supply, test that each color of the RGB LED is working correctly with these resistors.
Next attach a NI USB-6008 (or USB-6009) to the computer. And attach breadboard wires to the analog outputs AO0 to AO1, a wire to a digital output and another wire to a common ground
Create a new VI that creates a flashing control, where the LED will have a 50% duty cycle. The user should be able to set the frequency between 0 and 10Hz.
Create a PWM controller for intensity. Hint: use a for loop with a case structure inside. And use a wait timer to control the speed. Allow the user to adjust the frequency and duty cycle.
Create a new VI with a "lighthouse" control to the front panel. When the user selects "lighthouse" the light intensity rises to a cusp and then falls in a similar way (see the short video posted on D2L.) Note that the rise and fall in intensity is not linear. What trig functions should be used?