Audio with DPI LCD ...
 
Notifications
Clear all

Audio with DPI LCD topper


wundermonkey
(@wundermonkey)
New Member Customer
Joined: 4 years ago
Posts: 2
Topic starter  

I successfully got my LCD topper to work with no issues, the image is great! But now I am trying to figure out how to implement audio. I ordered the PCM audio board and then realized after I got them both that they seem to be incompatible. Is there a way to free up some pins since I do not have a touchscreen? Would I be able to reroute the PCM signal to these pins? Or would it be better to just use a USB audio board?


Quote
othermod
(@othermod)
Reputable Member Admin
Joined: 6 years ago
Posts: 350
 

Unfortunately DPI steals one of the I2S necessary pins, so you won't be able to use it. I'm not aware of any method to relocate the I2S pins. The only GPIOs that are usable are the ones I broke out on the sides. 

USB would be a good option, and PWM audio would work too.


ReplyQuote
wundermonkey
(@wundermonkey)
New Member Customer
Joined: 4 years ago
Posts: 2
Topic starter  

I said PCM and meant PWM. I have your Audio amplifier with built in filter and I was trying to add that to the LCD topper. When I searched around for how to hook it up, it said that I should use pins 18 and 13. I did see the pins on the sides of the topper but I wasn't sure if I could use them. 

Would you suggest using pins 18 and 19? How would I change the dtoverlay?

If I can add that to my project instead of USB, that would save me a bunch of space. I am still very new to this and have limited programming skills. I definitely appreciate your help.


ReplyQuote
othermod
(@othermod)
Reputable Member Admin
Joined: 6 years ago
Posts: 350
 

Yep, 18 and 19. You'll have to tweak the overlay.

I'm pretty sure this is it:

dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2


ReplyQuote