[Raspi Zero W]Play startup sound with UART MP3 Voice Module

Purpose Play startup sound when raspi boots Prepare Raspberry Pi Zero W Gravity: UART MP3 Voice Module Reference https://qiita.com/ikemura23/items/6f9adce99a3db555a0e4 http://hendigi.karaage.xyz/2016/11/auto-boot/ https://tomosoft.jp/design/?p=11677 https://wiki.dfrobot.com/Voice_Module_SKU__DFR0534 Auto run methods /etc/rc.local Run script as root crontab Run script as user systemd Manage as a service Implement Select /etc/rc.local at this time Edit /home/pi/Boot/boot_syateki_server.py as below import serial # open serial port s = serial.Serial('/dev/serial0', 9600, timeout=10) # set volume 0x16 (0x00 - 0x1E) s....

October 13, 2019 · 2 min