OpenSprinkler › Forums › Hardware Questions › OpenSprinkler › How much current can I draw off the 5v connection? › Reply To: How much current can I draw off the 5v connection?
William
Thanks Ray. I just looked at the schematic and I should be able to hook my ESP32 GPIO directly SN2. That really simplifies things, no opto-isolator board.
Over the last few weeks, I have been trying to integrate the OpenIA API with my microcontroller projects. In this project, OpenAI will evaluate the data from OpenWeatherMap and decide if the sprinklers should run. As yet, I have not done enough bench testing to tell if it is worth the bother. One day, it did decide watering was not necessarey based on the temperature being too cold for the grass to absorb water. Promising. Here’s the prompt I am using:
“Here are JSON responses from OpenWeatherMap containing current weather and forecast weather.
Please determine if I should activate my lawn sprinklers.
– Use rainfall amounts, precipitation probability, humidity, wind speed.
– Follow these rules:
– If forecast rain (>2mm in the next few days) is likely, do not water.
– If other conditions, such as high winds are present or likely. do not water.
– Otherwise, allow watering.
– If you see the word Rain in either JSON string, do not water. Be sure to read all of the JSON strings.
– Consider morning temperature. If it is too cold in the morning, the grass is likely dormant and will not absorb water.
Respond only with “YES” to inhibit the lawn sprinklers and not water or “NO” to activate sprinklers and water. Do not add any discussion to this structured reply.”
I will repost to this thread if this approach bears fruit.