Forum Members section DIY Ferduino controller Dosing And Wavemaker Pause for a while

Dosing And Wavemaker Pause for a while  [SOLVED]

Ask here about your controller made with pieces purchased in other shops.

Post Number:#1 Post Sat Nov 24, 2018 6:40 am
Posts: 69
Topics: 18
Images: 2
Solve rating: 1
Joined: Tue Apr 14, 2015 11:54 pm
Topics: 18
Age: 42
Gender: Male
National Flag:
Indonesia
there is a way for the wavemaker to run smoothly, not to paused every 5 seconds. is it because Arduino cannot be multi-tasking. And dosing pump when it works all features stop for a moment. :-?


Thanks.

Post Number:#2 Post Sat Nov 24, 2018 10:26 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Sorry, I don't understand fine.

What it should make every 5 seconds while dosing?

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Sat Dec 01, 2018 6:51 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

No more info?
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#4 Post Wed Dec 12, 2018 9:26 am
Posts: 69
Topics: 18
Images: 2
Solve rating: 1
Joined: Tue Apr 14, 2015 11:54 pm
Topics: 18
Age: 42
Gender: Male
National Flag:
Indonesia
Diztly Wardizt wrote:
there is a way for the wavemaker to run smoothly, not to paused every 5 seconds


sorry if my speak is not good, I mean why wavemaker doesn't it work smoothly, stuttered every 5 seconds. :)
and I need you to check the wavemaker function, if in night mode and condition in mode reef crest there is a slight problem.

thank you.

Post Number:#5 Post Wed Dec 12, 2018 7:22 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Friend, I have explained it for you here.

Every 5 - 6 seconds Arduino is checking others functions.

Regarding dosage, the way to make it very accurated is using delay and during this time Arduino won't make anything else. You can try using millis but the code can hang in some part and a big amount will be dosed in your tank.

Here you can try make something using while replacing this delay to make something during dosage.

Example:

unsigned long millis_dosage = millis();

while((millis() - millis_dosage) < tempo_dosagem)
{
  digitalWrite(dosadora[i], HIGH);
  do_something_else();
}


Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to DIY Ferduino controller





Who is online

Users viewing this topic: Google [Bot] and 1 guest

cron