+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 4
    Points: 378, Level: 4
    farhang_760's Avatar
    Join Date
    Mar 2015
    Posts
    6
    Helped
    0 / 0
    Points
    378
    Level
    4

    How to change rgb led color with a switch (without micro-controller)?

    Hi
    I want to find a way, to controll rgb led color (specific color for example 5 or ten specified color) with a tact switch and without micro-controller. on the other hand want to use simple and cheap material.
    thanks for your help

    •   Alt9th January 2017, 08:36

      advertising

        
       

  2. #2
    Advanced Member level 4
    Points: 6,840, Level: 19
    Easyrider83's Avatar
    Join Date
    Oct 2011
    Location
    Tallinn, Estonia
    Posts
    1,220
    Helped
    285 / 285
    Points
    6,840
    Level
    19

    Re: How to change rgb led color with a switch (without micro-controller)?

    Cheapest solution will be the microcontroller. Simplest will be the logic like counter IC. Just make it count and attach driver to output.
    Love me or hate me. All infractions will be ignored.



    •   Alt9th January 2017, 09:10

      advertising

        
       

  3. #3
    Newbie level 4
    Points: 378, Level: 4
    farhang_760's Avatar
    Join Date
    Mar 2015
    Posts
    6
    Helped
    0 / 0
    Points
    378
    Level
    4

    Re: How to change rgb led color with a switch (without micro-controller)?

    Quote Originally Posted by Easyrider83 View Post
    Cheapest solution will be the microcontroller. Simplest will be the logic like counter IC. Just make it count and attach driver to output.
    with microcontroller whats your suggestion (low cost)? do you have any sample schematic?
    thanks



    •   Alt9th January 2017, 13:29

      advertising

        
       

  4. #4
    Advanced Member level 5
    Points: 10,222, Level: 24
    schmitt trigger's Avatar
    Join Date
    Apr 2013
    Location
    C4E4DEEEDCE6ECD2
    Posts
    1,745
    Helped
    555 / 555
    Points
    10,222
    Level
    24

    Re: How to change rgb led color with a switch (without micro-controller)?

    Assuming that red is the MSB, green the middle bit, and blue is the LSB, any 3 bit binary counter would provide the following sequence:

    RGB
    000 black
    001 blue
    010 green
    011 cyan
    100 red
    101 magenta
    110 yellow
    111 white
    repeat....

    You could use one half of a 74C393.
    The switch would have to be debounced. Google switch debouncing.
    My batteries are recharged by "Helpful Post" ratings.
    If you feel that I've helped you, please indicate it as a Helpful Post



+ Post New Thread
Please login
--[[ ]]--