Nice video. FYI, CS is "Chip Select" in SPI or sometimes called "Slave Select" (SS). SPI can support multiple devices on the same bus as long as each chip has its own Chip Select line.
I am glad that this is making sense to some of the folks. I still haven't figured out how to upload a library from web page to audrino. I CAN build things but programing is NOT my strong suit at all. I jump up and down with joy when I made a hobby servo rotate back and forth using audrion. Please take care and keep up the good work.
Glad you liked it! I've used a few, but this is my most recent order. C$ 0.83 3%OFF | 1pcs/lot Micro SD card mini TF card reader module SPI interfaces with level converter chip for arduino a.aliexpress.com/_msOMnrR
Thanks for the vid but did I need The code if I want the PC to read and write from the SD card, I mean like the SD card readers available in the market?
Thanks for the tutorial. I have only received my Pico today (4/26/2021) after waiting months! I am quite happy writing text files as you describe, but I do have a couple of questions. If I install CircuitPython does it overwrite (ie replace) MicroPython, if it does can I still use Thonny to access it the same way? Can I use SQLITE in Micro/Circuit Python and use the filesystem on the card in the same way?
Hey there! First of all, to hear you were able to get one! Great to hear. You do have to choose between micropython and circuitpython. You can switch back and forth whenever you want, but you can only run one at a time on it. You can access access either from Thonny, you just need to change the interpreter from the settings in Thonny. I don't have any experience with SQLite as of yet, so I don't have an answer for you. I will try to dig into it and get back to you!
@@PrintNPlay Thanks. If possible can you clarify "You can switch back and forth" The question is can both be installed on the Pico at the same time, OR do I simply install the one I want to use just before use?
@@PrintNPlay Great, thanks again. One point of confusion though, I installed Micro Python and it was working great. Then I followed your video and installed Circuit Python, ran your program and it was working great also. But when I went back to Micro Python, my data and the original programs where still there! I would have expected Circuit Python to overwrite Micro Python and vice versa, I was pleased as I had not backed up my original programs. The main reasons for these experiments is to be able to get data in and out of the Pico (with out doing I/O via the USB), I don't have to use SQLite, in fact, now I know I can do plain file I/O I be happy.
Nice video. I am looking for a solution to be able to display images on a oled display for the raspberry pi pico. Trying to work around the 2mb storage limit of the pico. Would this be the way to go? Would I simply be pulling the data straight from the SD card and sending it directly over to the oled display through the pico?
Hi your video has a lot of info I'm trying to extend a pico memory to put octoprint on the sdcard but i won to know is that with your scetch can read it. Thank you for your help and your time
Hello! Unfortunately this exact method won't work in micropython, because it relies on libraries developed specifically for circuit python. I'll do some digging and see if I can find ones for micropython as well
@@PrintNPlay Hey! Thanks for the reply! Actually I decided to use the Pico's flash memory for my project, but I am still looking for the SDcard solution. I think that they haven't implemented machine.SDCard for rp2040 yet... But if I find something, I will post a link here for anyone who is looking for it too... Thanks man!
i'd like to know how big the sd card should be. I have 32gb rn because the webshop i bought it from said that's the max, but now i see multiple people saying 16gb is better. Do you know what the max is?@@PrintNPlay
This is my question also, as the onboard memory in the Pico is sizable enough for code but not for storing any number of .wav files that extend past a few seconds.
Traceback (most recent call last): File "", line 15, in AttributeError: 'module' object has no attribute 'SDCard' how to solve this error please lemme know i am using pico w with circiuit python 9x
I haven't played with it at all myself yet, but the notes I have read from others trying to write to the board using code say that the file system on the Pico is read only at runtime. So, I haven't tested it, but what I've read says no. Hope this helps!
I'm using micropython and writing to Pico is trivial. You do have to stop main.py to see or upload your file. with open('atrack.csv', 'a') as f: f.write(str(data) + "," + str(timestamp) +" ") ## Using this form eliminates need to close file, it is done automatically. Also 'a' append creates the file if it didn't exist. Lastly beginning filename with a puts it at the top of listing by Thonny.
Thanks for the good video on how to connect an SD card to a Pico. I'm wondering, though if you can tell us more about the WHY you did it that way aand how it works so we can use it as a better starting point for our own future projects.. BTW, the CS pin on the card breakout and Pico stand for CHIP select not cable select. Again, I am not trying to criticize your work, this kind of video has its place for those who find it helpful to get started and for me as well as i never considered trying to connect an SDcard to a Pico. Now that I've seen this it has sparked some thoughts for the future for me. So, Thanks!
Hadn't even realized I said cable select instead of chip select! Good catch! I had just been discussing old ide hard drive tech and must have slipped that in by accident. This tutorial was actually directly a result of some other viewers asking for it, specifically for logging information from sensors over time.
I executed the script in the thonny now i am getting this error, Traceback (most recent call last): File "", line 20, in OSError: [Errno 13] Permission denied: '/testfile.txt' why?
I haven't attempted to access data on the internal storage, but I believe I've read it's available for read access. Will try and give it a once over in the future :)
Sorry, my mind was elsewhere. It occurs to me that you were asking if I ever got it to work under the C programming language. I have no idea why I immediately thought you were referring to the internal storage as a 'C' drive. I have not, unfortunately. The time I've had to put towards C projects on the Pico hasn't been as plentiful as I had hoped.