ComNets-Bremen / WUSN

MoleNet: A Wireless Underground Sensor Network platform
https://www.molenet.org
GNU General Public License v3.0
2 stars 5 forks source link

Micropython: Is the SD-Card working? #11

Closed jdede closed 4 months ago

FarukKollar commented 8 months ago

Found problem in the Sd card connection in the schematics. Pin 7 and 8 was swapped according to reference designs. Corrected the pins. Afterwards checked with different size Sd cards to write and read, it works as expected. (Faruk&Karun)

B00mb0x commented 4 months ago

Works for MoleNetv6

jdede commented 4 months ago

Here is a MWE for MoleNetv6 & Python.

import machine, os
sd = machine.SDCard(slot=2, sck=machine.Pin(12), miso=machine.Pin(13), mosi=machine.Pin(11), cs=machine.Pin(10))
sd.info()
os.mount(sd, "/sd")
os.listdir('/sd')
os.umount("/sd")