I would like to learn how to build a standalone circuit that allows me to flick through several LED states (on/high/low/off, etc.) without something like an Arduino.
I'm new to electronics and have decided to learn by examining simple, existing circuits. Today I opened up a cheap LED tent lamp. It has a single button to control it. Each click cycles through various states. From the off state, these are:
- First click: White LED On - Max Brightness
- Second click: White LED On - Half Brightness
- Third click: Red LED On (White LED off)
- Fourth click: Off
I've attached a picture of the circuit board inside the lamp. It's hard to tell if pins 1-3 of the IC are connected to anything, which just adds to my difficulty understanding what's going on here.
The bit I'm holding on to is the push switch. Pin 1 of the IC is in the top right corner. The transistors are J3Y transistors. The component right beside pin 4 is a diode with the cathode on pin 4 side.
If you could please advise:
- how this circuit works;
- what the IC is or could be (it's unlabelled so I couldn't find a datasheet anywhere); or
- any other options I might have in replicating the functionality described above!