Posted on Leave a comment

Transfer files between computer and Raspberry Pi Pico

Raspberry Pi Pico transfer files

Time needed: 3 minutes.

Learn in this tutorial how to easily transfer files from your computer to your Raspberry Pi Pico and vice versa.

When you’ll have completed this tutorial, you will be able to upload and download files to your Raspberry Pi Pico in a very easy way.

  1. Prepare the hardware

    – First you need a computer to run Thonny. In this tutorial we’ll use a Raspberry Pi 4 as our computer. And Thonny is a user-friendly Python IDE to interact with the Raspberry Pi Pico board. If you never used Thonny to program the Raspberry Pi Pico, before continuing, you better have a look at our tutorial “How to start programming the Raspberry Pi Pico“.

    – Next you need an USB cable with micro-USB plug.

    – And finally you need a Raspberry Pi Pico of course. For this tutorial it doesn’t matter if GPIO-pins are soldered or not.
    Raspberry Pi Pico USB-cable
    Visit our shop if you miss any components.

  2. Open Thonny Python IDE and change the View options

    In the default View from the Thonny IDE the files aren’t visible. We can make them visible by selecting : View > Files

    Thonny change View Files option

  3. Change the working directory of your computer

    Now, an additional tab with files should appear on the left side of the Thonny IDE. The files of your computer (top) and the ones of your Raspberry Pi Pico (bottom) should be visible.

    Change now the current directory of your computer to the one where your files to be uploaded to the Pico are stored.

    Thonny change files directory

  4. Upload the file to the Raspberry Pi Pico

    As an example, let’s upload the ‘Hello_World.py’ file to the Raspberry Pi Pico now. Simply, right-click on the file and select ‘Upload to /’ in the dropdown menu to upload the file to your Raspberry Pi Pico.
    Thonny upload files

  5. Check if the file has been uploaded successfully

    Just quickly check in the box at the bottom if the file has been uploaded succesfully to your Raspberry Pi Pico.

    Thonny files uploaded
    You can now open and edit the file in the Thonny IDE.

    Similarly, you can transfer files from your Raspberry Pi Pico to your computer. With the same tool, you can also delete files an create new directories on your Raspberry Pi Pico.

    And have a look at our tutorial “How to start programming the Raspberry Pi Pico” if you want to learn how to let your Pico run the script without being attached to your computer.

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Leave a Reply

Your email address will not be published. Required fields are marked *

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

find out more products

Be the first to be informed about our latest tutorials and products by subscribing to our Newsletter

freva.com respects your privacy. Read our privacy policy on how we handle your personal information.