Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: long timer setting for Pool pump #23356

    pbo
    Blocked

    The adhock solution in combination with the first suggestion to  change unsigned long accumulate_time = curr_time + 1; into  unsigned long accumulate_time = curr_time; seems to work in sequential mode. Thats great!! Thanks a lot for giving me a solution.
    Where and what should i add or change in the code to obtain a simulair result in parallel mode?

    in reply to: long timer setting for Pool pump #23353

    pbo
    Blocked

    It took a while to get Virtual box and Arduino IDE v0023 running on my windows computer.
    Unfortunately the serial com port in the IDE stays grayed out despite all suggestions found on the internet.
    I found a work around by compiling with Verify and locate the *.hex file in the tmp directory of the system files directory and upload this *.hex file with avrdude on the way you described how to upload.
    Finally I was able to change the line “unsigned long accumulate_time = curr_time + 1”;
    at function ‘void schedule_all_stations’ in interval_program.pde with your suggestion to delete the +1.
    Unfortunately it did not help.
    With a program setting of 0hrs 1 mins sequence and running for 1 min 0 secs in sequential mode the program runs in on mode with a 1sec interruption each minute.
    The log however says “ran for 1m0s every minute”.
    A similar result in non sequential mode but then with a setting of 0hrs 1 mins sequence and for 0 mins, 59 secs. ( before the modification this was with 0 mins, 58 sec.)
    With a setting of 0hrs ,1 mins sequence and running for 1 min, 0 secs the program runs in a sequence of 1 minute on than 1 minute off.
    I tried to figure out how you manage the start/stop times in your code but could not quite understand the way you handle this .
    Ray, could you check once more if your suggestion was right or that you obtain similar results as I did.
    Peter

    in reply to: long timer setting for Pool pump #23351

    pbo
    Blocked

    Thanks for the reply Ray.
    If you put the controller in non sequential mode you can reproduce my problem with the timer settings I used.
    The results when in sequential mode is simular to your results. So its seems there is a difference how the timer behaves in non sequential mode.
    I would like to avoid the 1-second delay as you discribed so the output has a smooth continues output but I see no way at the moment to compile the program with Linux with avr-gcc version 4.5.3. on my Windows computer. Would it be possible to obtain a pre- compiled version in hex with this change?
    Peter

Viewing 3 posts - 1 through 3 (of 3 total)