Search found 10 matches

by Saul
Mon Oct 25, 2021 7:47 pm
Forum: General Discussion and Questions
Topic: Best practice for remounting sdcard and checking availability
Replies: 3
Views: 2361

Re: Best practice for remounting sdcard and checking availability

updating scrip to include SD card initialization by default but a flag in case your not expecting user to have the SD card at the time of assigning pins in your program. esp_sdcard.py """ MicroPython driver for SD cards using SPI bus. Requires an SPI bus and a CS pin. Provides readblocks and writebl...
by Saul
Sun Oct 24, 2021 5:43 am
Forum: General Discussion and Questions
Topic: Best practice for remounting sdcard and checking availability
Replies: 3
Views: 2361

Re: Best practice for remounting sdcard and checking availability

For any one who is interested in remounting an SD card I have made some changes to the original script: https://github.com/micropython/micropython/blob/master/drivers/sdcard/sdcard.py This script seems to work for my 1G SC, 4G HC, and 32G HC U1 SD cards. esp_sdcard.py """ MicroPython driver for SD c...
by Saul
Wed Oct 13, 2021 8:05 pm
Forum: General Discussion and Questions
Topic: Noob Need Help, Ape Brain Slow
Replies: 5
Views: 2943

Re: Noob Need Help, Ape Brain Slow

Hi @FiguringOutLife, I don't think you will lose much if anything at all going with esp8266 especially if you just using wifi, i2c/spi; but definitely something you would have to test. Also, in terms of implementation aside from pin numbers it would probably be the same to communicate to your device...
by Saul
Thu Oct 07, 2021 5:51 am
Forum: General Discussion and Questions
Topic: Best practice for remounting sdcard and checking availability
Replies: 3
Views: 2361

Re: Best practice for remounting sdcard and checking availability

After doing some googling seems like the deinit issue got fixed: https://github.com/micropython/micropython/issues/7352 But the "reinit" is still ongoing: https://github.com/micropython/micropython/issues/7414 Just compiled the latest lv_micropyhon repo and I'm still seeing the issue on 1.17: MicroP...
by Saul
Tue Oct 05, 2021 4:31 am
Forum: General Discussion and Questions
Topic: Noob Need Help, Ape Brain Slow
Replies: 5
Views: 2943

Re: Noob Need Help, Ape Brain Slow

Hi @FiguringOutLife, I don't know if I used those exact links as I bought my hardware a while ago, but I do use aliexpress for all of my tinkering (micro controllers, sensors, screens, electronic components, motors, bearings, shafts,...) as the price is half if not a third of the price of amazon. Th...
by Saul
Sun Oct 03, 2021 6:25 am
Forum: General Discussion and Questions
Topic: Best practice for remounting sdcard and checking availability
Replies: 3
Views: 2361

Best practice for remounting sdcard and checking availability

I was wondering if anyone knew the best way to check if an SD card is inserted and also how to remount the SD card if it was removed and re-inserted? At one point I was able to mount an SD card again after de-initializing the SPI bus. Now I get the following error: MicroPython v1.15-835-g1fcd6e97f-d...
by Saul
Sun Oct 03, 2021 6:12 am
Forum: General Discussion and Questions
Topic: Noob Need Help, Ape Brain Slow
Replies: 5
Views: 2943

Re: Noob Need Help, Ape Brain Slow

Hi @FiguringOutLife, I have not used the sensors your using but I'm also playing around with micropython and LCD's and from my experience I would say first nail down your hardware before you start doing sudo code. At least for me so much changed in terms of code/libraries needed and approach dependi...
by Saul
Tue Sep 28, 2021 4:49 am
Forum: ESP32 boards
Topic: MicroSD card module and mounting error
Replies: 3
Views: 1479

Re: MicroSD card module and mounting error

Nice! Glad to hear its working :D
by Saul
Mon Sep 27, 2021 6:08 am
Forum: ESP32 boards
Topic: MicroSD card module and mounting error
Replies: 3
Views: 1479

Re: MicroSD card module and mounting error

Hi @ehyre, Seems like it can be any number of things :) like a faulty wire or bad module or finicky SD card. Have you tried another SD card? I have my SD card wired to the slot 2, pins (ESP32 devkitc): SD_SCK 18 SD_MISO 19 SD_MOSI 23 SD_CS 5 And when I try to mount slot 3 I get similar error code: M...
by Saul
Wed Jun 10, 2020 10:50 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 30
Views: 18912

Re: LVGL and SD Card won't share SPI bus

N/A