need help pwm
Posted: Tue Apr 02, 2013 3:34 pm
Hallo, please, i'm trying to make a pwm without the component for have special delay, but first i'm trying to use adc for change a period and display it, it's working in flowcode but no in practice, my connexions are ok but display shows always 0.00.
I read my adc as voltage and use this value for make calcul, after i want to use result into a delay (float convert to string, and string to int...).
Display print since 0V to 5V and after my calcul:
-0.00 [s] ...for 0V
-1.//[s] ...in the middle value
0.000[s] ...for 5V
and always 0.00% for PWM...and it's working in flowcode, who have an idea please?
Can anybody give a look on my programm please?
I read my adc as voltage and use this value for make calcul, after i want to use result into a delay (float convert to string, and string to int...).
Display print since 0V to 5V and after my calcul:
-0.00 [s] ...for 0V
-1.//[s] ...in the middle value
0.000[s] ...for 5V
and always 0.00% for PWM...and it's working in flowcode, who have an idea please?
Can anybody give a look on my programm please?