- Thu Sep 12, 2013 7:57 am
#163438
I've been working on a project off-and-on for a while now that includes blinking LEDs and motor control (using PIC microcontrollers and PICBasic Pro). For the blinking LEDs, I want to be able to adjust the brightness which I've can do for non-blinking LEDs with PWM and a pot (in code: ADC to use pot input to vary duty cycle). For a blinking LED, though, it seems trickier and I haven't been able to get my head around it (I dabble in this stuff but I'm no electronics engineer). Can I use a single PIC (say, 12F1840) with a CCP module to have the code handle the blinking and the 'brightness' (i.e. duty cycle) be turned off and on by that port output? Do I need to daisy chain a 'FET or transistor?
Any help would be greatly appreciated.
Any help would be greatly appreciated.