<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to configure two or more sensors (Having different Address) on same i2c bus in Zephyr RTOS - NRF connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90416/how-to-configure-two-or-more-sensors-having-different-address-on-same-i2c-bus-in-zephyr-rtos---nrf-connect-sdk</link><description>Hi Everyone, 
 I am trying to configure multiple sensors on same I2C bus using Zephyr RTOS, but I am not able to find any reference for the same. 
 Can anyone please help me in Configuring two sensor on same i2c bus in Zephyr RTOS? I am able to interface</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jul 2023 12:00:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90416/how-to-configure-two-or-more-sensors-having-different-address-on-same-i2c-bus-in-zephyr-rtos---nrf-connect-sdk" /><item><title>RE: How to configure two or more sensors (Having different Address) on same i2c bus in Zephyr RTOS - NRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/437237?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 12:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2776bd30-9027-40f7-bcc5-a21880160a1f</guid><dc:creator>lsw_astro</dc:creator><description>&lt;p&gt;Did You ever manage to make it work?&lt;br /&gt;Would be great if You could deliver on Your promise and share overlay file.&lt;br /&gt;&lt;br /&gt;BR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure two or more sensors (Having different Address) on same i2c bus in Zephyr RTOS - NRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/379426?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 06:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6170f9b7-107c-4539-a3a1-33554e26b345</guid><dc:creator>pradeep8892</dc:creator><description>&lt;p&gt;Good Evening Helsing,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks you so much for your reply!&lt;/p&gt;
&lt;p&gt;Currently I working on it and i&amp;#39;ll share the overlay file with you soon.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Pradeep&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure two or more sensors (Having different Address) on same i2c bus in Zephyr RTOS - NRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/379384?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 22:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29b2387d-9b56-4364-ba06-43d2b3a18e00</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Here is a mock up example, inspired by the article &lt;a href="https://docs.zephyrproject.org/latest/build/dts/intro.html#important-properties"&gt;Introduction to devicetree&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Create a file named&lt;span&gt;&amp;nbsp;&lt;em&gt;&amp;lt;board_variant&amp;gt;&lt;/em&gt;&lt;/span&gt;&lt;em&gt;.overlay &lt;/em&gt;&lt;/span&gt;and add the code below to this file. Place the file in your project folder.&lt;span style="font-weight:400;"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Read more about overlay files in the &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-3-ncs-v1-4-0"&gt;getting started guide for nRF Connect SDK&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;                i2c0 {
                        compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
                        status = &amp;quot;okay&amp;quot;;
                        label = &amp;quot;I2C_0&amp;quot;;
                        sda-pin = &amp;lt;30&amp;gt;;
                        scl-pin = &amp;lt;31&amp;gt;;
                        clock-frequency = &amp;lt;I2C_BITRATE_FAST&amp;gt;;

                        apds9960@39 {
                                compatible = &amp;quot;avago,apds9960&amp;quot;;
                                label = &amp;quot;APDS9960&amp;quot;;
                                reg = &amp;lt;0x39&amp;gt;;
                        };
                        ti_hdc@43 {
                                compatible = &amp;quot;ti,hdc&amp;quot;, &amp;quot;ti,hdc1010&amp;quot;;
                                label = &amp;quot;HDC1010&amp;quot;;
                                reg = &amp;lt;0x43&amp;gt;;
                        };
                        mma8652fc@1d {
                                compatible = &amp;quot;nxp,fxos8700&amp;quot;, &amp;quot;nxp,mma8652fc&amp;quot;;
                                label = &amp;quot;MMA8652FC&amp;quot;;
                                reg = &amp;lt;0x1d&amp;gt;;
                        };
                };&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is another example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c2 {
    compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	sda-pin = &amp;lt; 30 &amp;gt;;
	scl-pin = &amp;lt; 31 &amp;gt;;
    clock-frequency = &amp;lt;I2C_BITRATE_STANDARD&amp;gt;;  
	

	bme280@82 {
		compatible = &amp;quot;bosch,bme280&amp;quot;;
		reg = &amp;lt;0x82&amp;gt;;
		label = &amp;quot;BME280&amp;quot;;
	};
	
		bme280@76 {
		compatible = &amp;quot;bosch,bme280&amp;quot;;
		reg = &amp;lt;0x76&amp;gt;;
		label = &amp;quot;BME280&amp;quot;;
	};
	
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please also consult this guide: &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/twi-ic2-implementation-with-nrfx-twis-driver"&gt;TWI/I2C implementation with nRFx TWIS Driver&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Would you be able to share your overlay file?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure two or more sensors (Having different Address) on same i2c bus in Zephyr RTOS - NRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/379279?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 09:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06d498b-7891-4dc7-a3ff-474a9a451365</guid><dc:creator>noob_123</dc:creator><description>&lt;p&gt;Did you find any example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure two or more sensors (Having different Address) on same i2c bus in Zephyr RTOS - NRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/378991?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 20:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4853ded-d578-4f8a-bd33-5abbed6e6332</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Pradeep,&lt;/p&gt;
&lt;p&gt;I will look for an example and get back to you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>