<?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>sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54856/sensing-temperature-with-a-thermocouple-thermocouple</link><description>hello, testing the spi examples of SDK16.0.0 I was trying to read a type k thermocouple with a max31856 on the nRF52840dk board, I made the connections of ss, sck, mosi, miso. The problem is that I don&amp;#39;t get thermocouple values, is there another way to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jan 2020 10:00:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54856/sensing-temperature-with-a-thermocouple-thermocouple" /><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/231825?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 10:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7742e2f6-9e32-4e64-bef8-606b55f45e50</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which board are you talking about?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The MAX31856 board or the nRF52840DK?&lt;/p&gt;
&lt;p&gt;Will the nRF52840DK know when this happens, so that you can run some kind of reset sequence on your MAX31856?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/231746?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 17:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8587050d-d0c0-4b0b-92f8-09df459f5bf9</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;Hello, I noticed something in the project, when I turn off the board everything is going well, but when I turn on the board again, the MAX31856 stays frozen, I have to remove the MISO and MOSI a few seconds to react, do you know what could be the cause? Should I have any command that closes the SPI to avoid this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/231668?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 13:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cd06ef6-66eb-4ca2-9bc1-9beb958252a0</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;Thank you, and if I have more doubts if I will open a new ticket&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/231585?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 09:56:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:598ba88d-68ed-4416-9c83-cdde84a4e3be</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the future please open a new ticket if you have questions not directly related to the current one. The devzone system is not well suited for handling long cases with many different questions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;relationship between the voltage on the input and the reported value depends on several factors, including what reference voltage is used, the bitrate, and the gain setting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In single ended mode (with the negative input to the ADC set to ground) the result from the ADC is given by the following formula:&lt;/p&gt;
&lt;p&gt;RESULT = V_In * (GAIN/REFERENCE) * 2^RESOLUTION&lt;/p&gt;
&lt;p&gt;Turn the formula around and you find that the actual voltage (V_In) can be calculated as such:&lt;/p&gt;
&lt;p&gt;V_In = RESULT * (REFERENCE/GAIN) / (2^RESOLUTION)&lt;/p&gt;
&lt;p&gt;For more information about this please refer to &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/saadc.html?cp=4_0_0_5_22_1#unique_1891067092"&gt;this chapter&lt;/a&gt; in the product specification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/231435?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 14:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59257812-950f-407f-a18c-4d0559327c6b</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;One more query, now I have to fill in the analog data of a gas sensor, in the SAADC example data and in the documentation I can&amp;#39;t find the equivalent of how much each bit is worth in real volts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/231175?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 13:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab21e2eb-9ec6-48b5-9984-67e36b856fb3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While it&amp;#39;s odd the SPIM didn&amp;#39;t work it&amp;#39;s good to hear you found a solution &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;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/230953?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 22:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d712b62-7469-46f2-9d14-8b0ffae910b2</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;Hello, I already solved the problem, I changed from the SPIM example to the one of SPI and with this I got a good reading of the data and with these I already managed to calculate the thermocouple temperature&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/230867?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 13:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1fde59b-f506-4377-93b2-b541e3cc7516</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have a scope trace of the SPI signals between the two devices, so I can see what is going on over the bus?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/230449?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 22:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:144c72a4-e4c5-4bd1-a170-4d8d48adc48d</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;I elaborated this example, at the moment it is done only to obtain the varibals stored in the MAX31856, but, when I was going to elaborate the other calculations to take out the temperature the data of the MAX did not arrive anymore. Do you have any advice that could be wrong? , I already checked the circuit connections and they are well connected.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;nrfx_spim.h&amp;quot;
#include &amp;quot;app_util_platform.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;
#include &amp;quot;boards.h&amp;quot;
#include &amp;quot;app_error.h&amp;quot;
#include &amp;lt;string.h&amp;gt;
#include &amp;quot;nrf_log.h&amp;quot;
#include &amp;quot;nrf_log_ctrl.h&amp;quot;
#include &amp;quot;nrf_log_default_backends.h&amp;quot;

#define NRFX_SPIM_SCK_PIN  3
#define NRFX_SPIM_MOSI_PIN 4
#define NRFX_SPIM_MISO_PIN 28
#define NRFX_SPIM_SS_PIN   29
#define NRFX_SPIM_DCX_PIN  30

#define Cold_Junction_Resolution  0.015625
#define TC_Resolution             0.0078125  

#define MAX31856_WRITE            0x80
#define MAX31856_READ             0x00

#define Average_1_Bit             0x0F
#define Average_2                 0x10
#define Average_4                 0x20
#define Average_8                 0x30
#define Average_16                0x40

#define No_Fault_Mask             0x02
#define Interrupt_Mode            0x04

