Use FATFS to Read and Write file

Fatfs is a generic FAT/exFAT file system module for small embedded systems.

Public Chat
Similar projects worth following
FatFs is a generic FAT/exFAT file system module for small embedded systems. The FatFs module is written in compliance with ANSI C (C89) and completely separated from the disk I/O layer. Therefore it is independent of the platform. It can be incorporated into small microcontrollers with limited resource, such as 8051, PIC, AVR, ARM, Z80, RX and etc.

Ameba RTL8722DM is a low-power dual-band WLAN and Bluetooth Low Energy SoC by Realtek. The RTL8722DM also include memory for Wi-Fi protocol functions and application making it simple for anyone to develop various kind of IoT applications. At the same time it has a wide range of peripheral interfaces. With all these interfaces, it can connect to most of the electronics components like LEDs, temperature and humidity sensors, and so on.

More Resources:

If you need additional technical documents or the source code for this project. Please visit the official websites and join the Facebook group and forum.

  • 1 × Ameba RTL8722DM_MINI microcontroller
  • 1 × MicroSD card Electronic Components / Misc. Electronic Components

  • 1

    Insert a MicroSD card into the onboard SD card reader pf RTL8722DM_MINI board

  • 2

    The programming of the Ameba RTL8722DM can be done using Arduino IDE which makes it very easy to write code and upload code to the Ameba Board.

    Open the code in “Files” -> “Examples” -> “AmebaFatfsSDIO” -> “file_read_write”.

  • 3
    Final Results!

    Verify and upload the code. Press the reset button on Ameba once the uploading is complete.

    In the sample code, we create text file “test.txt” with content “hello world!”. Read the file and print content to serial monitor.

    Next, insert SD card into card reader, and check whether the operations succeeded.

View all 3 instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates