<?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>nRF9160 with BME280 sensor</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60411/nrf9160-with-bme280-sensor</link><description>I am trying to test a BME280 sensor on the nRF9160. I followed the steps where I created a folder (board) and added the nrf9160_pca10090.overlay and add couple of line in the prj.conf. I am building with build -b nrf9160_pca10090ns(non-secure). I get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Apr 2020 11:36:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60411/nrf9160-with-bme280-sensor" /><item><title>RE: nRF9160 with BME280 sensor</title><link>https://devzone.nordicsemi.com/thread/245826?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 11:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d139de9-4e2d-4954-8a8e-373dce634627</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;quot;Could not get BME280 device&amp;quot; is usually caused by failure to read the hardware ID from the device in the driver&amp;#39;s initialization. Did you get any usueful information from the added logging? Note that CONFIG_LOG=y needs to be set to enable logging system, though there should have been some warnings during compilation if it wasn&amp;#39;t on. Hopefully the logs can shed some light on what goes wrong.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the BME280 datasheet rev 1.6, there&amp;#39;s a figuer on page 39 that might be useful to confirm that the hardware setup is correct for I2C operation, especially the CSB and SDO connections. I&amp;#39;d use the default address if there&amp;#39;s not an important reason to do otherwise to reduce what can go wrong.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you&amp;#39;re using nRF91 DK, please be aware that it is operating by default at 1.8 V. You can se SW11 next to the power switch to confirm the setting. V_DDIO needs to match the setting, and I&amp;#39;d typically set V_DD to the same. CSB and SDO should be set with GND or V_DDIO.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jan Tore&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 with BME280 sensor</title><link>https://devzone.nordicsemi.com/thread/245799?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 10:09:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5793211-a57d-4f30-bf8f-d3ab59fbec5f</guid><dc:creator>AMG</dc:creator><description>&lt;p&gt;V_DDIO is a different voltage from the Vin if so... I connected the CSB to a seprate VDD and SDO to vin and changed the reg to 77 and&amp;nbsp;bme280@77 and got &amp;quot;Could not get BME280 device&amp;quot;. Is&amp;nbsp;V_DDIO&amp;nbsp; is just any voltage pin or there is a specific pin on the board. SO now the VCC&amp;gt;&amp;gt;Vin and csb &amp;gt;&amp;gt; VDD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 with BME280 sensor</title><link>https://devzone.nordicsemi.com/thread/245793?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 09:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb5f2ead-d254-40f1-abc2-c2bb53241123</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;I see now that I hade a typo in my previous answer about the connections (corrected now).&lt;br /&gt;I intended to write that CSB should be connected to V_DDIO when using I2C. I mixed it up with DS in my first sentence.&lt;/p&gt;
&lt;p&gt;Sorry about that.&lt;/p&gt;
&lt;p&gt;Jan Tore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 with BME280 sensor</title><link>https://devzone.nordicsemi.com/thread/245790?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 09:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f4102cd-3b3d-49b6-93e3-6caaf29d0f38</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It would be good with some more logging to better understand what&amp;#39;s going on.&lt;br /&gt;You can do that by adding these to your prj.conf:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SENSOR_LOG_LEVEL_DBG=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;CONFIG_&lt;/span&gt;&lt;/span&gt;CONFIG_I2C_LOG_LEVEL_DBG=y&lt;br /&gt;&lt;br /&gt;If the app hangs for some reason, it can also be useful to add&lt;br /&gt;CONFIG_LOG_IMMEDIATE=y&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;And by the way, did you change both occurences of 0x76 in the overlay to match your hardware configuration? Also bme280@76&amp;nbsp;needs to be changed.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Jan Tore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 with BME280 sensor</title><link>https://devzone.nordicsemi.com/thread/245786?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 09:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fb3e736-a34f-4009-a957-4b606cfe8d11</guid><dc:creator>AMG</dc:creator><description>&lt;p&gt;even after changing the reg it&amp;#39;s the same problem. From what I understood the SDO a&lt;span&gt;&amp;nbsp;weak pull-down resistor on the module pulls SDO low so 0x76 is the default address if the SDO pin is not connected.&amp;nbsp; Connect the SDO to Vcc to select 0x77 but both give the same result (error)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 with BME280 sensor</title><link>https://devzone.nordicsemi.com/thread/245778?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 09:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee0e480a-5720-47e9-9048-4028baac9169</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the BME280 datasheet it looks like CSB should be connected to V_DDIO when running in I2C mode. SDO should be grounded to use the default I2C, or V_DDIO if you need to use the alternative one. If you don&amp;#39;t want to use the default address (0x76), you need to specify that in the overlay file by changing 0x76 to 0x77.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jan Tore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 with BME280 sensor</title><link>https://devzone.nordicsemi.com/thread/245774?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 09:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1c6521b-a78f-4fef-aedf-0b4b4a276baf</guid><dc:creator>AMG</dc:creator><description>&lt;p&gt;I was able to build after re-naming but after connecting and flashing the sensor doesn&amp;#39;t show the values. My connection is as follows SCL &amp;gt;&amp;gt; p0.11 , SDA &amp;gt;&amp;gt;&amp;nbsp;&lt;span&gt;p0.12 , VCC with vin 3-5v , GND &amp;gt;&amp;gt; GND&amp;nbsp; , CSB &amp;gt;&amp;gt; GND , SD &amp;gt;&amp;gt; vin&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-from-2020_2D00_04_2D00_21-11_2D00_12_2D00_48.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 with BME280 sensor</title><link>https://devzone.nordicsemi.com/thread/245623?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 15:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47a68c4f-0ea6-4465-896a-72def3ec53f3</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like the issue is that your device tree overlay file name doesn&amp;#39;t match your build target.&lt;br /&gt;If you rename it to &amp;quot;nrf9160_pca10090ns.overlay&amp;quot;,&amp;nbsp;it should build.&lt;/p&gt;
&lt;p&gt;Side note: You&amp;#39;ll need to connect the sensor to make your application run paste the&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;quot;&lt;/span&gt;if (dev == NULL)&amp;quot; check.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jan Tore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>