#define OC_Fault_Disable_Bit      0xCF
#define OC_Fault_Enable_1         0x10
#define OC_Fault_Enable_2         0x20
#define OC_Fault_Enable_3         0x30

#define TC_TypeB_Bit              0xF0
#define TC_TypeE                  0x01
#define TC_TypeJ                  0x02
#define TC_TypeK                  0x03
#define TC_TypeN                  0x04
#define TC_TypeR                  0x05
#define TC_TypeS                  0x06
#define TC_TypeT                  0x07
#define VM_Gain8                  0x80
#define VM_Gain16                 0xC0

#define MAX31856_cr0_REG          0x00
#define MAX31856_cr0_1SHOT        0x40
#define Stop_Conversion_Bit       0x3F
#define MAX31856_cr0_50HZ         0x01
#define MAX31856_CHIP_SELECT      0
#define MAX31856_cr0_FAULTCLR     0x02
#define MAX31856_CJTO             0x09
#define MAX31856_CJTH             0x0A
#define MAX31856_CJTL             0x0B
#define MAX31856_LTCBH            0x0C
#define MAX31856_LTCBM            0x0D
#define MAX31856_LTCBL            0x0E

#define SPI_INSTANCE  3                                           /**&amp;lt; SPI instance index. */
static const nrfx_spim_t spi = NRFX_SPIM_INSTANCE(SPI_INSTANCE);  /**&amp;lt; SPI instance. */
static volatile bool spi_xfer_done;  /**&amp;lt; Flag used to indicate that SPI instance completed the transfer. */
static uint8_t       m_tx_buf[4];  /**&amp;lt; TX buffer. */
static uint8_t       m_rx_buf[5];  /**&amp;lt; RX buffer. */
static const uint8_t m_length = sizeof(m_tx_buf);

uint8_t Max31856_cr0, Max31856_cr1;
int temp, offset;
float cold_junction_temperature, ctemp;

void spim_event_handler(nrfx_spim_evt_t const * p_event, void * p_context)
{
    spi_xfer_done = true;
    NRF_LOG_INFO(&amp;quot;Transfer completed.&amp;quot;);

    if (m_tx_buf[3] == 11){
        printf(&amp;quot;RX1 = %d\n&amp;quot;,m_rx_buf[0]);
        printf(&amp;quot;RX1 = %d\n&amp;quot;,m_rx_buf[1]);
        printf(&amp;quot;RX1 = %d\n&amp;quot;,m_rx_buf[2]);
        printf(&amp;quot;RX1 = %d\n&amp;quot;,m_rx_buf[3]);
        NRF_LOG_INFO(&amp;quot; Received:&amp;quot;);
        NRF_LOG_HEXDUMP_INFO(m_rx_buf, strlen((const char *)m_rx_buf)); 
        
    }
    else if (m_tx_buf[3] == 14){
        printf(&amp;quot;RX2 = %d\n&amp;quot;,m_rx_buf[0]);
        printf(&amp;quot;RX2 = %d\n&amp;quot;,m_rx_buf[1]);
        printf(&amp;quot;RX2 = %d\n&amp;quot;,m_rx_buf[2]);
        printf(&amp;quot;RX2 = %d\n&amp;quot;,m_rx_buf[3]);
        NRF_LOG_INFO(&amp;quot; Received:&amp;quot;);
        NRF_LOG_HEXDUMP_INFO(m_rx_buf, strlen((const char *)m_rx_buf));
    }
}

int confi(){
      spi_xfer_done = false;
      Max31856_cr0 = OC_Fault_Enable_1|MAX31856_cr0_50HZ|Interrupt_Mode;
      Max31856_cr1 = Average_1_Bit|TC_TypeK;

      m_tx_buf[0] = MAX31856_WRITE;
      m_tx_buf[1] = Max31856_cr0;
      m_tx_buf[2] = Max31856_cr1;
      m_tx_buf[3] = No_Fault_Mask;
      nrfx_spim_xfer_desc_t xfer_desc=NRFX_SPIM_XFER_TRX(m_tx_buf, m_length, m_rx_buf,m_length);
      APP_ERROR_CHECK(nrfx_spim_xfer_dcx(&amp;amp;spi, &amp;amp;xfer_desc, 0, 15));
}

int oneshoot(){
      spi_xfer_done = false;
      Max31856_cr0 = Stop_Conversion_Bit;
      m_tx_buf[0] = MAX31856_WRITE;
      m_tx_buf[1] = MAX31856_cr0_REG;
      m_tx_buf[2] = Max31856_cr0|MAX31856_cr0_1SHOT|MAX31856_cr0_FAULTCLR;
      nrfx_spim_xfer_desc_t xfer_desc=NRFX_SPIM_XFER_TRX(m_tx_buf, m_length, m_rx_buf,m_length);
      APP_ERROR_CHECK(nrfx_spim_xfer_dcx(&amp;amp;spi, &amp;amp;xfer_desc, 0, 15));
      nrf_delay_ms(250);
}

