<?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>nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44433/nrf52840-module-and-sht21-sensor</link><description>Hello, 
 
 Is there someone who has worked recently with nRF52840 and SHT21 (Humidity / Temperature) sensor ? I have to do some basic test for HW and validate that sensor is working properly ? I have seen that over 3 years ago there was some discussion</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Mar 2019 12:06:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44433/nrf52840-module-and-sht21-sensor" /><item><title>RE: nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/thread/176973?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 12:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96c1fd48-6dc5-4739-a48f-feb8e771ca5c</guid><dc:creator>Hannu Hirvonen</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Case solved. twi_scanner can&amp;#39;t &amp;quot;scan&amp;quot; SHT21 sensor, but when reading and writing directly using address 0x40 sensor works fine. No I at least know quite well how TWI works and big thanks for PicoScope &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Hannu-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/thread/175909?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 12:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e12c2e-e4eb-4f33-808c-7d226c99d445</guid><dc:creator>Hannu Hirvonen</dc:creator><description>&lt;p&gt;You didn&amp;#39;t understood my question correctly. I know that there is a RTCC chip in Laird DVK BL654, but because I don&amp;#39;t use them SmartBasic but your SoftDevice they can&amp;#39;t help (and don&amp;#39;t help) because it is your stuff.&lt;/p&gt;
&lt;p&gt;Yes I know how I2C/TWI works.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m familiar with SW development since 1988, when you started ? With microcontrollers started 1993, when you ?&lt;/p&gt;
&lt;p&gt;I have heard something that return codes does help sometimes :)&lt;/p&gt;
&lt;p&gt;-Hannu-&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/thread/175879?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 10:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de6dce00-3be7-4c94-9a09-e1b13e9069bc</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You&amp;#39;ve missed the point!&lt;/p&gt;
&lt;p&gt;You need to ask Laird for answers to specific questions about their products - like whether their module has an RTC chip, and how it is connected, etc. Nordic cannot help you with that.&lt;/p&gt;
&lt;p&gt;Nordic &lt;em&gt;can&lt;/em&gt; help you with things that are not specific to Laird - like how to use the nRF52840&amp;#39;s TWI peripheral.&lt;/p&gt;
[quote userid="67122" url="~/f/nordic-q-a/44433/nrf52840-module-and-sht21-sensor/175825"]It should help much when investigating how does this I2C/TWI work in practice[/quote]
&lt;p&gt;Do you understand the basics of how I2C works?&lt;/p&gt;
&lt;p&gt;It is an industry standard - not specific to Nordic.&lt;/p&gt;
&lt;p&gt;Start here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nxp.com/docs/en/user-guide/UM10204.pdf"&gt;https://www.nxp.com/docs/en/user-guide/UM10204.pdf&lt;/a&gt;&amp;nbsp;- I2C Specification&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/I%C2%B2C"&gt;https://en.wikipedia.org/wiki/I%C2%B2C&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you familiar with software development in general, and &lt;em&gt;embedded microcontrollers&lt;/em&gt; in particular?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When an API function returns an error code, that code will give you information about what&amp;#39;s gone wrong - so it is important that you look-up the documentation of the error code.&lt;/p&gt;
&lt;p&gt;So, again, have you looked up the meaning of the&amp;nbsp;&lt;span&gt;NRF_ERROR_DRV_TWI_ERR_ANACK error code?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can use your IDE&amp;#39;s search/browse facilities to find it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Or just put &amp;quot;NRF_ERROR_DRV_TWI_ERR_ANACK&amp;quot; into google:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/21891/nrf_error_drv_twi_err_anack-in-blocking-mode"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/21891/nrf_error_drv_twi_err_anack-in-blocking-mode&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://arduino.stackexchange.com/questions/21850/what-does-it-mean-in-i2c-nack-received"&gt;https://arduino.stackexchange.com/questions/21850/what-does-it-mean-in-i2c-nack-received&lt;/a&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: nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/thread/175825?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 07:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fb319b2-b2df-4fd5-a8dc-6ed964c75bbf</guid><dc:creator>Hannu Hirvonen</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently investigating with Laird DVK BL654 how to use I2C/TWI, but this twi_scanner didn&amp;#39;t there either. If I ask help from Laird they say that ask from Nordic because I use Nordic SD (not SmartBasic) and if ask help from Nordic you say that ask from Laird because I&amp;#39;m using their DVK. I&amp;#39;m quite sure that this twi_scanner example program did&amp;#39;t work correctly. Is it so that their is not I2C sensor in nRF52840 evaluation board ? It should help much when investigating how does this I2C/TWI work in practice.&lt;/p&gt;
&lt;p&gt;-Hannu-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/thread/175769?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 17:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7a4b86-7cdf-477c-9a84-7f6b77480eb5</guid><dc:creator>awneil</dc:creator><description>[quote userid="67122" url="~/f/nordic-q-a/44433/nrf52840-module-and-sht21-sensor/175762"]When I can&amp;#39;t see it I get error 0x00008201 =&amp;nbsp;NRF_ERROR_DRV_TWI_ERR_ANACK[/quote]
&lt;p&gt;So have you looked-up what that error means?&lt;/p&gt;
&lt;p&gt;Again, have you&amp;nbsp;looked at what&amp;#39;s happening on the I2C lines with an oscilloscope?&lt;/p&gt;
&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/thread/175762?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 17:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdf7c369-51c6-4549-9d7a-3e919213a39c</guid><dc:creator>Hannu Hirvonen</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sometimes I can see SHT21 chip on I2C/TWI bus, but typically not ? When I can&amp;#39;t see it I get error 0x00008201 =&amp;nbsp;NRF_ERROR_DRV_TWI_ERR_ANACK. Just using twi_scanner example code. Any ideas how to get it working and is there someone who is familiar with this SHT21 chip ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Hannu-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/thread/174796?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 12:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56ed3724-59a5-440f-b94c-eea6169b7c31</guid><dc:creator>awneil</dc:creator><description>[quote userid="67122" url="~/f/nordic-q-a/44433/nrf52840-module-and-sht21-sensor/174784"] I&amp;#39;m not sure if problem is in SD or driver or where ?[/quote]
&lt;p&gt;Well, as you said in the OP, you could easily eliminate the SD by simply using a project which doesn&amp;#39;t have the SD.&lt;/p&gt;
&lt;p&gt;Other than that, are you checking for error reports in the code?&lt;/p&gt;
&lt;p&gt;Have you looked at what&amp;#39;s happening on the I2C lines with an oscilloscope?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/thread/174784?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 11:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c24b5b27-94a3-4d41-8a85-de8cf498c888</guid><dc:creator>Hannu Hirvonen</dc:creator><description>&lt;p&gt;Hello Sigurd,&lt;/p&gt;
&lt;p&gt;Problem is that using twi_scanner project I can see device 0x40 = 100 0000 now and then. I&amp;#39;m not sure if problem is in SD or driver or where ? Sometimes it works fine, but sometimes doesn&amp;#39;t. Are you familiar with this SHT21 temperature/humidity sensor using I2C / TWI ?&lt;/p&gt;
&lt;p&gt;-Hannu-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 module and SHT21 sensor</title><link>https://devzone.nordicsemi.com/thread/174774?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 10:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff30fe15-17c9-4ad5-8dc8-0f93260600a1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A test program that verifies that the temperature and humidity are within valid ranges sounds like a good idea. An extended test could be to run the test program over time, logging the temperature, and see if it stays within the expected temperature range.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>