Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DY-HV8F with Raspberry Pico MicroPython using UART #66

Open
jeffdavis503 opened this issue Jun 25, 2024 · 1 comment
Open

DY-HV8F with Raspberry Pico MicroPython using UART #66

jeffdavis503 opened this issue Jun 25, 2024 · 1 comment

Comments

@jeffdavis503
Copy link

jeffdavis503 commented Jun 25, 2024

picoaudio

I am trying to play the audio file 00001.mp3 on the board using the UART of the Raspberry Pico using MicroPython

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) to UART mode. I have PICO UART0TX Wired to RX/101 and PICO UART0RX 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.
Is there anyway to use dyplayer on a Pico board?

@alastaira
Copy link

You need to connect GND between the RPi and the DY-HV8F as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants