Hi,
May be you should add the PWM output, without any filtering it is totally "random" ( short way of saying it ...) as a signal ... so ...
is it really the correct way to achieve a decent "linear" fading ... ???
...
Alain
Hi,
May be you should add the PWM output, without any filtering it is totally "random" ( short way of saying it ...) as a signal ... so ...
is it really the correct way to achieve a decent "linear" fading ... ???
...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
47uf and a divider/zener?
or is that not the spirit of the thread
___
Hi,
Darrel once made a multi output soft PWM routine which is interrupt based and works as intended from a PWM signal. Search the forum....
I did a software PWM for a UPS but it is primarily in assembly.
The concept is pretty simple.
- On every tick increment a counter with it.
- Match with your PWM value sets or resets the output.
- Counter overflow, sets or resets the output.
Would run in the background
Or better though select a chip with hardware PWM.
From the PBP manual
It is better to handle the LEDs by current since the brightness (lux) is a function of the current through the chip. It is pretty easy to kill LUMILEDS with overvoltage causing current overshoots.f you want continuous PWM output and the PICmicro MCU has PWM hardware, HPWM may be used instead of PWM.
Pin is made an output just prior to pulse generation and reverts to an input after generation stops. The PWM output on a pin looks like so much garbage, not a beautiful series of square waves. A filter of some sort is necessary to turn the signal into something useful. An RC circuit can be used as a simple D/A converter:
Good Luck
Regards
Sougata
Bookmarks