<?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 DK &amp;amp; Seeed Relay Shield v3.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69892/nrf9160-dk-seeed-relay-shield-v3-0</link><description>Please provide sample code on how to configure pins to control Relay Shield from Seeed on nRF9160 DK 
 https://wiki.seeedstudio.com/Relay_Shield_v3/ 
 I have used the following code but it is not working: 
 struct device * relay_device = device_get_binding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 26 Dec 2020 19:06:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69892/nrf9160-dk-seeed-relay-shield-v3-0" /><item><title>RE: nRF9160 DK &amp; Seeed Relay Shield v3.0</title><link>https://devzone.nordicsemi.com/thread/286606?ContentTypeID=1</link><pubDate>Sat, 26 Dec 2020 19:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a75f350e-a8bf-4061-b193-1cb259de4d50</guid><dc:creator>Francis S</dc:creator><description>&lt;div class="css-12v0u2 eqf055k8"&gt;
&lt;div class="css-oubzyq e1jn2c1t0"&gt;&lt;span class="css-1ls1i4j eumhmjp0" style="font-size:inherit;"&gt;&lt;span class="css-35ezg3 egzzazp0"&gt;# prj.conf&lt;/span&gt;&lt;/span&gt;
&lt;div class="css-thyqwv e13i76yo0"&gt;
&lt;div&gt;&lt;span class="css-j8fq0c" style="font-size:inherit;"&gt;&lt;span class="css-noix33"&gt;&lt;span class="sc-htpNat dcTkON"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="css-84nudp eqf055k16"&gt;
&lt;div class="css-1s1xsgc eqf055k15"&gt;
&lt;div class="css-1sz7d3n eqf055k5"&gt;
&lt;div class="css-17rgbeg e13i76yo1"&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_BOARD_NRF9160DK_LED0_ARDUINO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_BOARD_NRF9160DK_LED1_ARDUINO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_NRF9160DK_LED2_ARDUINO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_NRF9160DK_LED3_ARDUINO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_BOARD_NRF9160DK_BUTTON0_ARDUINO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_BOARD_NRF9160DK_BUTTON1_ARDUINO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_NRF9160DK_SWITCH0_ARDUINO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_NRF9160DK_SWITCH1_ARDUINO&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;/div&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: nRF9160 DK &amp; Seeed Relay Shield v3.0</title><link>https://devzone.nordicsemi.com/thread/286604?ContentTypeID=1</link><pubDate>Sat, 26 Dec 2020 16:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f131bb3-51d8-4d7e-abf8-16f96c17131b</guid><dc:creator>Francis S</dc:creator><description>&lt;h2 id="mcetoc_1eqfsi7ed2"&gt;&lt;span style="font-size:75%;"&gt;Found the answer in the&amp;nbsp;zephyrproject documentation. Set pins 4-7 to &amp;quot;Route to Arduino pins&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;a href="https://docs.zephyrproject.org/latest/boards/arm/nrf9160dk_nrf52840/doc/index.html"&gt;docs.zephyrproject.org/.../index.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1eqfs34dc0"&gt;Board controller firmware&lt;a class="headerlink" title="Permalink to this headline" href="https://docs.zephyrproject.org/latest/boards/arm/nrf9160dk_nrf52840/doc/index.html#board-controller-firmware"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The board controller firmware is a small snippet of code that takes care of routing specific pins on nRF9160 SiP to different components on the board, such as LEDs, switches, and specific nRF52840 SoC pins.&lt;/p&gt;
&lt;p&gt;When compiling a project for nrf9160dk_nrf52840, the board controller firmware will be compiled and run automatically after the Kernel has been initialized.&lt;/p&gt;
&lt;p&gt;By default, the board controller firmware will route the following:&lt;/p&gt;
&lt;div class="wy-table-responsive"&gt;
&lt;table class="docutils align-default"&gt;&lt;colgroup&gt;&lt;col /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;thead&gt;
&lt;tr class="row-odd"&gt;
&lt;th class="head"&gt;
&lt;p&gt;Component&lt;/p&gt;
&lt;/th&gt;
&lt;th class="head"&gt;
&lt;p&gt;Routed to&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr class="row-even"&gt;
&lt;td&gt;
&lt;p&gt;nRF9160 UART0&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;VCOM0&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;
&lt;td&gt;
&lt;p&gt;nRF9160 UART1&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;VCOM2&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;
&lt;td&gt;
&lt;p&gt;LEDs 1-4&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;physical LEDs&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;
&lt;td&gt;
&lt;p&gt;Buttons 1-2&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;physical buttons&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;
&lt;td&gt;
&lt;p&gt;Switches 1-2&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;physical switches&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;
&lt;td&gt;
&lt;p&gt;MCU Interface 0&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Arduino pin headers&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;
&lt;td&gt;
&lt;p&gt;MCU Interface 1&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Trace interface&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;
&lt;td&gt;
&lt;p&gt;MCU Interface 2&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;COEX interface&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;It is possible to configure the behavior of the board controller firmware by using Kconfig and editing its options under &amp;ldquo;Board options&amp;rdquo;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>