šŸŒæ ESPlanty | Self-watering Solar Powered Plant | No plumbing & no powerpoints | # Irrigation , # Deep Sleep , # Battery

Hi Folks, I would like to have your opinion here
Deep sleep cycle it fine to reduce the power consumption, but the ESP must remain on during the watering cycle.

how you calculated the battery capacity/pump consumption/solar panel?
Iā€™m looking around to select the hw

I think Andreas Spiess has done good videos on this (at least the solar and battery parts). You might need to search a bit on his channel.

For the pump youā€™d prob just measure current with a multimeter?

wow, what a good guidelines i found here. thank you!

i have one issue stillā€¦ how is possible to make component update for uart_bus?

Typically you use component.update on the actual sensor.

Do you have any electrical schematic and materials list here ? I am trying to create the same thing for my dying rose plants. Would be helpful.

1 Like

Afraid not. I can do a materials list easy enough.

Schematic I can have a go at but will have to put aside some time.

I tried many schematics but end up burning something. Would be nice if I have them. Thank you

1 Like

Materials List
1st pass at materials list. May not be complete yet. I included a few extra links to things like soldering equipment and crimping kit I have.

Component Notes Link
Single 18650 Battery Holder Cheap probably ok. Ali Express
3.7V 18650 Battery Buy a good one locally. Get like a 3000-36000mAH one. Get a protected one. Do a little research about local buying options.
Solar Panel (5V) Make sure you get the right voltage. I bought from this Ali Store
Sunflower: Solar Power Manager 5V Investigate your buying options. Core Electronics
Pump Do a little research on pumps and buy a slightly better one Ali Express
VL53L0X Ali Express
BH1750 Ali Express
L298n If you want pump flow control via PWM, you should get the full size version rather than the mini. Ali Express
2 x Resistors (300kā„¦) More detail here.
ESP32 LILYGOĀ® TTGO T7 Mini32 V1.5 Get a good ESP32 for this project. Get one optimised for low energy / deep sleep with battery connections. Tried other boards but idel current too high. Ali Express
Capacitive soil moisture sensor Water proofed with nail polish and hot glue. These are notoriously short lived so read up on them. Ali Express
Treated Pine Sleepers I made my ā€œcut planā€ and got Bunnings to cut to size. Bunnings
Decking Screws For fixing the base box together Bunnings
Castors To roll your plant around
Water Jerry Can To use as water tank. Bunnings
Glass food storage container with Plastic lid Consider your solar panel size when sizing this. KMart , IKEA
Flexible Silicone wire Ali Express
Crimping Tool & Kit ā€¦. ā€¦
Soldering equipment Ali Express
Very short usb cable Connect ESP32 and Solar Power Manager
Tubing Check / confirm the Internal diameter for compatibility with pump. Ali Express
3d printer To print irrigation rings plus other bits and bobs like ā€œcomponent mount plateā€.
Hot Glue Gun For mounting components Ali Express
1 Like

Iā€™ve added a first cut materials list above.
Not sure when Iā€™ll get to doing a wiring diagram. Started one but I suck at them and struggle.

1 Like

Wiring Diagram

I think this is right.

A few points:

  1. Sensor power is supplied / managed via the power manager (not the esp32)
  2. Iā€™m not sure if the way all my grounds are linked is optimal, but it seems to work.
  3. Iā€™d suggest getting everthing except for the sensors connected and working first (including the voltage divider), and then add the sensors / pump one by one and test that they are working.
  4. Set a short deep sleep cycle of like 30 sec on 30 sec off etc during testing.
  5. I2C can be fussy and not keen on long wires. Solder at least on the sensor sides (dupont on other end ok? ).

Even the tiniest details would be helpful as I am a commerce student and hobbyist electronics and this would be my first automated project.

1 Like

This is probably ā€œquite an advanced 1st projectā€.

The build isnā€™t detailed step by step etc.

So you would need to be patient and persistent to work through it.

Wiring diagram is above.

1 Like

Thank you very much.

1 Like

It would be kickass if there was a google doc where everyone building this collaborately could document the step by step. Why hasnā€™t anyone done this yet?

You can be the first;) Itā€™s not done because no-one has done it;)

Some of my projects where I donā€™t think there would be too much interest I tend to lag a bit on the detailed documentation and just do it a bit more ā€œon demandā€.

Documentation contributions welcome though.

Sometimes itā€™s worth just dumping stuff to help close the gaps on a thread like this and then that can help build the how-to. Like I did that kind of thing over here.

Hey there, buddy!

I just had to drop you a line to express my immense gratitude for sharing this projectā€”itā€™s like stumbling upon a hidden gem in a digital treasure trove! Seriously, itā€™s been an absolute game-changer for me in getting to grips with ESPHome. :star2:

Your coding finesse has me in awe, my friend. Iā€™m diving deep into your code, uncovering new approaches, and soaking up knowledge like a sponge. Itā€™s like a thrilling adventure, and your project is the map leading me to programming enlightenment! :rocket::bulb:

Thanks a million for your generosity. Letā€™s keep this coding journey rolling! :raised_hands:

1 Like

Thanks for the kind words.

I assure you itā€™s really more of an assembly of other peopleā€™s work on the forums which I learnt and put together one brick at a time, rather than great programming skills on my part.

Iā€™ve been contemplating which of my deep projects I can use your new trick on BTW;) Thereā€™s always more to learnā€¦

Hey there!

Donā€™t sell yourself short, buddy! Researching, understanding, assembling, and creating something new is commendable. Incorporating the knowledge and reasoning of others into our own is a very dignified way to learn and grow. Iā€™m sure your ability to gather and apply othersā€™ ideas is an impressive skill in itself.

I want to thank you again for sharing this project with us. Itā€™s shedding light on many aspects that were previously elusive to me, and Iā€™m thrilled to see how I can apply these new insights to my own projects. Your contribution is truly inspiring and valuable to me.

Thanks again, and letā€™s keep in touch!

Big hugs! :hugs::star2:

1 Like

Hi there. I got the esp32 with battery and also wanted to monitor the battery status. I am using the battery code and noticed the update_interval is set to never. Is there something else I need to add because the battery voltage and percent stays unknown. If I set the interval to some seconds, it displays some values.

You can set it to some value which works for you.
I update mine ā€œmanuallyā€ from elsewhere in the code.