Page 1 of 1
Have a question abou Analog
Posted: Wed Mar 11, 2009 10:36 am
by gizquier2
hello. Im using Flowcode last version with MIAC and Im trying to show the analog valor of I1 using a potenciometre in the Display but it goes crazy when i send to the MIAC (in flowcode execute internal works fine

)
The program must do when is >180 and relays goes on/off (just for test and see)
I attach the file to see-
Waiting your help
Greetings
gizq
PD: Im new.
Re: Have a question abou Analog
Posted: Wed Mar 11, 2009 11:32 am
by gizquier2
Ill try to explain better, i just want to connect a potenciometre in I1 (MIAC) and in display show the change of values when i change the potenciometre value.
And it doesnt work to me, i dont know how to do it
Re: Have a question abou Analog
Posted: Wed Mar 11, 2009 2:29 pm
by Benj
Hello
How are you connecting your pot. Essentially you want 1 side of the pot to be connected to the +v the other side should be connected to ground and the middle adjustable pin of the pot should be connected to the input terminal.
To make your program run a little better you may want to add a delay of say around 10-20ms to the main loop. This will stop the LCD from visibly flickering.
Re: Have a question abou Analog
Posted: Wed Mar 11, 2009 6:19 pm
by gizquier2
Yes i have connected right the pot, and i added a delay but doesnt work too, could you check the program attached if its ok?
Re: Have a question abou Analog
Posted: Thu Mar 12, 2009 11:22 am
by Benj
Hello
I have had a quick look at your program and it looks ok. I have attached a slightly improved version.
What value are you getting on the LCD of the MIAC when it is running?
Re: Have a question abou Analog
Posted: Thu Mar 12, 2009 9:22 pm
by gizquier2
Its continuously changing 8working- not working) and it show 4 and 192 nothing else.
Re: Have a question abou Analog
Posted: Fri Mar 13, 2009 6:34 am
by gizquier2
Solved, we had problems with C compilation, now it works, thank u for all benj