jagrolet
New Member
I am trying to compare 2 analog readings in Flowcode but I can figure out how to do it.
I tried to compare them after I convert them to strings and before with no luck.
Having trouble with the loop logic and calling the right variables.
I attached the Flowcode project file, if someone would care to take a look.
I have this working in Mikrobasic, and assembly, but Im trying to port one of my projects over to Flowcode because I think it's pretty neat software.
example
if ADC(1) >= ADC(0)
then PortD pin 6 = hi
ADC(1) is my sensor POT
ADC(0) is my threshold POT
I set my threshold and display it on the LCD, then if my sensor exceeds this value I trigger a relay. Its used in my camera intervalometer for lightning photography.
I tried to compare them after I convert them to strings and before with no luck.
Having trouble with the loop logic and calling the right variables.
I attached the Flowcode project file, if someone would care to take a look.
I have this working in Mikrobasic, and assembly, but Im trying to port one of my projects over to Flowcode because I think it's pretty neat software.
example
if ADC(1) >= ADC(0)
then PortD pin 6 = hi
ADC(1) is my sensor POT
ADC(0) is my threshold POT
I set my threshold and display it on the LCD, then if my sensor exceeds this value I trigger a relay. Its used in my camera intervalometer for lightning photography.