The Arduino board can be powered by an external 9V, 500mA adapter or USB cable. There is a chance of burn of potentiometer when the arm moves to very low resistance side due to more current passes through the arm. Now measure the resistance from the arm of the potentiometer to the anode leg of the LED. Vary the potentiometer to low resistance side until the RGB LED emits slightly whitish colour. For calibration, connect the RGB LED in series with a 1k potentiometer for each colour to 5V. Choose the R1, R2 and R3 values after calibration. This rgb color generator is a powerful color generator, divided into two parts. The Resistor values (R1, R2, and R3) are critical. 2: Image of Character LCD displaying RGB Color Code Note : The second line displays the HEX value of the colour as “HEX ******”. Title generator Sign generator Book editor /tellraw editor Custom server MOTD Minecraft color codes Minecraft chat color codes. Corresponding colour value is displayed in the first row as “R*** B*** G***”. The RGB LED emits light of a colour which is controlled by the potentiometer. Thus the 8-bit value controls the duty cycle of the PWM, thereby it controls the intensity of the colour. 1: Screenshot of Arduino Code for RGB Colour Code Generator Since the resolution of the PWM module of the board is 8-bit, the 10-bit analog value is converted into 8-bit value by the program.įig. The Analog to Digital Converter (ADC) of the Arduino converts the analog value into a 10-bit digital value. The program continuously scans the analog input of the board. These potentiometers are connected to analog input A0, A1, and A2 of Arduino board. The intensity of each colour is controlled by potentiometers VR1, VR2 and VR3. The 16×2 LCD wired in 4-bit mode and it displays the decimal value of the each colour in the first row and the HEX value in the second row. Three potentiometers control the intensity of RGB LED. The Arduino board is the brain of the circuit which performs the colour generation by Pulse Width Modulation (PWM). It is built around Arduino Uno board, 16×2 LCD, RGB LED and few other components. The circuit diagram of the RGB colour code generator is shown in figure enclosed as an attachment. Presented here the circuit to know about the concept of colour generating and the HEX code of that colour. This technique is used in TV’s, Mobiles…etc., similarly on web designing using HTML or any other language requires the HEX code of a particular colour to design. The introduction of new colour is done by merging or mixing of each colour in a particular proportion. Red Green and Blue (RGB) colour is the basic colour to generate various colours by mixing.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |