Hi All,
I have been trying to resolve a dual timer but cant get the thing to work. I would greatly appreciate any help.
Setup
1/ Arduino Mega R3
2/ 10k potentiometer attached to pin A0, 5v & gnd.
Required Functions
1/ A cycle time has been set at 100secs.
2/ Each cycle time has an off and on period, which varies according to the pot to give the following output
Hi All,
I have been trying to resolve a dual timer but cant get the thing to work. I would greatly appreciate any help.
Setup
1/ Arduino Mega R3
2/ 10k potentiometer attached to pin A0, 5v & gnd.
Required Functions
1/ A cycle time has been set at 100secs.
2/ Each cycle time has an off and on period, which varies according to the pot to give the following output:
potvalue 0 = off 100%, on 0%
potvalue 1 = off 90%, on 10%
potvalue 2 = off 80%, on 20%
and so on..............until
potvalue 10 = off 0%, on 100%
I think I have managed to write most of the code for this but when uploaded I get just on and off periods of 100sec. I think it is because somewhere I have to declare that the on & off periods = to 1 cycle, except I am not too sure where to put this in. I attach my code and would be very glad to receive any help or advise.
AQUA_PRO_CO2Reactor_vers2.ino (1.34 KB)