<?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>Temperatur sensor</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106084/temperatur-sensor</link><description>HI! 
 We are planning to have a student project where student measure ocean temperature and uses the NRF9160DK to send data via MQTT to a broker. 
 I have completed the fundamental course and it seems like using a i2c sensor i possible. 
 Do you have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jan 2024 08:39:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106084/temperatur-sensor" /><item><title>RE: Temperatur sensor</title><link>https://devzone.nordicsemi.com/thread/464526?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2024 08:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d926e01f-0367-4304-908b-42b8b175731c</guid><dc:creator>Mikal</dc:creator><description>&lt;p&gt;When we understood that&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;NRF_PSEL&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;UART_RX&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;) means connected to P0.01 and&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;NRF_PSEL&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;UART_TX&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;) means connected to P0.00&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;we received correct response from the sensor&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperatur sensor</title><link>https://devzone.nordicsemi.com/thread/463964?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 12:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31453aca-c3af-40fc-a747-a65c915c1948</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Mikal"]Why are there both an serial_overlay.dtsi and a arduino_serial.overlay file when they look alike. Since I am using an external sensor is one of them obsolite?[/quote]
&lt;p&gt;The way I read this is that ardiuino_serial.overlay is there to use with other boards which support this.&lt;/p&gt;
&lt;p&gt;However, we wanted to make the sensor sample specifically supported for the nRF52840, in which case boards/nrf52840dk_nrf52840.overlay is included automatically, and it includes boards/serial_overlay.dtsi.&lt;/p&gt;
&lt;p&gt;In other words: you do not need to add any of the files manually in your project.&lt;/p&gt;
&lt;p&gt;Other than that, I do not understand if you have any questions now. Does this work at your side now, or do you have any troubles still?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperatur sensor</title><link>https://devzone.nordicsemi.com/thread/463788?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 14:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c7ba10c-d91c-4d3c-abf6-edb18b74deac</guid><dc:creator>Mikal</dc:creator><description>&lt;p&gt;Here is how I have connected the sensor&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_7066.jpg" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_7068.jpg" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_7067.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperatur sensor</title><link>https://devzone.nordicsemi.com/thread/463782?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 14:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5445e5f-4e1f-4562-b5da-04379be88bdb</guid><dc:creator>Mikal</dc:creator><description>&lt;p&gt;The file serial_overlay.dtsi file is located under board in the github project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperatur sensor</title><link>https://devzone.nordicsemi.com/thread/462823?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 08:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbb9dbc8-1e63-43bb-a82b-026d754aabf5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Mikal"]Does the code: NRF_PSEL(UART_RX, 1, 1) refer to UART1.[/quote]
&lt;p&gt;Yep, only used if you build for boards with same name as overlay file.&lt;/p&gt;
[quote user="Mikal"]&lt;p&gt;Does the code: NRF_PSEL(UART_RX, 1, 1) refer to UART1.&lt;/p&gt;
&lt;p&gt;Should I use UART0 to use pin P0.00 and P0.01?&lt;/p&gt;[/quote]
&lt;p&gt;These overlay files are not included automatically. They are either included in your CMakeLists.txt or in your build configuration.&lt;/p&gt;
&lt;p&gt;I can not see serial_overlay.dtsi anywhere in &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/sensor/ds18b20"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/sensor/ds18b20&lt;/a&gt;, so this must be your custom one right?&lt;/p&gt;
[quote user="Mikal"]Does the code: NRF_PSEL(UART_RX, 1, 1) refer to UART1.[/quote]
&lt;p&gt;You are setting RX pin to GPIO 1.1. This does not select any UART driver for you. The uart selected is another place in your DTS files, where you refer to the uart1_default pinctrl node.&lt;/p&gt;
[quote user="Mikal"]Should I use UART0 to use pin P0.00 and P0.01?[/quote]
&lt;p&gt;The 9160 peripherals can allocate pins as you please, so you can use any UART instance with any pins. Just make sure that the pins match up with the pins you have connected the sensor to on the DK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperatur sensor</title><link>https://devzone.nordicsemi.com/thread/462713?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2024 14:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02cdd0b5-210a-49ce-80f4-8ad334427239</guid><dc:creator>Mikal</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1704374991840v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I just copied the nrf52840dk overlay file to a nrf9160dk overlay file without changing anyting but the name.&lt;/p&gt;
&lt;p&gt;Can I just remove the nrf52840 and the nucleo files?&lt;/p&gt;
&lt;p&gt;Why are there both an serial_overlay.dtsi and a arduino_serial.overlay file when they look alike. Since I am using an external sensor is one of them obsolite?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is my overlay file:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1704375422031v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Does the code: NRF_PSEL(UART_RX, 1, 1) refer to UART1.&lt;/p&gt;
&lt;p&gt;Should I use UART0 to use pin P0.00 and P0.01?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;br Mikal&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperatur sensor</title><link>https://devzone.nordicsemi.com/thread/462692?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2024 13:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5fa4dab-f6a1-4383-8c48-0231902e4b27</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Mikal"]Is it possible to have a meeting to discuss this?[/quote]
&lt;p&gt;No, we generally do not provide meetings. If you are insistent on this, you can &lt;a href="https://www.nordicsemi.com/About-us/Contact-Us"&gt;contact&lt;/a&gt; our sales departement, and they might be able to arrange something.&lt;/p&gt;
&lt;p&gt;Instead, we prefer to give debugging tips over this forum.&lt;/p&gt;
&lt;p&gt;Such as:&lt;/p&gt;
&lt;p&gt;Can you connect a oscilloscope or logic analyzer to the data line(s) and see if you see any communication on it?&lt;/p&gt;
&lt;p&gt;How did you wire your sensor?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperatur sensor</title><link>https://devzone.nordicsemi.com/thread/462679?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2024 12:45:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6f78d6e-5710-4f75-aa8c-ef7340789e88</guid><dc:creator>Mikal</dc:creator><description>&lt;p&gt;Hi Sigurd&lt;/p&gt;
&lt;p&gt;We have tried to port the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/sensor/ds18b20/README.html"&gt;DS18B20 1-Wire Temperature Sensor&lt;/a&gt;&amp;nbsp;to the nRF9160DK, but we do not receive any response from the sensor. Is it possible to have a meeting to discuss this? Br Mikal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Temperatur sensor</title><link>https://devzone.nordicsemi.com/thread/457532?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 11:29:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063661f0-4cf1-495e-8cff-c9c0992fa117</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Mikal,&lt;/p&gt;
[quote user=""]Do you have any experience or suggestions of whitch sensor to use?[/quote]
&lt;p&gt;We do Nordic specific support, so I can not help with this much. Also because I have not measured the sea before myself. &lt;br /&gt;However, I suggest that you google something like &amp;quot;Arduiono ocean measurement&amp;quot;, as this will give the most popular sensor for the task. Especially for educational purposes, having good online resources &amp;quot;er gull verdt&amp;quot; as we say in Norwegian. &lt;/p&gt;
[quote user=""]Do you have any experience using a oneWire sensor based on DS18B20?[/quote]
&lt;p&gt;There is a sample in Zephyr for the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/sensor/ds18b20/README.html"&gt;DS18B20 1-Wire Temperature Sensor&lt;/a&gt;, which is a good sign. This sample even has an overlay file for the nRF52840DK, so all you need to do is to add a similar overlay for the nRF9160, and I think it should work.&lt;/p&gt;
&lt;p&gt;Was this the info you are looking for?&lt;/p&gt;
&lt;p&gt;Mvh,&lt;/p&gt;
&lt;p&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>