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

Dosing And Wavemaker Pause for a while

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

Post Number:#1 Post Sat Nov 24, 2018 6:40 am
Posts: 62
Topics: 16
Images: 1
Solve rating: 1
Joined: Tue Apr 14, 2015 11:54 pm
Topics: 16
Age: 36
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: 1520
Topics: 38
Images: 267
Solve rating: 199
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 34
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.
Please do not PM me for support unless it is absolutely necessary.

I'll not write custom function to nobody unless you can pay for my job.

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

No more info?
Please do not PM me for support unless it is absolutely necessary.

I'll not write custom function to nobody unless you can pay for my job.

Post Number:#4 Post Wed Dec 12, 2018 9:26 am
Posts: 62
Topics: 16
Images: 1
Solve rating: 1
Joined: Tue Apr 14, 2015 11:54 pm
Topics: 16
Age: 36
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: 1520
Topics: 38
Images: 267
Solve rating: 199
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 34
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.
Please do not PM me for support unless it is absolutely necessary.

I'll not write custom function to nobody unless you can pay for my job.




  • Similar Topics
    Replies
    Views
    Last post

Return to DIY Ferduino controller





Who is online

Users viewing this topic: No registered users and 1 guest

cron