<?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>Error in establishing a connection between nRF52840 DK board and SHT21 sensor using TWI module.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72492/error-in-establishing-a-connection-between-nrf52840-dk-board-and-sht21-sensor-using-twi-module</link><description>I am using the SHT21 sensor for measuring temperature and humidity, trying to connect it to nRF52840 DK Board using TWI mode. 
 I am unable to even scan and get the response from the SHT21 sensor. 
 Initially, I am trying to send a basic address that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Mar 2021 12:46:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72492/error-in-establishing-a-connection-between-nrf52840-dk-board-and-sht21-sensor-using-twi-module" /><item><title>RE: Error in establishing a connection between nRF52840 DK board and SHT21 sensor using TWI module.</title><link>https://devzone.nordicsemi.com/thread/298367?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 12:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08976bf0-e8db-4175-8a7d-7b7cf03214a3</guid><dc:creator>awneil</dc:creator><description>[quote userid="93415" url="~/f/nordic-q-a/72492/error-in-establishing-a-connection-between-nrf52840-dk-board-and-sht21-sensor-using-twi-module/298349#298349"]Hardware is completely working fine[/quote]
&lt;p&gt;How do you know that?&lt;/p&gt;
&lt;p&gt;Again:&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/72492/error-in-establishing-a-connection-between-nrf52840-dk-board-and-sht21-sensor-using-twi-module/298337#298337"]Have you used an oscilloscope or logic analyser to see what&amp;#39;s happening on the wires[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in establishing a connection between nRF52840 DK board and SHT21 sensor using TWI module.</title><link>https://devzone.nordicsemi.com/thread/298349?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 11:57:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:337e2978-60fa-4364-b628-4c2f81a361e5</guid><dc:creator>Ashu@2000</dc:creator><description>&lt;p&gt;Hardware is completely working fine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in establishing a connection between nRF52840 DK board and SHT21 sensor using TWI module.</title><link>https://devzone.nordicsemi.com/thread/298347?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 11:51:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41a204b8-042e-458d-af48-24ff452a427d</guid><dc:creator>Ashu@2000</dc:creator><description>&lt;p&gt;So if possible then please do help me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in establishing a connection between nRF52840 DK board and SHT21 sensor using TWI module.</title><link>https://devzone.nordicsemi.com/thread/298345?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 11:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddb2cc13-00e6-4718-971a-bda48a830256</guid><dc:creator>Ashu@2000</dc:creator><description>&lt;p&gt;&lt;a title="SHT21 Module" href="https://www.evelta.com/evelta-sht21-i2c-temperature-and-humidity-sensor/"&gt;sht21-i2c-temperature-and-humidity-sensor&lt;/a&gt;&amp;nbsp;- is the module that I am using.&lt;/p&gt;
&lt;p&gt;Regarding software of newly developed code, I can share all possible information on that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in establishing a connection between nRF52840 DK board and SHT21 sensor using TWI module.</title><link>https://devzone.nordicsemi.com/thread/298337?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 11:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a17b7f81-14f5-4cac-8502-6d7ea60c45d1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So the device is not giving an ACK.&lt;/p&gt;
&lt;p&gt;How are you sure that your hardware is correct and working?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How are you sure that&amp;nbsp;&lt;/span&gt;your software configuration is correct?&lt;/p&gt;
&lt;p&gt;Which takes us back to the original questions:&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/72492/error-in-establishing-a-connection-between-nrf52840-dk-board-and-sht21-sensor-using-twi-module/298293#298293"]&lt;p&gt;Do you have correct pullups?&lt;/p&gt;
&lt;p&gt;Have you used an oscilloscope or logic analyser to see what&amp;#39;s happening on the wires?&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in establishing a connection between nRF52840 DK board and SHT21 sensor using TWI module.</title><link>https://devzone.nordicsemi.com/thread/298329?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 10:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb4efeeb-fae8-4780-b3f7-461cd479b8e6</guid><dc:creator>Ashu@2000</dc:creator><description>&lt;p&gt;I am using a Nordic TWI scanner.&lt;/p&gt;
&lt;p&gt;The address of the IC is 7 bit that is 1000 000, last bit 1 - Write and 0 - Read.&lt;a href="https://www.mouser.in/datasheet/2/682/Sensirion_Humidity_Sensors_SHT21_Datasheet-1511537.pdf"&gt;Sensirion_Humidity_Sensors_SHT21_Datasheet&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If I try the TWI scanner program, the only thing that gets printed on RTT is:&lt;/p&gt;
&lt;p&gt;TWI scanner started.&lt;/p&gt;
&lt;p&gt;No device was found.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in establishing a connection between nRF52840 DK board and SHT21 sensor using TWI module.</title><link>https://devzone.nordicsemi.com/thread/298293?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 09:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5194d61d-2f98-40b3-b4c8-d3dad0dda933</guid><dc:creator>awneil</dc:creator><description>[quote userid="93415" url="~/f/nordic-q-a/72492/error-in-establishing-a-connection-between-nrf52840-dk-board-and-sht21-sensor-using-twi-module"]I am unable to even scan and get the response from the SHT21 sensor.[/quote]
&lt;p&gt;Did you use the Nordic TWI scanner for that?&lt;/p&gt;
&lt;p&gt;Do you have correct pullups?&lt;/p&gt;
&lt;p&gt;Have you used an oscilloscope or logic analyser to see what&amp;#39;s happening on the wires?&lt;/p&gt;
[quote userid="93415" url="~/f/nordic-q-a/72492/error-in-establishing-a-connection-between-nrf52840-dk-board-and-sht21-sensor-using-twi-module"] I am trying to send a basic address that is 0x80[/quote]
&lt;p&gt;I2C addresses are 7-bits - so cannot possibly be 0x80.&lt;/p&gt;
&lt;p&gt;0x80 could be the address &lt;em&gt;&lt;strong&gt;plus&lt;/strong&gt; &lt;/em&gt;the R/W bit - are you sure you have that correct?&lt;/p&gt;
&lt;p&gt;See:&amp;nbsp;&lt;a href="https://www.avrfreaks.net/comment/1872781#comment-1872781"&gt;www.avrfreaks.net/.../1872781&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Again, the easiest way is to use the Nordic TWI Scanner example.&lt;/p&gt;
[quote userid="93415" url="~/f/nordic-q-a/72492/error-in-establishing-a-connection-between-nrf52840-dk-board-and-sht21-sensor-using-twi-module"] am unable to get anything on RTT viewer[/quote]
&lt;p&gt;Have you correctly configured the project to use RTT?&lt;/p&gt;
&lt;p&gt;Some examples default to using UART for the LOG outputs ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>