int CJT(){
      
      spi_xfer_done = false;
      m_tx_buf[0] =  MAX31856_READ;
      m_tx_buf[1] = MAX31856_READ|MAX31856_CJTO;
      m_tx_buf[2] = MAX31856_READ|MAX31856_CJTH;
      m_tx_buf[3] = MAX31856_READ|MAX31856_CJTL;
      nrfx_spim_xfer_desc_t xfer_desc=NRFX_SPIM_XFER_TRX(m_tx_buf, m_length, m_rx_buf, m_length);
      APP_ERROR_CHECK(nrfx_spim_xfer_dcx(&amp;amp;spi, &amp;amp;xfer_desc, 0, 15));
      printf(&amp;quot;CJTO = %d\n&amp;quot;,m_rx_buf[1]);
      printf(&amp;quot;CJTH = %d\n&amp;quot;,m_rx_buf[2]);
      printf(&amp;quot;CJTL = %d\n&amp;quot;,m_rx_buf[3]);}

int LTCB(){
      spi_xfer_done = false;
      m_tx_buf[0] = MAX31856_READ;
      m_tx_buf[1] = MAX31856_READ | MAX31856_LTCBH;
      m_tx_buf[2] = MAX31856_READ | MAX31856_LTCBM;
      m_tx_buf[3] = MAX31856_READ | MAX31856_LTCBL;
      nrfx_spim_xfer_desc_t xfer_desc=NRFX_SPIM_XFER_TRX(m_tx_buf, m_length, m_rx_buf,m_length);
      APP_ERROR_CHECK(nrfx_spim_xfer_dcx(&amp;amp;spi, &amp;amp;xfer_desc, 0, 15));
      printf(&amp;quot;LTCH = %d\n&amp;quot;,m_rx_buf[1]);
      printf(&amp;quot;LTCM = %d\n&amp;quot;,m_rx_buf[2]);
      printf(&amp;quot;LTCL = %d\n&amp;quot;,m_rx_buf[3]);
      return (spi_xfer_done); }

int main(void){
    bsp_board_init(BSP_INIT_LEDS);

    APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
    NRF_LOG_DEFAULT_BACKENDS_INIT();

    nrfx_spim_config_t spi_config = NRFX_SPIM_DEFAULT_CONFIG;
    spi_config.frequency      = NRF_SPIM_FREQ_4M;
    spi_config.ss_pin         = NRFX_SPIM_SS_PIN;
    spi_config.miso_pin       = NRFX_SPIM_MISO_PIN;
    spi_config.mosi_pin       = NRFX_SPIM_MOSI_PIN;
    spi_config.sck_pin        = NRFX_SPIM_SCK_PIN;
    spi_config.dcx_pin        = NRFX_SPIM_DCX_PIN;
    spi_config.mode           = NRF_SPIM_MODE_3;
    spi_config.use_hw_ss      = true;
    spi_config.ss_active_high = false;
    APP_ERROR_CHECK(nrfx_spim_init(&amp;amp;spi, &amp;amp;spi_config, spim_event_handler, NULL));
    NRF_LOG_INFO(&amp;quot;NRFX SPIM example started.&amp;quot;);

    while (1)
    {
        confi();
        oneshoot();
        CJT();
        LTCB();

        while (!spi_xfer_done){__WFE();}

        NRF_LOG_FLUSH();

        bsp_board_led_invert(BSP_BOARD_LED_0);
        nrf_delay_ms(2000);
    }
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/229692?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 17:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3d26f47-5ff2-4a26-80d3-a3133806fd9f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The MAX31856 neither knows nor cares what the SPI master is.&lt;/p&gt;
&lt;p&gt;All the&amp;nbsp;&lt;span&gt;MAX31856&amp;nbsp;sees is the SPI lines - SDI, SDO, SCK, and CS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Similarly, the nRF52&amp;nbsp;neither knows nor cares what the SPI slave is: it just drives the SPI lines - MISO, MOSI, SCK, CS in accordance with your code&amp;#39;s instructions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So you just need to ensure that the nRF52 is driving those lines as shown in the MAX datasheet&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See the figures on page 16 of the MAX datasheet.&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: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/229677?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 15:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98489864-616a-480f-a4d9-8de3b422d2bd</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;This is the datasheet link &lt;a href="https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf"&gt;datasheets.maximintegrated.com/.../MAX31856.pdf&lt;/a&gt;, the examples I used to work on the Raspberry always existed the SPI command to write and read, this is one of the examples to use as a guide &lt;a href="https://github.com/torvalds/linux/blob/master/drivers/iio/temperature/max31856.c"&gt;github.com/.../max31856.c&lt;/a&gt;, &lt;a href="https://www.maximintegrated.com/en/products/sensors/MAX31856.html/"&gt;www.maximintegrated.com/.../&lt;/a&gt; tb_tab2 and &lt;a href="https://www.raspberrypi.org/forums/viewtopic.php?t=260687"&gt;www.raspberrypi.org/.../viewtopic.php&lt;/a&gt;, the latter use it as a&amp;nbsp;base to modify it with data from the other two codes. What is common in these codes is that there is a command to write and read data from the MAX31856 records through SPI and in the documentation of nRF52840DK I have not found it. So my question is, if the command or function exists in this model?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/229547?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 09:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04c6909a-4c68-4c3c-bad9-c8a29607baf5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You mean how you can set up the SPI to use your particular sensor?&lt;/p&gt;
&lt;p&gt;There is really no shortcuts to this unless there are some examples online that does it. I usually find it easiest just to find the commands you need in the MAX31856 datasheet, and implement those commands as detailed in the datasheet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;An alternative way is to find a driver online (such as &lt;a href="https://github.com/torvalds/linux/blob/master/drivers/iio/temperature/max31856.c"&gt;this one&lt;/a&gt;) that is made for a different MCU architecture, and port it to run on the nRF52. That typically means that any code accessing GPIO&amp;#39;s or the SPI interface will have to be changed to use the Nordic drivers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/229304?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 21:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d077b93-6559-453f-857b-73cc7d5941ab</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;Yes, but, how can I write and read data from a component such as MAX31856 that is responsible for hosting the thermocouple reading data. I can write certain addresses, 0x00, 0x0A ...., and then read others that contain thermocouple reading data. In the examples of SPI I do not find one that will guide me in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/229052?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 13:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:816625f9-be4a-4202-be6d-790ae4ec06b2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late response, I have been out of office for the last month or so.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you still need help with this?&lt;/p&gt;
&lt;p&gt;The incoming data is stored in the&amp;nbsp;&lt;em&gt;m_rx_buf&lt;/em&gt; buffer, which is written to the log inside the &lt;em&gt;spi_event_handler()&lt;/em&gt; function. Is this not what you are looking for?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/224536?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 16:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5daee71-6a1b-4d3b-897a-cf0f0fdc5633</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;Another question regarding the spi or spim example code, how can I pass it from TEST_STRING to show me the values given by the miso pin?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/224092?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 09:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:409ec4f1-957a-4c22-8b5d-716e15c72718</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you looked into this example?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/engineertype/MAX31856/tree/master/MAX31856"&gt;https://github.com/engineertype/MAX31856/tree/master/MAX31856&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It looks pretty straight forward, but you will need to replace the GPIO and SPI functions with the Nordic ones, and implement a function based C interface rather than a class based C++ interface.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/223997?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 15:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36bf02e0-4428-48a3-8cd6-7b22214b103e</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;Hello, I found this example not Nordic, but I am getting complicated to adapt it, do you have any tips for it?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.maximintegrated.com/en/products/sensors/MAX31856.html/tb_tab2"&gt;https://www.maximintegrated.com/en/products/sensors/MAX31856.html/tb_tab2&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/223949?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 14:18:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97ba4c0f-0b36-4d20-81ea-6867f7f5fa45</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have any examples for this type of sensor unfortunately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Either you would have to find some non-nordic example and adapt it to the nRF52840, or implement something from scratch based on the MAX31856 datasheet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/223440?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 22:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e86fdf7a-d910-4661-92b4-e4f3588e5f2c</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;I have another doubt, to read a type K thermocouple with a max31856 through SPI, which example could be useful to read the data sent by the sensor?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/222346?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 12:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70f93718-b727-4b36-a7c5-cd0797725a0f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you mean the SPI example in the SDK?&lt;/p&gt;
&lt;p&gt;In this example the SPI interface is configured through the spi_config struct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The example uses mostly default settings, but you are free to change all the fields in the spi_config struct before calling nrf_drv_spi_init(..), such as the mode or bit_order fields.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/222187?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 22:29:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1fd516d-9d62-4878-8dc2-3f9db1df34cf</guid><dc:creator>jaraya</dc:creator><description>&lt;p&gt;Hi, I have reviewed the SPI example but I can&amp;#39;t find where to change the mode and frequency, could you guide me to test those changes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sensing temperature with a thermocouple / thermocouple</title><link>https://devzone.nordicsemi.com/thread/222150?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 15:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c73bf37d-2325-4149-baba-f162f6d0e5f3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you made sure to configure the SPI in the nRF52840 with the right mode and frequency to work with your sensor?&lt;/p&gt;
&lt;p&gt;Have you tried to probe the SPI lines with a scope or logic analyzer to verify that the communication looks OK?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>