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

DAC breakout board #5

Open
ijnekenamay opened this issue Jan 5, 2023 · 12 comments
Open

DAC breakout board #5

ijnekenamay opened this issue Jan 5, 2023 · 12 comments

Comments

@ijnekenamay
Copy link

I apologize if I have already finished the discussion somewhere else.
Regarding the DAC breakout board, it seems that GY-MCP4728 is already not available anywhere.
There is an Adafruit breakout board on the market instead, do you think a simple replacement would work?
Thanks in advance.
https://www.adafruit.com/product/4470

@joeSeggiola
Copy link
Owner

joeSeggiola commented Jan 6, 2023

Yeah, unfortunately the GY-MCP4728 breakout boards I was using are quite impossible to find now at reasonable prices.

The Adafruit breakout board you found should work, it has the same exact IC on it. The pin-out is compatible, but the layout (footprint) is not, so you won't be able to solder it directly on the PCB I published. You have to use some cables instead. Or maybe you are not using the PCB, so it won't an issue at all for you. Let me know if you manage to do it, or if you need any help! I’m here.

If you're using a couple of them for In CV, remember to set addresses before soldering. If it's one for MIDI 4+1, it should be come already set with default address #0.

A different option, if you’re comfortable soldering SMD, could be make a compatible breakout board yourself, using bare SMT MCP4728. Adafruit publishes a schematic for theirs here.

@ijnekenamay
Copy link
Author

Thank you!
I'll try then.

@ijnekenamay
Copy link
Author

ijnekenamay commented Mar 16, 2023

Hi, I have fabricated a pcb since then and started build the MIDI 4+1, the DAC is an MCP4728 breakout board from Adafruit, connected with ribbon cables.
https://www.adafruit.com/product/4470

However, I am having trouble with v/oct not working in any of them.
I am trying to check the connections and check the code as I am getting the GATE correctly and I think the DAC is the culprit.
Is there anything you can tell me in advance?
Thanks.

PS.
I have confirmed that the DAC is producing a constant voltage. It may be that the calibration process is not working properly.
The CV output always points to 5V and does not respond to MIDI keyboard note input. Thus, the calibration process could not be performed correctly.

@ijnekenamay
Copy link
Author

Hey! The newly purchased Adifruit_MCP4728 has an MCP4728A4 to be exact. The address of this IC is 0x64 and the midi4plus1 code needs to be corrected.
I have thus successfully completed the calibration process!

Thanks.

@joeSeggiola
Copy link
Owner

Thank you @ijnekenamay for your valuable feedback! I'll leave the issue open to remind myself to add a note on the read-me page and BOM, since the DAC breakout I originally used is now impossible to find.

@ijnekenamay
Copy link
Author

You may have already noticed this, but I will include the edited part just in case.
https://github.com/joeSeggiola/arduino-eurorack-projects/blob/master/midi4plus1/midi4plus1.ino

Change the number in line 158 to 4 in
dac.init(Wire, 0);

dac.init(Wire, 4);.

Please edit the documentation.
Thanks.

@b2unit69

This comment was marked as off-topic.

@faiseur-cz
Copy link

Hi Joe, or anyone else reading this :)
First of, thanks for this project!!
I am trying to make my own version of the pcbs to learn kicad - save costs on a personal project where space isnt an issue so i could have only one pcb manufactured.

So i'm wandering if i could use directly a MCP4728 chip, not the breakout pcb?

Im far from expert!
Thanks!
Flo

@joeSeggiola
Copy link
Owner

joeSeggiola commented Mar 8, 2024

Hi @faiseur-cz! Yes, if you're planning to re-do the board layout, you can easily switch the MCP4728 breakout with the actual chip; I didn't do it myself because I'm not good at soldering SMD. It'll work the same, just keep in mind that there are some additional components on the breakout board that you should add yourself when using the chip directly (decoupling caps and pull-up/down resistors). Fortunately there's a schematic for that, I posted it last year here:

A different option, if you’re comfortable soldering SMD, could be make a compatible breakout board yourself, using bare SMT MCP4728. Adafruit publishes a schematic for theirs here.

@faiseur-cz
Copy link

Hej! Thanks for quick answer!

Yes i was actually wandering if those "extra" components were needed..
I will see then, maybe it'd be easier and cheaper to buy a ready made breakout pcb.

Im planning to include your design for a quad DS8 project, i'll send you some infos when its done if you are interested!

Thanks again!!

Flo

@joeSeggiola
Copy link
Owner

@faiseur-cz Pull-up/down resistors are needed for sure. Coupling caps may be optional if you have a stable power supply, but I can't say for sure: try searching for info in the MCP4728 datasheet. You can surely omit the power-on LED obviously :)

@joeSeggiola
Copy link
Owner

joeSeggiola commented Mar 8, 2024

@faiseur-cz And yeah, sure, keep me posted! It's always nice to get feedback. You can find my email on my GitHub profile page, if you want.

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

4 participants