<?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 connect nrf9160 with multiple bme280 sensor?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74109/how-to-connect-nrf9160-with-multiple-bme280-sensor</link><description>Hello! 
 I have followed nrf connect sdk tutorial part3 and have walked through for bme280. But now I want to connect two or more bme280 sensors to my dk. How should I modify the prj.conf file, the overlay file and the main.c file? 
 Thanks a lot. 
 Regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Apr 2021 07:36:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74109/how-to-connect-nrf9160-with-multiple-bme280-sensor" /><item><title>RE: How to connect nrf9160 with multiple bme280 sensor?</title><link>https://devzone.nordicsemi.com/thread/306923?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 07:36:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44b2c56a-98f3-4e99-88b9-a2f6dd2c5b91</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;I am using nRF Connect SDK v1.5.1 which includes Zephyr v2.4.99. I recommend you using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/index.html"&gt;this version&lt;/a&gt; as well.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect nrf9160 with multiple bme280 sensor?</title><link>https://devzone.nordicsemi.com/thread/306853?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 14:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41e3ba7f-0a4c-403e-b81e-f0a05ad16c58</guid><dc:creator>AMG</dc:creator><description>&lt;p&gt;&lt;span&gt;nRF Connect SDK version&amp;nbsp;along with zephyr. I assume you are using v1.2.0 with zephyr version&amp;nbsp;v.2.1.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ahmed&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect nrf9160 with multiple bme280 sensor?</title><link>https://devzone.nordicsemi.com/thread/306834?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 13:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66949417-8aae-40f0-97c7-5739ec40389a</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello Ahmed,&lt;/p&gt;
&lt;p&gt;Do you mean the modem firmware of the nRF9160 or which version of the nRF Connect SDK?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect nrf9160 with multiple bme280 sensor?</title><link>https://devzone.nordicsemi.com/thread/306798?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 12:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:118711c4-9b3e-4faa-8f8d-30188ad5de1f</guid><dc:creator>AMG</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;What firmware version are you using ?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Ahmed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect nrf9160 with multiple bme280 sensor?</title><link>https://devzone.nordicsemi.com/thread/305869?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 13:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:128361e8-a703-46db-95c0-28e9cf90644b</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;As you can see in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html&amp;amp;anchor=topic"&gt;memory instantiation&lt;/a&gt;, the nRF9160 has four I2C peripherals. Considering the address limitation of the BME280, that means you can connect up to 8 BME280 sensors to it. But then you have to make sure that the other peripherals using the same memory instantiation are disabled, which probably is the reason why CMake didn’t complete.&lt;/p&gt;
&lt;p&gt;If you would like to connect more than 8 sensors, you have to switch over to the SPI peripheral or use it in combination with I2C. But even there the number of devices you can communicate with is limited to under 30, depending on the design of the chip select.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect nrf9160 with multiple bme280 sensor?</title><link>https://devzone.nordicsemi.com/thread/305705?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 06:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2f61c52-4f20-4d38-8677-368d26f600cc</guid><dc:creator>PoNien Su</dc:creator><description>&lt;p&gt;Hello Marcus,&lt;/p&gt;
&lt;p&gt;Thanks for your answer and it really helps me a lot., but now I meet another problem.&lt;/p&gt;
&lt;p&gt;When I followed the steps and trying to create the forth I2C-bus in overlay file, it didn&amp;#39;t allow me to complete CMake.&lt;/p&gt;
&lt;p&gt;Does it mean that I could only connect 6 bme280 sensors to nrf9160dk? Or is there any solution that can help me to connect up to 30 bme280 sensors to my dk since there are 31 pins on it?&lt;/p&gt;
&lt;p&gt;Sorry for bothering again.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;PoNien Su&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect nrf9160 with multiple bme280 sensor?</title><link>https://devzone.nordicsemi.com/thread/305593?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 14:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f735ab11-259c-4276-9b97-d18b8d8caf2d</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello PoNien Su,&lt;/p&gt;
&lt;p&gt;Here is an example of how you can connect three BM280 sensors to the nRF9160 DK using the I2C-interface.&lt;/p&gt;
&lt;p&gt;Since the device addresses of the BME280 are limited to 0x76 and 0x77, you can connect two sensors to one I2C-bus and the third to an additional one.&lt;/p&gt;
&lt;p&gt;Your overlay file will then look like this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c2 {
	bme280_76@76 {
		compatible = &amp;quot;bosch,bme280&amp;quot;;
		reg = &amp;lt;0x76&amp;gt;;
		label = &amp;quot;BME280_76&amp;quot;;
	};
	bme280@77 {
		compatible = &amp;quot;bosch,bme280&amp;quot;;
		reg = &amp;lt;0x77&amp;gt;;
		label = &amp;quot;BME280&amp;quot;;
	};
};

&amp;amp;i2c3 {
	sda-pin = &amp;lt; 0x12 &amp;gt;;
	scl-pin = &amp;lt; 0x11 &amp;gt;;
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;	
	bme280_i2c3@77 {
		compatible = &amp;quot;bosch,bme280&amp;quot;;
		reg = &amp;lt;0x77&amp;gt;;
		label = &amp;quot;BME280_I2C3&amp;quot;;
	};
};

&amp;amp;spi3 {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Be aware that due to memory instantiation, you have to disable the SPI3 interface. See:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html&amp;amp;anchor=topic"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html&amp;amp;anchor=topic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Make sure that you are using the following options in prj.conf:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_BME280=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can now use the sensors in main.c in the same way as demonstrated in the tutorial.&lt;/p&gt;
&lt;p&gt;I hope this will help you! Let me know if you have any more questions.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>