Hi there and thanks for your time,
I am trying to find an ic that could be able to cycle through three outputs based on the times an user has pressed a switch.
The procedure should be this one:
user presses the switch, led 1 turns on, user presses the switch off and then back on, led 2 turns on, user presses the switch off and then back on led 3 turns on. Obviously the timeframe for the user to perform this selection should be limited to few seconds, if the user waits too long to press the switch back on the all process restart form led 1.
Using an arduino or another microcontroller for this operation seems a bit of a overkill.
I have dissembled a light bulb that was made this way and found out that it uses ic no. BP5818DJ, but i can only find datasheets in chinese, does anyone have a suggestion for another ic with resources available to english speakers?
Hi,
So basically the IC uses the button presses to increase in steps the overall brightness of the LED assembly?
These custom ICs are made for the manufacturing segment of electronics and very rarely are they available in small quantities if you can source them.
The fact that you secured a datasheet is good, but as you say in the wrong language.
What do you want to do?
Repair a lamp or build some yourself?
Tom... 
Basically i wanted to have three separate outputs.
My idea was to have an rgb with common anode that would change to red, green and blue based on the number of subsequent times the switch has been pressed.
So 1 button press equals red
2 button presses equal blue
3 button presses equal green
The button is also the main switch so each that the button is pressed the ic won't be powered, therefore a capacitor would be needed to provide current for just few seconds in order to wait for the next press, if this doesn't happen the system goes back to zero and the next time one would press a button one would get a red.
Did I make myself clearer? Thank you for your interest:)
How about an ATtiny85? Under $3.-- But you probably need some sort of programmer, however it might be able to be also programmed through an Arduino, can't remember for sure, bought a couple of these a while back but have not got to that project - just wanted it to drive some LED's in a timed pattern
Using an arduino or another microcontroller for this operation seems a bit of a overkill.
(Edited at UkHelibob's request)
@raschemmel - whilst your illustration of the discrete hardware needed compared with using an ATTiny85 is valid I do think that you could have couched your reply in a less confrontational way
You do realize that an ATTiny85 costs $1.50 and is an 8-pin DIP 8-bit microcontroller with analog , and digital IO , not to mention serial TTY, built in timers, and EEPROM (albeit somewhat small at 512 bytes)
To implement the logic you describe 'discretely' would require a flip flop to clock the presses, an sequential counter chip to use the clock input to advance a channel output , and then some logic to
take the selected high on some channel and use it to turn on a led. Conceivably the three colors could
be channels 1, 2, & 3 of a counter chip clocked by the flip flop that is clocked by the single push button.
That's an awful lot of hardware to replace a single 8-pin DIP microcontroller. If you ask me, your approach
is overkill and the ATTiny85 is the logical choice.
@raschemmel - whilst your illustration of the discrete hardware needed compared with using an ATTiny85 is valid I do think that you could have couched your reply in a less confrontational way
Hi,
The IC that you are looking at is probably a micro controller anyway, not a hardwired IC logic chip.
Tom... 
Hi thank you all for your responses,
I have realized that your suggestion to use an ATTiny 85 is most certainly the right way to go.
I didn't mean to upset anybody with my question, I have probably expressed myself wrongly when i said that a microcontroller would have been an overkill for the project, i have a limited electronic experience and mostly acquired by using arduino so that i didn't even think about smaller and cheaper microcontrollers.
Anyway this is what great about this forum that experts like you can come up with hands-on solutions and also give an explanation on why one's approach is wrong.
So thank you again, will give the ATTiny a go 
Also a Pro Mini is under $ 10.-- plus the programmer cable and has a voltage regulator built in and should drive the LED's you need. If you get a clone the cost is less
So thank you again, will give the ATTiny a go
You might want to read this first.
Also a Pro Mini is under $ 10.-- plus the programmer cable and has a voltage regulator built in and should drive the LED's you need. If you get a clone the cost is less
I think the OP would need to buy an FTDI to program the ProMini whereas he can program the ATTiny85 with his arduino UNO.
I use the Sparkfun FTDIs and it doesn't have an onboard regulator.