TUTORIAL ON KY016 RGB LED MODULE INTERFACING WITH ARDUINO UNO BOARD

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 22

  • @Kyaizarr
    @Kyaizarr Рік тому +2

    int greenPin=9, redPin= 10, bluePin=11; /*RGB LED pins defined*/
    void setup() {
    pinMode(redPin, OUTPUT); /*Red pin defined as output*/
    pinMode(greenPin, OUTPUT); /*Green pin defined as output*/
    pinMode(bluePin, OUTPUT); /*Blue pin defined as output*/
    }
    void loop() {
    RGB_output(255, 0, 0); //Set RGB color to Red
    delay(1000);
    RGB_output(0, 255, 0); //Set RGB color to lime
    delay(1000);
    RGB_output(0, 0, 255); //Set RGB color to blue
    delay(1000);
    RGB_output(255, 255, 255); //Set RGB color to white
    delay(1000);
    RGB_output(128, 0, 0); //Set RGB color to maroon
    delay(1000);
    RGB_output(0, 128 , 0); //Set RGB color to green
    delay(1000);
    RGB_output(128, 128, 0); //Set RGB color to olive
    delay(1000);
    RGB_output(0, 0, 0); //Set RGB color to black
    delay(1000);
    }
    void RGB_output(int redLight, int greenLight, int blueLight)
    {
    analogWrite(redPin, redLight); //write analog values to RGB
    analogWrite(greenPin, greenLight);
    analogWrite(bluePin, blueLight);
    }

  • @xavierpamotillo4791
    @xavierpamotillo4791 2 роки тому +3

    the code is different from the link provided

  • @faizalsande2253
    @faizalsande2253 3 роки тому +1

    Informative video sir

  • @michaeldeloso9042
    @michaeldeloso9042 8 місяців тому

    How may I set my 4 pcs of 4 pin rgb led module to my 4 pcs of speakers to super slow changing colors such as 10 seconds delay transition colors of fading rgb and switch automatically to music reactive mode when there is playing music or songs on my videoke and turn back automatically to super slow changing colors of red green blue when there's no music playing or in standby mode?

  • @issasyedmahmood3683
    @issasyedmahmood3683 4 роки тому +1

    Kuch Samag Nahi aaya magar achha laga sunkar

  • @djneverblock7300
    @djneverblock7300 2 роки тому

    What if i want to power the rgb via pwm ? since it is just one output how am i supposed to regulate analogue values for color for every r g b pin on the led? and would it work for me to split the line into three and just analoguewrite the duty cycle on pwm so it lets led shine in white with different brightness?

  • @pradeepinstrmn
    @pradeepinstrmn 2 роки тому

    how to install just_red library to continue loading? pls. reply

  • @luthomsutwana1334
    @luthomsutwana1334 3 роки тому +2

    The link for the code is not working :( can you please help.

  • @cosmic_rat7315
    @cosmic_rat7315 3 роки тому

    im trying to follow the code on the video but im having errors when i upload the code

    • @MOUNTDYNAMICS
      @MOUNTDYNAMICS  3 роки тому

      Mail us your Error in detail, we shall try to clear that doubt of yours

    • @cosmic_rat7315
      @cosmic_rat7315 3 роки тому

      @@MOUNTDYNAMICS where can i email you?

    • @cosmic_rat7315
      @cosmic_rat7315 3 роки тому

      i would appreciate if you could help me out :)

    • @MOUNTDYNAMICS
      @MOUNTDYNAMICS  3 роки тому

      Mountdynamics@gmail.com