No video

Managing files on the Pico with MicroPython

Do you want to know how to manage your files on the Raspberry Pi Pico using MicroPython? Then this is the video for you.
In this video I'll show you how to save files to the Pico, how to create folders and rename files and how to remove folders. I'll also go over the differences between MicroPython and CircuitPython when it comes to file management.
For more information, tutorials, parts and more visit:
www.smarsfan.com​
To join the membership at bronze, silver or gold levels, head over to
www.smarsfan.c...
Enjoy this video? Buy me a coffee!
www.buymeacoff...
Music by Epidemic Sounds
www.epidemicso...
#Pico​ #MicroPython​ #Robotics

Пікірлер: 29

  • @davidhill499
    @davidhill4993 жыл бұрын

    Great stuff Kevin. Your videos cover what I want to know. So far many other prsenters dont seem to dig into this.

  • @kevinmcaleer28

    @kevinmcaleer28

    3 жыл бұрын

    Thanks David!

  • @zyghom
    @zyghom3 жыл бұрын

    so simple yet so useful - thx

  • @danieldare2640
    @danieldare2640 Жыл бұрын

    Really useful, I've subscribed, thanks so much for that one, very interesting.

  • @thweiser
    @thweiser3 жыл бұрын

    I really like that format!!! Thanks :-)

  • @kevinmcaleer28

    @kevinmcaleer28

    3 жыл бұрын

    I'm really glad you like it!

  • @lesingeniauxmakerspacepari7346
    @lesingeniauxmakerspacepari73462 жыл бұрын

    Nice tutorial, really helpful!

  • @kapex6405
    @kapex64052 жыл бұрын

    Thanks a lot! This was helpful and simple!

  • @speedy_sasquatch
    @speedy_sasquatch Жыл бұрын

    very helpful thank you!

  • @aminekouchta9616
    @aminekouchta9616 Жыл бұрын

    really good tips thank you

  • @Resus-U
    @Resus-U Жыл бұрын

    How do y’all see the files on the left. When I click files it just shows my computer files

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl Жыл бұрын

    Thank YOu

  • @udomtipparach4894
    @udomtipparach4894 Жыл бұрын

    Thank you so much for introducing OS on thonny. My data files were save in Pi Pico, how can I change directory so that data files can be saved in my computer?

  • @kevinmcaleer28

    @kevinmcaleer28

    Жыл бұрын

    Great question- you can you Thonny to copy them from the Pico to your computer, or if you are feeling more adventurous you can use mpremote- I’ll do a video on that soon

  • @justmc62
    @justmc62 Жыл бұрын

    Great tutorial Kevin... Was curious on how to manage files on the Pico W with Thonny .. Been doing a little further research. It appears 'os' is a python command , and that 'uos' is the command for micropython... Is there a benefit of using one over the other ? Thanks..

  • @kevinmcaleer28

    @kevinmcaleer28

    Жыл бұрын

    The ‘u’ character is prefixed to a lot of Micropython libraries to indicate they are a scaled down version of the python version (the u is the Greek Mu character). They are now aliased meaning you can use either

  • @justmc62

    @justmc62

    Жыл бұрын

    @@kevinmcaleer28 Thanks Kevin for the quick and descriptive reply ...Love your channel !

  • @robertmurton7373
    @robertmurton73733 жыл бұрын

    hello Kevin it would appear that the code for mpu9250 still does not recognise the other import files even though they are in the '/' directory. i.e. ak89643.

  • @kevinmcaleer28

    @kevinmcaleer28

    3 жыл бұрын

    Are you using CircuitPython or MicroPython?

  • @yxhankun
    @yxhankun Жыл бұрын

    how to copy all files in pico to pc in one command?

  • @kevinmcaleer28

    @kevinmcaleer28

    Жыл бұрын

    If you use mpremote, you can copy all the files in one go.

  • @raspberryPi1337
    @raspberryPi13373 жыл бұрын

    Thanks for your video. Do you know if it is posible to copy files with the os mudule? Also how can you change between the pico folder and the pc folder?

  • @kevinmcaleer28

    @kevinmcaleer28

    3 жыл бұрын

    Hey Lucky_M - thanks! I don't think file copying is straight forward in MicroPython - you could open the source file and read in each byte and write it out to a new file, but I'm not sure why you'd want to do that. The Pico doesn't know about the PC file system - you have to move files between the PC and Pico using software such as Thonny or Visual Studio Code.

  • @raspberryPi1337

    @raspberryPi1337

    3 жыл бұрын

    @@kevinmcaleer28 thanks a lot for your help, I'm just just a noob

  • @robertmurton7373
    @robertmurton73733 жыл бұрын

    this is the output '['ak8963', 'gyro', 'install', 'lib', 'mpu6050', 'm...'

  • @kevinmcaleer28

    @kevinmcaleer28

    3 жыл бұрын

    How come the python files don’t have the .py extension - they need that for Python to find them - rename them to mpu6050.py etc and it should work

  • @robertmurton7373
    @robertmurton73733 жыл бұрын

    I am using Micropython

  • @kevinmcaleer28

    @kevinmcaleer28

    3 жыл бұрын

    So from the repl - if you type ‘import os’, then ‘listdir()’ - what is the output?

  • @robertmurton7373
    @robertmurton73733 жыл бұрын

    Thank you Kevin. I will use this information in my quest to get mpu9250 (simple.py) to work.