Ameba Arduino: [RTL8722DM MINI] FatfsSDIO – Read and open HTML file from SD card

Materials

  • AmebaD [RTL8722DM MINI] x 1
  • MicroSD card

Example

Insert the MicroSD card into your computer and copy the HTML file to your SD card (Note: put the file at outside and do not put it inside of any folder in the SD card). Here is a HTML sample for testing, “Web_test.html”.

1

Then insert the MicroSD card into the onboard SD card reader of RTL8722DM MINI board.
Open the example, “Files” -> “Examples” -> “AmebaFatfsSDIO” -> “read_html_from_SD_card”
Upload the code and press the reset button on Ameba once the upload is finished. When the connection is established, you should be able to see the message “To see this page in action, open a browser to http://xxx.xxx.xxx.xxx” in the serial monitor as shown in the figure:

1

Next, open the address stated in serial monitor in the browser of your laptop or cell phone under the same WiFi domain. You will see the following display in your browser:

1

Now you have successfully read and opened the html file saved in your SD card.

Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved.
Please confirm that QQ communication software is installed