Hi, I have nrf52 Thingy board and i want to read temperature sensor data using twi sensor example available in SDK 11. I am not able to get data.
Thanks
Hi, I have nrf52 Thingy board and i want to read temperature sensor data using twi sensor example available in SDK 11. I am not able to get data.
Thanks
Have you tried using the Nordic Thingy SDK?
yes i have tried using Nordic thingy sdk. i am trying to get thingy's sensor data on hardware uart. I try to integrate UART example from sdk13 into thingy sdk. But i am not able to get it done.
yes i have tried using Nordic thingy sdk. i am trying to get thingy's sensor data on hardware uart. I try to integrate UART example from sdk13 into thingy sdk. But i am not able to get it done.
What kind of error messages are you getting? Have you been able to compile & run custom FW on your Thingy:52 device yet (see this link for help)? You will need an nrf dev kit to program new firmware onto the Thingy. If you have been able to do this, my guess would be to copy the nrf_drv_uart.c & .h files from sdk 13 peripheral uart example to the nRF_Drivers folder in the Thingy FW. You will most likely also need to copy some of the files located in the nRF_Libraries folder too (such as app_uart_fifo & app_fifo .c & .h files) from SDK 13 to the Thingy FW. In addition, you can check here to see which pins are available for the peripheral UART (see section 7.5 Pin Maps).Hopefully this helps a bit.
Hi bjorn,
Yes i have included all the required files to run UART. It doesn't show any error but it is not giving any output on UART.
Hi bjorn,
I am able add hardware uart with thingy sdk. and i am getting data on uart pins. Now i want temperature sensor data on uart..how would i do that??
Thanks
Hi,
You can use the function
/**@brief Function for getting the temperature data. * * @param[out] p_temperature Content of temperature registers. * * @return NRF_SUCCESS If the call was successful. */ uint32_t drv_lps22hb_temperature_get(uint16_t * p_temperature);
to read from the temperature sensor. You should then be able to use app_uart_put() & app_uart_get() to transfer a byte over the uart (see link). In addition, this link might be useful if you want to add a timer to measure the temperature in a given time interval.