Replies: 4 comments 1 reply
-
I suggest that you start with the library from Adafruit and if you have a good understaning of it and some spare time, you can consider to extend the functionality of this library.... |
Beta Was this translation helpful? Give feedback.
-
Great. And do you have some pointers on how you'd like a PR for a new DAC driver should be structured? So I guess I should add the specific driver code and then implement the interface functions in Driver.h, in which I would call the DAC specific functions to get the chip initialized correctly. And then after that it should just run right upon receiving I2S data. Is that how I should understand it? |
Beta Was this translation helpful? Give feedback.
-
I managed to make the DAC produce audio by using the Adafruit library to init the chip over I2C and then use the I2SStream class. Would there still be a benefit to porting over the logic to this repo? Because if so, I would probably still prefer this over having the Adafruit dependency (along with Adafruit_BusIO as a child dependency). |
Beta Was this translation helpful? Give feedback.
-
Thanks for the Wiki chapter. I really gave it my all to take a crack at this. But I feel like I'm a little out of my league, writing a driver. I read the datasheet through and studied the Adafruit library. But no matter how much I fiddle with the code, I can't seem to get it right. It produces sounds, but it clips a lot. Also my setVolume implementation doesn't seem to work right. I guess I simply don't know enough about correctly initializing a DAC, and writing to registers in paged memory. I followed the Chapter on the wiki so the scaffolding for the driver is in place. And it does function with Arduino Audio Tools, and my test sketch is included in my commit. What's missing is:
I'm a bit sad I didn't manage it myself, but if anyone can help me out I would really appreciate it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Description
What would it take to get support for the TLV320DAC3100?
I'd be willing to have a crack at writing support myself. But I've never really written a driver before.
Adafruit does have a repo themselves for Arduino that shows a bunch of the setup code for the IC.
https://github.com/adafruit/Adafruit_TLV320_I2S
I don't know if that means it's easier to get up and running with arduino-audio-tools, or if a custom driver would still be needed.
Device Description
https://www.adafruit.com/product/6309
Sketch
Other Steps to Reproduce
No response
What is your development environment (with Arduino Core Version information)
No response
I have checked existing issues, discussions and online documentation
Beta Was this translation helpful? Give feedback.
All reactions