General I2C data reading using MCP9808 temperature sensor and Keil uVision on empty peripheral file

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
pbaessler
Offline
Last seen:8 months 2 weeks ago
Joined:2020-01-23 07:45
General I2C data reading using MCP9808 temperature sensor and Keil uVision on empty peripheral file

I would like to measure the temperature coming from my MCP9808, but don't have much experience working with I2C on Keil uVision.

What is it I need to get started to read tempearture data through my DA14531 using an external sensor?

Thank you.

Device:
PM_Dialog
Offline
Last seen:2 hours 53 min ago
Staff
Joined:2018-02-08 11:03
Hi pbaessler,

Hi pbaessler,

Please take a look at theDA14531-DA14585-586 Measuring TemperatureSoftware Example. This example demonstrates how to use I2C to read MCP9808 temperature register and write MCP9808 resolution register.

Generally , in the DA14531 product page, you will find great variety of easy-to-use SW Examples and tutorials that will really help you to get started with the DA14531 and SDK6.0.12.

查看“软件应用ions & Examples: Bluetooth” section!

//www.wsdof.com/products/connectivity/bluetooth-low-energy/products/da14531

Keep in mind that before starting with any of our SW examples, please read this document :Software Example Setup Using Python Link Script. All the SW Examples don’t contain the SDK, so you will need to link the Dialog 6.0.12 SDK with the downloaded SW example. Please let me know if you have any issues with the linking.

Thanks, PM_Dialog

pbaessler
Offline
Last seen:8 months 2 weeks ago
Joined:2020-01-23 07:45
Do I need the python link

Do I need the python link script for the MCP9808? I couldn't tell if that was only necessary for reading temperature values using the internal temperature sensor.

I also appear to have a lot of sdk files that contain an incorrect path, preventing me from running the program.

I haven't made any changes to the files from the temperature sensing tutorial. What could be wrong?

PM_Dialog
Offline
Last seen:2 hours 53 min ago
Staff
Joined:2018-02-08 11:03

Hi pbaessler,

The python script has nothing to do with the MCP9808. It should be used only for linking the whole SW Example with the SDK6.0.12. probably , the script is not executed correctly, so can you please share a screenshot? Additionally, did you follow the correct steps according to the following document ?

http://lpccs-docs.dialog-semiconductor.com/Software_Example_Setup/index.html

Thanks, PM_Dialog

pbaessler
Offline
Last seen:8 months 2 weeks ago
Joined:2020-01-23 07:45
Here is a screenshot of what

Here is a screenshot of what I see in the file management.

PM_Dialog
Offline
Last seen:2 hours 53 min ago
Staff
Joined:2018-02-08 11:03
Hi pbaessler,

Hi pbaessler,

Probably the SW Example is not linked with the SDK. What is the SDK version that you are using? Did you executed correctly the python script ?

Thanks, PM_Dialog