Arduino – play music while the door is open / 戸が開いている間 音楽を流すメモ

MP3-TF-16P
Arduino NANO

Download library

https://codeload.github.com/DFRobot/DFPlayer-Mini-mp3/zip/master

Set serial port permission on Ubuntu.

Arduino UNO
$ sudo chmod a+rw /dev/ttyACM0

Arduino NANO
$ sudo chmod a+rw /dev/ttyUSB0

Micro SD Card

16GB, FAT32
File: 0001.mp3, 0002.mp3, …

Resistors

1k