DIY Flashlight Control Using GreenPAK™
by GreenPAK™ in Circuits > LEDs
9 Views, 0 Favorites, 0 Comments
DIY Flashlight Control Using GreenPAK™
The typical source of light in a flashlight is a small incandescent bulb or light-emitting diode (LED). These are powered by disposable or rechargeable batteries, turning a crank, shaking, or solar panels to recharge a battery. This Instructable describes the design of a current control for an LED version flashlight.
Below we described steps needed to understand how the solution has been programmed to create a flashlight control. However, if you just want to get the result of programming, download GreenPAK Designer software to view the already completed GreenPAK design file. Plug the GreenPAK Development Kit to your computer and hit the program to create the amplifier.
Flashlight Circuit Design
The circuit shown in Figure 1 includes one SLG46721 IC, two transistors, a switch, two capacitors, six resistors, one 3W LED and six 5mm LEDs. Figure 2 shows the internal structure of the SLG46721 GreenPAK IC, which controls all functions of the flashlight. This design utilizes three analog comparators, two 2-bit LUTs, two 3-bit LUTs, two inverters, two delays and one 4-bit LUT.
The design can be divided into 4 operational blocks: power ON/OFF, Low battery detection, constant current block for a 3W LED, and a constant current block for driving 6 LED’s.
The power ON/OFF block is implemented by 2-bit LUT4 and INV0. Low battery detection is implemented using ACMP0 and 3-bit LUT0, INV1, Delay0 and Delay1. Constant current block for 3W LED is implemented using ACMP3 and 3-bit LUT1. And the 6 LED’s block is implemented using ACMP2, 2-bit LUT5 and 4-bit LUT0.
Flashlight Circuit Analysis
This flashlight uses a special button with four states. This button has one input and four outputs. An input connects to each output in cycle with each button push. With the switch in the OFF position, the current draw from the battery is <1 uA. If the switch is in 3W_LED_ON position, 2-bit LUT4 output will be HIGH. In this case all ACMPs will be turned ON, PIN7 will go LOW and it turns on the external divider which checks if the battery has >3.2 V. If the battery is charged >3.2 V, the SLG46721 GreenPAK IC will turn ON 3W LED using a constant current block. The same functionality will be with 6 LED’s when the switch is in 6LED_ON position.
In the case where the flashlight in any of the ON positions and battery voltage drops below ~3.2 V, the GreenPAK IC will enter a third mode: 6 LEDs will start blinking with 1 Hz (100 ms ON, 900 ms OFF) frequency, which means that the battery is low and should be recharged.
Conclusion
Using constant current blocks in flashlight controls is very useful because it is effective, reduces current consumption, and extends run time.