<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Mux I2C</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/</id><updated>2024-01-02T16:15:21.715000Z</updated><subtitle>Recent posts to Mux I2C</subtitle><entry><title>Mux I2C</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/?limit=25#9fd6" rel="alternate"/><published>2024-01-02T16:15:21.715000Z</published><updated>2024-01-02T16:15:21.715000Z</updated><author><name>andrax</name><uri>https://forge.codesys.com/u/andrax/</uri></author><id>https://forge.codesys.com14d91cb1bf4d42d3cb307d50f4c59b116766f1f2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;the TCA9548a does not work in Codesys.&lt;br/&gt;
In Pyton this is only queried once and in Codesys cyclically.&lt;br/&gt;
Of course you can also insert a terminating resistor in each port, then you should have no problems.&lt;br/&gt;
I use this one:&lt;br/&gt;
&lt;a href="https://botland.de/8-bit-multiplexer/12723-qwiic-mux-breakout-8-kanal-modul-mit-i2c-multiplexer-tca9548a-sparkfun-bob-16784-5904422341428.html" rel="nofollow"&gt;https://botland.de/8-bit-multiplexer/12723-qwiic-mux-breakout-8-kanal-modul-mit-i2c-multiplexer-tca9548a-sparkfun-bob-16784-5904422341428.html&lt;/a&gt;&lt;br/&gt;
You can simply set the library to the latest version.&lt;br/&gt;
You do not need Oscat.&lt;br/&gt;
Do you need an example project for the BMP280?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mux I2C</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/?limit=25#54da" rel="alternate"/><published>2024-01-02T16:15:11.881000Z</published><updated>2024-01-02T16:15:11.881000Z</updated><author><name>andrax</name><uri>https://forge.codesys.com/u/andrax/</uri></author><id>https://forge.codesys.come23282b135c24205b41c2f0b1d26731bf4049623</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;the TCA9548a does not work in Codesys.&lt;br/&gt;
In Pyton this is only queried once and in Codesys cyclically.&lt;br/&gt;
Of course you can also insert a terminating resistor in each port, then you should have no problems.&lt;br/&gt;
I use this one:&lt;br/&gt;
&lt;a href="https://botland.de/8-bit-multiplexer/12723-qwiic-mux-breakout-8-kanal-modul-mit-i2c-multiplexer-tca9548a-sparkfun-bob-16784-5904422341428.html" rel="nofollow"&gt;https://botland.de/8-bit-multiplexer/12723-qwiic-mux-breakout-8-kanal-modul-mit-i2c-multiplexer-tca9548a-sparkfun-bob-16784-5904422341428.html&lt;/a&gt;&lt;br/&gt;
You can simply set the library to the latest version.&lt;br/&gt;
You do not need Oscat.&lt;br/&gt;
Do you need an example project for the BMP280?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mux I2C</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/?limit=25#3fe8" rel="alternate"/><published>2023-12-31T16:28:16.286000Z</published><updated>2023-12-31T16:28:16.286000Z</updated><author><name>martinll</name><uri>https://forge.codesys.com/u/martinlithlith/</uri></author><id>https://forge.codesys.com8aa122d95e91c8f6c48e788caf34d8e770321fa9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi!&lt;/p&gt;
&lt;p&gt;this is also a delayed answer, sorry for this.&lt;/p&gt;
&lt;p&gt;when coding in python i get the  TCA9548a working.&lt;/p&gt;
&lt;p&gt;Is there someone who knows how big of a effort it would be to update Stefan's original code to make it work with a more up to date version of codesys or should i downgrade my system? &lt;/p&gt;
&lt;p&gt;andrax - are you using a downgraded version of codesys or have you downgraded all the libraries? What Oscat lib are you using? what version? &lt;/p&gt;
&lt;p&gt;thanks for your reply!&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mux I2C</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/?limit=25#cc2b" rel="alternate"/><published>2023-10-28T16:05:11.288000Z</published><updated>2023-10-28T16:05:11.288000Z</updated><author><name>andrax</name><uri>https://forge.codesys.com/u/andrax/</uri></author><id>https://forge.codesys.com13f03c825bada80d32fa21114d05f011529a5907</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;br/&gt;
sorry I was not there for a long time.&lt;br/&gt;
The TCA9548 needs terminating resistors, do you have them in?&lt;br/&gt;
That's why I went to QWIIC, the muxboard already has them built in. &lt;br/&gt;
If it still does not work, try it first without the muxboard. &lt;br/&gt;
PS: Note the channel assignment.&lt;br/&gt;
Muxboard 0 = I2C_Master 1,0,0,0,0,0,0,0&lt;br/&gt;
Muxboard 1 = I2C_Master 2,0,0,0,0,0,0&lt;br/&gt;
etc.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mux I2C</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/?limit=25#fdfa" rel="alternate"/><published>2023-10-22T20:01:09.819000Z</published><updated>2023-10-22T20:01:09.819000Z</updated><author><name>martinll</name><uri>https://forge.codesys.com/u/martinlithlith/</uri></author><id>https://forge.codesys.com0868e37d50be618c32702816d11009a8c05416a9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I´ll try to get this thread going again as i´m having simliar problems. &lt;/p&gt;
&lt;p&gt;Right now i get a red triangle on my connected devices (i´m testing with a BME280 sensor and a PCA9685 resvo driver). &lt;br/&gt;
The TCA9548 have the green symbol beside it. &lt;/p&gt;
&lt;p&gt;On the "red" devices i get that the bus is not running. &lt;br/&gt;
I have tried to either run it using the parent bus cycle setting or creating a new freewheeling task prio 1 but nothing helps. &lt;/p&gt;
&lt;p&gt;I have compared my settings to the settings from the example from the MUX package and i have read (i think) every thread in forge that could be of interest. &lt;/p&gt;
&lt;p&gt;The i2cdetect from raspberry show the devices connected on the right places.&lt;/p&gt;
&lt;p&gt;Does anyone have an idea of what i might be doing wrong?&lt;br/&gt;
I have some experience from Codesys but not much so this could be an easy one. &lt;br/&gt;
All suggestions are welcome. &lt;/p&gt;
&lt;p&gt;I tried to upload the project archive but ir did not work. Should i upload the export or how could i show you my horrible project?&lt;/p&gt;
&lt;p&gt;Best, &lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mux I2C</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/?limit=25#0ab9" rel="alternate"/><published>2022-12-03T22:30:44.382000Z</published><updated>2022-12-03T22:30:44.382000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.comc39288d5842986460ec8fea1d907e11ff635528b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
Thank you very much for your answer. Is there a program to drive the multiplexer.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mux I2C</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/?limit=25#9dd1" rel="alternate"/><published>2022-11-30T13:42:42.554000Z</published><updated>2022-11-30T13:42:42.554000Z</updated><author><name>andrax</name><uri>https://forge.codesys.com/u/andrax/</uri></author><id>https://forge.codesys.comf479191304b35cf8bdf3f5c0a31e2563e2cd7129</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a project with 3 sensors. I hope this helps you further.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mux I2C</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f0ef279ade/?limit=25#7542" rel="alternate"/><published>2022-11-24T23:48:31.045000Z</published><updated>2022-11-24T23:48:31.045000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.comf60fa87bcf8dcb4830f36d4b6a8ecd919e7cc4a7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
Is there a simple example of using an I2C multiplexer (PCA9548A).&lt;br/&gt;
I found Stefan's post but I can't find a simple example or documentation.&lt;br/&gt;
My goal is to use the multiplexer to manage 6 or 8 analog output modules (MCP4725).&lt;br/&gt;
Thanks in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>