Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login
    1. Home
    2. Tags
    3. sd card

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Log in to post

    • All categories
    • N

      Can i read AWS certificates from a SD CARD?

      Watching Ignoring Scheduled Pinned Locked Moved FiPy fipy aws mqtt aws certificate sd card
      1
      0 Votes
      1 Posts
      24 Views
      No one has replied
    • P

      Use ampy with SD card

      Watching Ignoring Scheduled Pinned Locked Moved LoPy ampy sd card file transfer
      1
      1 Votes
      1 Posts
      236 Views
      No one has replied
    • M

      Logging crash error to the SD card.

      Watching Ignoring Scheduled Pinned Locked Moved LoPy error log sd card pycom crash
      1
      1 Votes
      1 Posts
      266 Views
      No one has replied
    • N

      [QUESTION][BOTTLE][FLASK][DJANGO] About web frameworks and SD

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython flask django bottle sd card webserver
      8
      0 Votes
      8 Posts
      775 Views
      P
      You can try something like this: https://github.com/jczic/MicroWebSrv looks like the author explicitly supports pycom modules. (Please note this isnt an official pycom recommendation. I've never used it. we dont support the library. I just found it in my travels and thought it might be usefull) @jczic if you happen to stumble across this. Good work. Look's like a neat project!
    • luca.gammaL

      Expanion board v3.0r and SD card

      Watching Ignoring Scheduled Pinned Locked Moved Expansion Board expansion board sd card
      4
      0 Votes
      4 Posts
      400 Views
      P
      @luca-gamma Perfect. Glad you got it sorted :)
    • P

      Fixed broken sdcard.py library (previously impossible to have external SPI uSD card with Pycom boards)

      Watching Ignoring Scheduled Pinned Locked Moved Discussion sd card spi sdcard bugs
      8
      1 Votes
      8 Posts
      1k Views
      S
      @robert-hh Thanks, I am working on a very small laptop so I didn't see that as it wasn't very obvious :-)
    • E

      OSError: [Errno 22] EINVAL at writing to SD-card

      Watching Ignoring Scheduled Pinned Locked Moved Issues & Bugs pytrack sd card accelerometer
      12
      0 Votes
      12 Posts
      2k Views
      E
      @timh Well in embedded programming for example one of the lpc4000 series with a proper debugger you can "walk" through the code and see at any given point in the code what value any given variable has. That's the real thing i'm missing with python: a decent debugger where i can set breakpoints, evaluate and and manipulate RAM variables and cycle through lines of code. this And i believe that wrapping everything in try and catch can make you a lousy/lazy programmer. For myself i only add try and catch if everything works as it should. Than add them to give the option to continue running with less functionality or save some variables and reboot. As for now i'm liking C much more. But there is also an enormous difference in experience. I've been programming all kinds of embedded microcontrollers in C for years, and probably python is never gonna catch up. I have to get more used to coding in python and i will. I guess i'm not so used anymore to make beginner mistakes ;)
    • J

      Micropython Counter

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy4 data counting sd card
      2
      0 Votes
      2 Posts
      579 Views
      S
      Python code without proper indentation is not very useful. You should try to put it inside a code block like this: import time import machine from machine import Pin tip_num = 0 tip = (Pin('P10', mode=Pin.IN, pull=Pin.PULL_UP)) tip([1]) while tip !="": tip_num += 1 tip_value = (tip) total += tip_value tip = (Pin('P10', mode=Pin.IN, pull=Pin.PULL_UP)) print("Counter", tip_num) print("Done") Apart from that there are a lot of mistakes (e.g. tip([1])) and redundancies (e.g. wrapping everything in parenthesis) in your code. You should probably read the the MicroPython and Pin documentation first.
    • IplookyI

      [SOLVED] LoPy SD card data saving

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy sd card lora
      10
      1 Votes
      10 Posts
      1k Views
      IplookyI
      @robert-hh f.flush() works just fine. Thank you a lot! It really helped me !
    • S

      SD Card - Store GPS GPS-coordinates to SD card

      Watching Ignoring Scheduled Pinned Locked Moved LoPy gps sd card pytrack lopy
      3
      1
      0 Votes
      3 Posts
      1k Views
      L
      Also you have not checked if coord = l76.coordinates() return something it can contain None
    • R

      Disable DC-DC 3.3v

      Watching Ignoring Scheduled Pinned Locked Moved WiPy 2&3 deepsleep sd card dc-dc current drain
      5
      0 Votes
      5 Posts
      1k Views
      G
      @livius Agreed. I was going to use an SD Card to store config, state and logs, but now my device is no longer low power... Seems a bit off when you can switch all (that I know of) bit off.
    • G

      GPIO Pins free on Gpy and Pytrack

      Watching Ignoring Scheduled Pinned Locked Moved Discussion gpy pytrack fipy sd card gpio
      6
      0 Votes
      6 Posts
      2k Views
      Charly86C
      @seb it looks like the pytrack button wakes the board only if you enable the accel wake up. Since I disabled the accel wake up the button does not wake up anymore. Can anyone can confirm this ?
    • S

      WiPy with external MicroSD card module

      Watching Ignoring Scheduled Pinned Locked Moved WiPy 2&3 wipy spi sd card
      8
      0 Votes
      8 Posts
      2k Views
      L
      @spacelggo I do not remember what was the cause of slowness you can try to find info on the forum. I suppose that this was releated directly with SD driver not SPI itself. Someone tested this i do not tested this myself. I use always direct connection and built in driver.
    • R

      Unable to mound SD Card

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy sd card expansion board
      8
      0 Votes
      8 Posts
      2k Views
      E
      @Robin did you fix it?, I am trying to do the sema thing continuous mounting and resettind the SD Card. and sometimes I get the error: OSError: the requested operation is not possible, when i use "sd = SD()". and when I use "os.fsformat('/sd')" the program stop and I can only run again when I use the push button reset.
    • R

      SD card not recognized in expansion board with LoPy and deepsleep shield

      Watching Ignoring Scheduled Pinned Locked Moved Expansion Board expansion board lopy sd card
      5
      0 Votes
      5 Posts
      1k Views
      J
      @robin UART0 is a bit special - need to look into that myself - but you can easily redefine the UART1 pins (and UART2 unless on the GPy/FiPy)
    • J

      Appending data on an SD card file

      Watching Ignoring Scheduled Pinned Locked Moved Discussion sipy pymakr sd card pycom
      5
      0 Votes
      5 Posts
      2k Views
      J
      Hi @seb Thanks that clears things up a lot! I didn't know I could list the methods in each module either, useful to know... That would be fantastic if you could add this sort of extra detail in the documentation, I'm sure that will save me a lot of time! Thanks again.
    • M

      External SD Card

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython sd card
      22
      0 Votes
      22 Posts
      9k Views
      robert-hhR
      @edward-dimmack That should work. I'm using this wiring on my homebrew interface boards.
    • M

      How to run a code in lopy stored on SD card?

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython lopy sd card micorpython
      3
      0 Votes
      3 Posts
      1k Views
      M
      @robert-hh great thank you it worked perfectly!
    • J

      View contents of SD Card

      Watching Ignoring Scheduled Pinned Locked Moved Discussion sd card filezilla
      6
      0 Votes
      6 Posts
      2k Views
      J
      Hello Robert, I used the example SD code where I see it call the mount statement. from machine import SD import os sd = SD() os.mount(sd, '/sd') os.listdir('/sd') f = open('/sd/test.txt', 'w') f.write('Testing SD card write operations') f.close() f = open('/sd/test.txt', 'r') f.readall() f.close()
    • 1 / 1