I am trying to play the audio file 00001.mp3 on the board using the UART of the Raspberry Pico
from machine import UART, Pin
from time import sleep
uart = UART(0, 9600, tx=Pin(0), rx=Pin(1))
uart.write(b'\xAA\x07\x02\x00\x01\xB4')
I have the dip switch set (3 on 1 & 2 off). I have Pin 0 Wired to RX/101 and Pin 1 Wired to TX/100.
but I get no audio. If I set the switches to autoplay the file in a loop at power up that works. SO the file and the board to work. But it doesn't seem to play audio using the UART
I think the issue is sending the play specific file command?
Anyone had any luck using the PICO with any of the DY-XXXX audio modules?
from machine import UART, Pin
from time import sleep
uart = UART(0, 9600, tx=Pin(0), rx=Pin(1))
uart.write(b'\xAA\x07\x02\x00\x01\xB4')
I have the dip switch set (3 on 1 & 2 off). I have Pin 0 Wired to RX/101 and Pin 1 Wired to TX/100.
but I get no audio. If I set the switches to autoplay the file in a loop at power up that works. SO the file and the board to work. But it doesn't seem to play audio using the UART
I think the issue is sending the play specific file command?
Anyone had any luck using the PICO with any of the DY-XXXX audio modules?
Statistics: Posted by jeff.davis503 — Tue Jun 25, 2024 12:11 am — Replies 0 — Views 25