need help pwm

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
pyrosigma
Posts: 9
Joined: Mon Mar 04, 2013 11:02 am
Been thanked: 1 time

need help pwm

Post by pyrosigma »

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?
testpwm1.fcf
(9.5 KiB) Downloaded 226 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: need help pwm

Post by Benj »

Hello,

So we know which version of Flowcode your using please can you sign up for one of the forum topics by following the link in my signature.

Post Reply