This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

simplest way to read ccs811 from a thingy52

I am trying to use a nordic thingy52 to read the sensor values off the device and relay the values onto a wirepas network. I have found the sdk and unpacked the following: 

/nRF5_SDK_15.2.0_9412b96/components/drivers_ext/ccs811. It seems like it should be easy. But everytime I pull in the library into my gcc project and try to compile it, I get missing libraries and try to roll them in. What is the simplest way to use two wire interfaced components on a thingy52? I have found the firmware on github, but it is merged with ble and other libraries with functionality I don't need at this level. The github library doesn't see to use the same .h and .c files as the sdk I downloaded from the nordic site. I have a nRF52 DK and cable to flash the thingy. I can recompile the thingy firmware to turn on RTT. But I can't seem to pull basic sensor info unless I do some bit bashing. Is there an obvious instruction manual I am missing?

Brian

  • You are right that the SDK for the thingy52 doesn't inlcude all libraries as SDK 15.2, e.g. if you want to include the external driver ccs811 to the thingy SDK, you will get an error that nrf_twi_sensor.h is missing. This can be solved by simply adding the library to your project. Check out this answer on how to add a library to your project.

    Best regards,

    Simon

Related