DAC MCP4725

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times
Contact:

DAC MCP4725

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: DAC MCP4725

Post by Benj »

Hello,

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

maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: DAC MCP4725

Post 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
Attachments
MCP4725.fcfx
(6.77 KiB) Downloaded 318 times
22039d.pdf
(1.46 MiB) Downloaded 339 times

maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: DAC MCP4725

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: DAC MCP4725

Post 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

Post Reply