b'Circuit 1D: RGBIn this circuit, youll take the night-light concept to the next level by adding an Night-Light RGB LED, which is three differently colored Light-Emitting Diodes (LEDs) built into one component. RGB stands for Red, Green and Blue, and these three colors can be combined to create any color of the rainbow!YOU RGB LEDPHOTORESISTOR 3 330 RESISTORS10KRESISTORNEED12 JUMPER WIRES POTENTIOMETERNEW COMPONENTS NEW IDEAS10k100kRGB LED: An RGB LED is actually three 330 10k100kPWM PINS: Only a few of the pins small LEDsone red, one green and one330blueinside a normal LED housing. Thison the RedBoard have the circuitry RGB LED has all the internal LEDs shareneeded to turn on and off fast enough the same ground wire, so there are fourfor PWM. These are pins 3, 5, 6, 9, 10 legs in total. To turn on one color, ensureand 11. Each PWM pin is marked with ground is connected, then power one of thea ~ on the board. Remember, you can legs just as you would a regular LED. Dontonly useanalogWrite() on these forget the current-limiting resistors. If youpins.turn on more than one color at a time, you will see the colors start to blend together toSCL SDA AREF GND 13 12 ~11 ~10 ~9 8 7 DIGITAL (PWM ~)~6 ~5 4 ~3 2 1 TX 0 RX13TXform a new color. RX ONC106 START SOMETHINGREDCOMMON (GND)GREEN C106 I/O ISPBLUE 3.3V 5VC106NEW CONCEPTS IOREF RESET 3.3V 5V GND POWER GND VIN A0 A1 ANALOG IN A2 A3 A4 A5ANALOG OUTPUT (PULSE-WIDTH MODULATION): The digitalWrite()off so that it is only on 50 percent of the command can turn pins on (5V) or off (0V),time (50% of 5V is 2.5V). By doing this, any but what if you want to output 2.5V? Thevoltage between 0 and 5V can be produced. analogWrite() command can output 2.5This is what is known as Pulse-Width volts by quickly switching a pin on andModulation (PWM). It can create many different colors on the RGB LED.31 : circuit 1d'