開発の模様は note.com の記事で紹介しています。
また、ソースコードも公開しています。 参考になれば幸いです。
これからも楽しみながら装置の開発をしていきたいと思います。
ArduinoIDEを用いてプログラミングしています。 土壌水分計で鉢の乾き具合を計り、値をグローバル変数にセットします。 鉢の乾きが一定値を超えると、一定時間ポンプを作動させます。 これを繰り返します。
また、別プロセスにて、グローバル変数にセットされた鉢の乾きを読み、その状態をLEDで表示します。
AtomLite と M5ポンプユニット を組み合わせた、実用的な園芸用の水やり装置です。 100均やホームセンターで手に入るものを使って組み上げています。AtomLiteへ給電を行うことで、動作を開始します。
土壌水分計で鉢の乾き具合をモニタリングし、鉢が乾いたら、下のタンクから水を汲み上げて水やりを行います。水やりの基本「乾いたらたっぷり水やり」を行い、根がしっかりと呼吸できるため、健全な発根を期待できます。鉢の乾き具合は、LEDの色と点滅間隔で知ることができます。
植物の中で使用する装置を意識して、やわからい点滅となるように工夫しました。
できるだけ難しい工作をしないで、耐久性のある装置を作ることを心掛けました。また土壌水分計のセンサーから戻る値をどのように数値に落とし込むかは常に苦労しています。
本来は、実際に使用する鉢の状態を元に、完全に乾いた状態のセンサーの値と水やり直後の値を比べ、その値の間で乾き具合を求める必要がありますが、できるだけ簡単に作るため、センサーを水に浸した状態と空気中に置いた状態を計測してその情報を元にしています。
It is programmed using the ArduinoIDE. We use a soil moisture meter to measure the dryness of the pots and set the value to a global variable. When the dryness of the pots exceeds a certain value, it activates the pump for a certain period of time. This process is repeated.
Another process reads the dryness of the pots set in the global variable and displays the status on the LED.
The combination of AtomLite and M5 pump unit is a practical gardening watering device. The AtomLite needs to be powered in order to start working.
It monitors the dryness of the pots with a soil moisture meter, and when the pots are dry, it draws water from the tank below to water them. The basic principle of watering, "water generously when dry," will allow the roots to breathe properly and thus healthy rooting can be expected. You can tell how dry the pot is by the color of the LED and the blinking interval.
We tried to make the LED blink softly so that the device would be used inside the plant.
I tried to make the device as durable as possible without making it too difficult. Also, it was always a challenge to figure out how to translate the values returned from the soil moisture sensor into numerical values.
Originally, based on the actual condition of the pots to be used, it was necessary to compare the sensor value in a completely dry state with the value immediately after watering and determine the degree of dryness between the two values, but in order to make it as simple as possible, we measured the sensor immersed in water and in air and used that information as the basis.
Translated with www.DeepL.com/Translator (free version)