Light emitting diode (LED) Controller was built using PIC microcontroller and LM317
The Max current was about 0.5 A making it a 1.5 Watt device, however LM317
4 modes of operation currently implemented in the software. Low, Medium and High intensity setting are selected by pressing SW1. I’ve also added a strobe function similar to some popular flashlights. Connect RB1 to “0” to enable strobe. You decide if it’s useful or not, anyway you can completely remove it or change the intensity and pulse duration in the code. Assembly code can be downloaded here.