Page 1 of 1

DAC MCP4725

Posted: Sun Jul 02, 2017 11:40 pm
by maxtisc
Hello everyone
For a few days I'm trying to run arduino 2560 with a DAC type mcp4725 but I did not find the way to run it, i read component datasheet, i2c guide on the forum, and some forum posts but no results
Loading an adafruit sketch works fine, so the connections are correct
I kindly ask you if any one has had experience with this component and can post a simple file with FC6
thank you all

Re: DAC MCP4725

Posted: Mon Jul 03, 2017 10:21 am
by Benj
Hello,

Can you post what you have so far and maybe we can offer guidance.

Re: DAC MCP4725

Posted: Mon Jul 03, 2017 2:45 pm
by maxtisc
thanks for your time
What I would like to do is the one below
I should send a value between 0x00 and 0xfff to get a voltage output from 0 to 5v
In the mcp4725 datasheet is indicated as compiling the command syntax, but i can not run it (with arduin examples it works)
I attach a mcp4725 datasheet and a test FC6
thank you

Re: DAC MCP4725

Posted: Mon Jul 03, 2017 3:01 pm
by maxtisc
Hello
Now it works, I do not know why, maybe my brain was cooked :mrgreen:
I'll disturb you for other questions :?:
thank you

Re: DAC MCP4725

Posted: Mon Jul 03, 2017 3:13 pm
by Benj
Now it works, I do not know why, maybe my brain was cooked :mrgreen:
The slave device might have gone into a stuck state, power cycling may have then removed the issue and allowed the current code to work.

Glad it's working for you now though :D