# Plant\_io - Plant Cultivation Kit (CE09696)

**URL:** <https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662>\
**Category:** Product Questions\
**Created:** [24 July 2023 01:27 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662 "2023-07-24T01:27:50Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Ciriaco](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Ciriaco](https://forum.core-electronics.com.au/u/Ciriaco)\
**Post date:** [5 September 2023 07:04 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/21 "2023-09-05T07:04:54Z")

</div>

> [@Liam](#):
>
> Hi Ciriaco,
> 
> Since there is a PiicoDev port included you can add any of the sensors and integrate your own control schemes!
> 
> Liam

Hi Liam,  
Then it’s really good. Thank you.

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [5 September 2023 23:11 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/22 "2023-09-05T23:11:28Z")

</div>

Hi Bob,

The control board on top is the crème de la crème that makes this board so useful, instead of having to include a MOSFET or H-Bridge on the plant\_io SHIM we can do away with all that. Now that it acts like a servo a duty cycle can be sent via the signal wire.

Without that board working it takes away the solderless experience that is the plant\_io kit.  
Liam

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [6 September 2023 00:20 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/23 "2023-09-06T00:20:01Z")

</div>

Hi Liam  
Didn’t say anything about any board.  
Simply said you suggested the pump being faulty when [Jarrah255746](https://forum.core-electronics.com.au/u/Jarrah255746) had tested it as OK by connecting the battery directly.  
Cheers Bob

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [6 February 2024 10:06 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/24 "2024-02-06T10:06:41Z")

</div>

G’day guys,

I just received the kit and love it. However, i’m just wondering, i may have had the battery pack turned on and then connected it to my computer via USB at the same time…now the battery pack doesn’t seem to be working. No light comes on the board when the pack is turned on. I have tried disconnecting the pack and reconnecting it, and have changed batteries. Still nothing.

The unit still connects fine to Mac/Thonny.

Second thing, When i was running the system just off the battery, when i did connect it up Thonny to check the log file, i couldn’t find it. I could only find it when i left it connected Via USB cable to Mac.

_update_ Now the light comes on briefly and goes off again when connected via battery pack.

Cheers  
Justin

---

<div class="post-metadata">

**Author:** ![Liam120347](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam120347/32/5003_2.png) [@Liam120347](https://forum.core-electronics.com.au/u/Liam120347)\
**Post date:** [6 February 2024 11:11 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/25 "2024-02-06T11:11:42Z")

</div>

Hi Justin,

When running from the battery bank you might have to press the reset button on the power timer HAT.  
Or keeping the battery pack off when powering from USB, then turning it on.

I’m not certain about the log file off the top of my head but the guys at Core should be able to help tomorrow!

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [6 February 2024 19:48 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/26 "2024-02-06T19:48:19Z")

</div>

Thanks Liam, this helped. Didn’t even realise there are 2 reset pins on the HAT. In the end I tried that but it still turned off. So I pulled everything apart and started again. And ✅ all good now.

Just need to work out the Log file

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [6 February 2024 22:34 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/27 "2024-02-06T22:34:43Z")

</div>

Hi Justin,

The log saves to the internal flash so the experience on Windows and Mac should be the same, would it be possible to send through a photo of your Thonny? (Make sure to not include any personal details)  
You can enable the file window by naviating to View \> Files

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/8/83eb1b0179e247e0e2fefc358dfd82ce5a150afa.png)

When you connect your Pico its always good to do a file system refresh,

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/5/56c632a9d5c398e2f0bc355cf612e820474b6a8d.png)

Let us know how you go!  
Liam

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [7 February 2024 04:11 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/28 "2024-02-07T04:11:18Z")

</div>

Hi Liam,

Thanks for getting back to me. Appreciate it. I just checked it again, and i could find it all there. Not sure what happened before. I am a total noob, so maybe its just that.

Loving this kit by the way.

I added a pic of the setup.

Justin

 ![IMG_9089](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/7/7cd5de1f64ed1fae49937a5d25cdbb7b373bb44a.jpeg)

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [7 February 2024 05:49 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/29 "2024-02-07T05:49:13Z")

</div>

Hi Justin,

Gkad to hear you found it!!  
We all started somewhere and glad it was with the Plant\_io kit!!

Awesome setup, keen to see your plants grow 😃 🌳

Liam

---

<div class="post-metadata">

**Author:** ![Josh265172](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@Josh265172](https://forum.core-electronics.com.au/u/Josh265172)\
**Post date:** [7 February 2024 09:59 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/30 "2024-02-07T09:59:22Z")

</div>

Hi,  
Just connected up my kit and can’t get the soil moisture probe to read 0. When running the soil moisture test it reads about 60% when completely dry and about 90% when submerged in water. After any suggestions on how to calibrate the sensor?  
Thanks

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [8 February 2024 03:33 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/31 "2024-02-08T03:33:05Z")

</div>

Hi Liam,

Ok, everything was working fine, then i ran the set up on battery power for about 24hrs and turned battery pack off and then connected to mac. Couldn’t find the log file (even after refreshing). I stopped and started the main.py and found the log file but i couldn’t get all the data that was from last 24 hours.

I rewatched the [Plant\_IO setup video](https://www.youtube.com/watch?v=0wI8gDeB3WM&t=1081s&ab_channel=CoreElectronics) and wondered if it matters if the battery pack is turned on or off when reconnected to USB.

Now i can’t tell if i’m doing something wrong or not.

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [8 February 2024 05:59 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/32 "2024-02-08T05:59:48Z")

</div>

Hi Josh,

It sounds like that’s arrised from this PR: [Plant\_io Basic Setup Guide | Automatically Water a Seedling Based on Soil Moisture - #8 by Marc67778](https://forum.core-electronics.com.au/t/plant-io-basic-setup-guide-automatically-water-a-seedling-based-on-soil-moisture/17629/8)

You could try the old values:  
` self.curr_sens = self.mf.normalise_x(moving_ave, 27500, 50000)`

or set your own min and max using the following code:

```auto
import machine
import utime

soil_moisture = machine.ADC(28)

# A handy function for mapping values
def map_range(x, in_min, in_max, out_min, out_max):
    mapped = (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min
    return int(max(min(mapped, out_max), out_min))

while True:
    
    soil_moisture_raw_reading = soil_moisture.read_u16()
    print(soil_moisture_raw_reading)

# # Uncomment the 2 lines below for the mapped reading 
# soil_moisture_filtered_reading = map_range(soil_moisture_raw_reading, 15000, 50000, 0, 100)
# print(soil_moisture_filtered_reading)
    utime.sleep(0.5)

```

Hey @Justin264431

That’s quite strange - if you run off of USB what does the battery voltage say? The Pico might be in a brown-out state and isnt able to completely run/save?  
It shouldnt matter whether its on or off when reconnected - keen to get to the bottom of this!

Liam

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [8 February 2024 10:44 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/33 "2024-02-08T10:44:13Z")

</div>

Here are a couple of screenshots from this evening. Keen to get to the bottom of this too! Cheers for your ongoing support.

One thing that seems to keep happening, is that after i disconnect the USB cable from laptop, the power switch on the battery setup pack has no effect. Then i hit the ‘reset’ buttons on the Power HAT and it seems to start working again (lights are on just from being supplied by power pack). BUT then there is no log.txt file anywhere to be seen once reconnected to Laptop.

 ![Screenshot 2024-02-08 at 9.42.07 pm](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/e/e9278cc9993349ee9ed701b193fb3f5c0da9f3b3.jpeg)  
 ![Screenshot 2024-02-08 at 9.41.41 pm](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/b/bd6c203e920df9a647c9f6c0fad9c5a1c23a5ec7.jpeg)

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [12 February 2024 01:25 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/34 "2024-02-12T01:25:39Z")

</div>

Hi Justin,

> [@Justin264431](#):
>
> One thing that seems to keep happening, is that after i disconnect the USB cable from laptop, the power switch on the battery setup pack has no effect. Then i hit the ‘reset’ buttons on the Power HAT and it seems to start working again (lights are on just from being supplied by power pack).

This seems like its working and supplying power to the power timer HAT at least!

> [@Justin264431](#):
>
> BUT then there is no log.txt file anywhere to be seen once reconnected to Laptop.

It sounds like the Pico might not be receiving power here, thanks for confirming that.

- The Batteries might not be charged in which case the Pico is definitely in that brown-out state
- The power timer HAT is faulty

If you have a NiMH charger popping them in for a while should remedy any voltage issues

A quick test to confirm that the batteries and power timer HAT are working would be to run the following code:

```auto
from machine import Pin
from time import sleep

onboard_led = Pin(25, Pin.OUT)
DONE = Pin(22, Pin.OUT) 

onboard_led.on()
sleep(3)
DONE.on()

```

The LED should turn on for 3 seconds then turn off, you can start this again by pressing the reset button on the HAT.

Liam

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [12 February 2024 01:37 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/35 "2024-02-12T01:37:34Z")

</div>

Hi Liam,

Thanks for replay. I can confirm that the NiMH batteries were in fresh brand new and fully charged. I even measured the charge from  
Them and got 4.8v. So not the batteries.

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [12 February 2024 02:56 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/36 "2024-02-12T02:56:10Z")

</div>

Hi Liam,

Should that code be run whilst connected to usb or via battery?

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [12 February 2024 02:59 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/37 "2024-02-12T02:59:47Z")

</div>

Hi Justin,

Sorry, it should be uploaded as `main.py` so that it can be run when the power is coming through the power timer HAT.

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [12 February 2024 03:10 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/38 "2024-02-12T03:10:39Z")

</div>

Ok great. Thanks

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [12 February 2024 08:48 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/39 "2024-02-12T08:48:07Z")

</div>

Hi Liam,

Things are getting weird. I tried the code and it worked sometimes and then other times it just turned off.

Justin

---

<div class="post-metadata">

**Author:** ![Justin264431](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/justin264431/32/9663_2.png) [@Justin264431](https://forum.core-electronics.com.au/u/Justin264431)\
**Post date:** [12 February 2024 20:48 UTC](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662/40 "2024-02-12T20:48:45Z")

</div>

Hey Liam,

When the Plant is operating off of battery power is the LED lights on the HAT supposed to stay on constantly? Or does it just come on when the 20minute power cycle kicks in to run the program and then off again?

Sorry for so many questions haha.

[Previous page](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662.md?page=1)

[Next page](https://forum.core-electronics.com.au/t/plant-io-plant-cultivation-kit-ce09696/17662.md?page=3)
