<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to MCP4725 on my PI3 it seems does not work</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5eac8e207f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5eac8e207f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/5eac8e207f/</id><updated>2022-11-25T10:30:57.685000Z</updated><subtitle>Recent posts to MCP4725 on my PI3 it seems does not work</subtitle><entry><title>MCP4725 on my PI3 it seems does not work</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5eac8e207f/?limit=25#bf1e" rel="alternate"/><published>2022-11-25T10:30:57.685000Z</published><updated>2022-11-25T10:30:57.685000Z</updated><author><name>princessdvlk</name><uri>https://forge.codesys.com/u/princessdvlk/</uri></author><id>https://forge.codesys.comb9e0c20c2471c3901600040db2b288ff273fdda7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I am facing a similar problem like you. I have downloaded the MCP4725 library from this forum. No matter what value I put in the MCP4725.xdacIn, the voltage is always at 0V. &lt;/p&gt;
&lt;p&gt;iDacValue : INT;&lt;br/&gt;
MCP4725.xdacIn := iDacValue; (screenshot = Issue DAC 1) &lt;/p&gt;
&lt;p&gt;I am using a hardware that has raspberry pi core. The Codesys version I am using is Ver3.5 SP17 Patch3. I tried putting 97 in I2C Bus Parameters for MCP4725 (screenshot = Issue DAC 2) but still I am facing the same issue.&lt;/p&gt;
&lt;p&gt;I have been using ADC in I2C mode as well. I didn't face any problem with that as I got an example code for it. Could this be because I am using ADC and DAC with I2C at the same time?&lt;/p&gt;
&lt;p&gt;Could you please help me out? I am attaching the screenshots as well. It is also mentioned in the library method file 'AfterReadInputs' (screenshot = Issue DAC 3) that we must change wInfo&lt;span&gt;[0]&lt;/span&gt; to 16#60 from 16#40 if we want to write the values into DAC register and EEPROM. I guess these files are write protected. Do I have to change this value and if so how? I am unable to do that.&lt;/p&gt;
&lt;p&gt;Looking forward to your reply.&lt;/p&gt;
&lt;p&gt;Thanking you in advance.&lt;br/&gt;
Best Regards!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MCP4725 on my PI3 it seems does not work</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5eac8e207f/?limit=25#abad" rel="alternate"/><published>2020-02-27T16:39:28.594000Z</published><updated>2020-02-27T16:39:28.594000Z</updated><author><name>stetodaro</name><uri>https://forge.codesys.com/u/stetodaro/</uri></author><id>https://forge.codesys.com2a0a372292ff3ffbd69f8729fdd4ee2396393ad7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Solved!&lt;/p&gt;
&lt;p&gt;61 is on HEX format. On Codesys must be wrote in UINT&lt;/p&gt;
&lt;p&gt;61HEX = 97UINT&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MCP4725 on my PI3 it seems does not work</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5eac8e207f/?limit=25#e786" rel="alternate"/><published>2020-02-27T16:39:26.073000Z</published><updated>2020-02-27T16:39:26.073000Z</updated><author><name>stetodaro</name><uri>https://forge.codesys.com/u/stetodaro/</uri></author><id>https://forge.codesys.coma2807cd46376893ca1cfdcd9ff798ca4e58212e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;Can anyone help me?&lt;/p&gt;
&lt;p&gt;I installed the MCP4725 library found here on the forum in the dedicated section.&lt;/p&gt;
&lt;p&gt;Everything seems connected and configured correctly:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Executing ic2detect I see correctly 61 as I setteded on the chip&lt;/li&gt;
&lt;li&gt;In my codesys application it's all green and on run.&lt;/li&gt;
&lt;li&gt;I can handle other TDA8444 DACs but the MCP4725 has a 2.6v fixed output for any value I write in &lt;br/&gt;
  MCP4725.xdacIn&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thank you for your attention&lt;br/&gt;
Bye&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="https://s22.postimg.cc/dtstbn0vl/Cfg.jpg"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>