Plant_io not recognised in Plant_ io codes

Hey @Frank196078,

If you have found the python files inside of the ~\CE-Makerverse-Plant_io-main\code folder it should be straight forward from here to get these files onto your pico.

  1. Open any of those python files in Thonny (I used Plant_io.py)
  2. You should see the current contents of your Pico as well as a local system folder on the left of the screen. (If you can’t see this window click on ‘View’ in the top menu bar and click on ‘Files’ in the dropdown.)
  3. Inside the ‘Files’ box, navigate to the ~\CE-Makerverse-Plant_io-main\code folder by clicking on the blue text to step back out of the current directory and the ‘+’/‘-’ folder symbols to step forward through your local directory. At the end of this, you should be able to see all of those Python files in this window like in my screenshot.
  4. Right-click on the plant_io.py file and select the ‘Upload to /’ option to move it onto the Pico. You should see confirmation of this when the file name appears under the ‘Raspberry Pi Pico’ section. I suggest repeating this step for all of the Python files in the ~\CE-Makerverse-Plant_io-main\code folder you intend to use so you don’t have to do this again later.
  5. Once your files have been moved over you should be able to run this project on your Pico. I would suggest moving over at least Plant_io.py and automatic_watering.py. Double-clicking on the copy of automatic_watering.py in the pico directory will open it up in Thonny and allow you to run it.
  6. If you want this file to run automatically whenever the Pico is booted you can rename automatic_watering.py to main.py. My Thonny window after this process looks like this.

If you get stuck with these steps, let us know where and we can give you a hand!

1 Like

Thank You I understand where your coming from. I just got to get my brain around it . I will try your suggestion. THis exercise has been a great learning experience.

Hey @Frank196078,

No worries at all. These sorts of projects can be daunting at first.

I’m sure you will be an expert in no time!

All good up to “upload to/” then get "Back end " errors. Will try again from start and let you know . Thanks again

Thank you Samuel your step by step instruction solved my issue . The big problem was my lack of understanding of moving files. It all worked great . At the same time of working with you i wrote scrips to do the same job but using Pi4 that worked to. Thanks again.

Thanks for your help i finally got it.

Thanks for your help it works .

1 Like

Hi @Frank196078

Great to hear that you managed to get it working!