Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version with F01 and F02 Handler #166

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

FinnRoters
Copy link

The F02 handler is currently kept simple. In the next few days I would like to do another pull and upload a programme that is more specific for the FarmBot.

FinnRoters and others added 5 commits June 26, 2024 10:13
The F02 handler is currently kept simple. In the next few days I would like to do another pull and upload a programme that is more specific for the FarmBot.
This program has been revised specifically for the FarmBot irrigation system and should only be used in the 100 ml to 850 ml range. First, a water curve (i.e. how many milliliters of water emerge after how many seconds) was recorded. Because this water curve is not linear, a linear approximation was carried out and a measuring range was selected that has the smallest possible error. This measuring range is between 1.25 seconds (~100 ml) and 20 seconds (~880 ml). A linear approximation was carried out for this range using the Quickfit minitool in Origin and the polynomial milliliter = 42.64 ml * t + 18.75 ml was determined. The same was done for the number of pulses of the water flow sensor YF-S201 and the polynomial: pulses = 21.79 pulses * t + 14.64 pulses was determined. To obtain the milliliter quantity per pulse, the two coefficients 42.64 ml and 21.79 pulses were divided by each other. The result is the conversion factor (1.96 ml/pulse). With the conversion factor and the offset of 18.75 ml, the milliliter quantity can now be calculated based on the measured pulses.
@FinnRoters
Copy link
Author

Updated the programm in F02Handler. The program has been revised specifically for the FarmBot irrigation system and should only be used in the 100 ml to 850 ml range. First, a water curve (i.e. how many milliliters of water emerge after how many seconds) was recorded. Because this water curve is not linear, a linear approximation was carried out and a measuring range was selected that has the smallest possible error. This measuring range is between 1.25 seconds (~100 ml) and 20 seconds (~880 ml). A linear approximation was carried out for this range using the Quickfit minitool in Origin and the polynomial milliliter = 42.64 ml * t + 18.75 ml was determined. The same was done for the number of pulses of the water flow sensor YF-S201 and the polynomial: pulses = 21.79 pulses * t + 14.64 pulses was determined. To obtain the milliliter quantity per pulse, the two coefficients 42.64 ml and 21.79 pulses were divided by each other. The result is the conversion factor (1.96 ml/pulse). With the conversion factor and the offset of 18.75 ml, the milliliter quantity can now be calculated based on the measured pulses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant