Using LIS3dh with Thingy52

Hi

I am a student and this is my first project working on BLE. Please keep that in mind.

The end goal is to create a fingerprinting system with a Thingy (nRF6936) as a node. This Thingy currently broadcasts a UUID for gateways to pick up without a connection. The RSSI can then be derived inside the gateways. I am using the 17.1.0 nRF5 SDK

To increase the accuracy, I want to add accelerometer data inside the advertisement packet. Also, I want to make it more low power by sending very slow advertisements when the node isn't moving. 

I couldn't find any drivers for the LIS3dh that work on Thingies. That means I have to use SPI or I²C? 

The problem with this is that I need the pin layout of the Thingy to speak to the accelerometer directly. 

Where can I find these?

I have included the code of my beacon. 

 glass_beacon.zip

Parents
  • Hi Willem,

    For documentation for the Thingy:52, we got most of our documentation on our Infocenter. See this page for Thingy:52. And for the connectors of the Thingy:52, see Thnigy:52 Connectors.

    Some extra useful information can be found at the Thingy:52 Product page: Downloads, such as Hardware files, where you can find a pdf containing all block diagrams for the Thingy. This is often useful for finding pinouts as well.

    I couldn't find any drivers for the LIS3dh that work on Thingies. That means I have to use SPI or I²C? 

    If the sensor is interfaced using either SPI or I2C, it will always have to be interfaced using that communication protocol. Which communication protocol is up to the sensor, see the datasheet for each sensor to find how it can be interfaced.

    A driver for a sensor is premade code that will use said interface for the sensor.
    If you can not find any premade drivers for the sensor, you will have to write your own code to interface the sensor (using for example SPI). This would be called writing a custom driver for said sensor.

    Did this answer your questions?

    Regards,
    Sigurd Hellesvik

Reply
  • Hi Willem,

    For documentation for the Thingy:52, we got most of our documentation on our Infocenter. See this page for Thingy:52. And for the connectors of the Thingy:52, see Thnigy:52 Connectors.

    Some extra useful information can be found at the Thingy:52 Product page: Downloads, such as Hardware files, where you can find a pdf containing all block diagrams for the Thingy. This is often useful for finding pinouts as well.

    I couldn't find any drivers for the LIS3dh that work on Thingies. That means I have to use SPI or I²C? 

    If the sensor is interfaced using either SPI or I2C, it will always have to be interfaced using that communication protocol. Which communication protocol is up to the sensor, see the datasheet for each sensor to find how it can be interfaced.

    A driver for a sensor is premade code that will use said interface for the sensor.
    If you can not find any premade drivers for the sensor, you will have to write your own code to interface the sensor (using for example SPI). This would be called writing a custom driver for said sensor.

    Did this answer your questions?

    Regards,
    Sigurd Hellesvik

Children
Related