Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. sd card
    Log in to post

    • N

      Can i read AWS certificates from a SD CARD?
      FiPy • fipy sd card aws aws mqtt certificate • • nervencid  

      1
      0
      Votes
      1
      Posts
      22
      Views

      No one has replied

    • P

      Use ampy with SD card
      LoPy • sd card file transfer ampy • • PeterB  

      1
      1
      Votes
      1
      Posts
      233
      Views

      No one has replied

    • M

      Logging crash error to the SD card.
      LoPy • sd card error log pycom crash • • Milan  

      1
      1
      Votes
      1
      Posts
      266
      Views

      No one has replied

    • N

      [QUESTION][BOTTLE][FLASK][DJANGO] About web frameworks and SD
      MicroPython • sd card webserver flask django bottle • • nervencid  

      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.gamma

      Expanion board v3.0r and SD card
      Expansion Board • expansion board sd card • • luca.gamma  

      4
      0
      Votes
      4
      Posts
      398
      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)
      Discussion • bugs spi sdcard sd card • • PaulM  

      8
      1
      Votes
      8
      Posts
      1175
      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
      Issues & Bugs • pytrack accelerometer sd card • • Eric Waai  

      12
      0
      Votes
      12
      Posts
      1788
      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
      LoPy • lopy4 sd card data counting • • Justin_Dylan  

      2
      0
      Votes
      2
      Posts
      577
      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.
    • Iplooky

      [SOLVED] LoPy SD card data saving
      LoPy • lopy lora sd card • • Iplooky  

      10
      1
      Votes
      10
      Posts
      1381
      Views

      Iplooky

      @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
      LoPy • lopy pytrack gps sd card • • stefan85e  

      3
      0
      Votes
      3
      Posts
      1162
      Views

      livius

      Also you have not checked if coord = l76.coordinates() return something it can contain None
    • R

      Disable DC-DC 3.3v
      WiPy 2&3 • deepsleep sd card dc-dc current drain • • Roqueton  

      5
      0
      Votes
      5
      Posts
      1118
      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
      Discussion • fipy gpy pytrack sd card gpio • • gregcope  

      6
      0
      Votes
      6
      Posts
      2309
      Views

      Charly86

      @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
      WiPy 2&3 • wipy spi sd card • • spacelggo  

      8
      0
      Votes
      8
      Posts
      2477
      Views

      livius

      @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
      LoPy • lopy expansion board sd card • • Robin  

      8
      0
      Votes
      8
      Posts
      1894
      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
      Expansion Board • lopy expansion board sd card • • Robin  

      5
      0
      Votes
      5
      Posts
      1169
      Views

      jmarcelino

      @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
      Discussion • pymakr sipy pycom sd card • • Josh  

      5
      0
      Votes
      5
      Posts
      1843
      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
      MicroPython • sd card • • Manju2391  

      22
      0
      Votes
      22
      Posts
      8718
      Views

      robert-hh

      @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?
      MicroPython • lopy sd card micorpython • • monersss  

      3
      0
      Votes
      3
      Posts
      1351
      Views

      M

      @robert-hh great thank you it worked perfectly!
    • J

      View contents of SD Card
      Discussion • sd card filezilla • • JimT  

      6
      0
      Votes
      6
      Posts
      2129
      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