{"id":23744840,"url":"https://github.com/stm32duino/lsm6dsv16x","last_synced_at":"2025-09-04T19:31:51.025Z","repository":{"id":49406176,"uuid":"509502887","full_name":"stm32duino/LSM6DSV16X","owner":"stm32duino","description":"Arduino library to support the LSM6DSV16X 3D accelerometer and 3D gyroscope","archived":false,"fork":false,"pushed_at":"2024-11-04T14:17:08.000Z","size":158,"stargazers_count":6,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-04T15:19:57.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stm32duino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-01T15:24:06.000Z","updated_at":"2024-11-04T14:06:47.000Z","dependencies_parsed_at":"2024-11-04T15:29:39.882Z","dependency_job_id":null,"html_url":"https://github.com/stm32duino/LSM6DSV16X","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLSM6DSV16X","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLSM6DSV16X/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLSM6DSV16X/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLSM6DSV16X/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stm32duino","download_url":"https://codeload.github.com/stm32duino/LSM6DSV16X/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231987769,"owners_count":18456475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-31T12:50:03.274Z","updated_at":"2024-12-31T12:50:04.108Z","avatar_url":"https://github.com/stm32duino.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LSM6DSV16X\nArduino library to support the LSM6DSV16X 3D accelerometer and 3D gyroscope\n\n## API\n\nThis sensor uses I2C or SPI to communicate.\nFor I2C it is then required to create a TwoWire interface before accessing to the sensors:  \n\n    TwoWire dev_i2c(I2C_SDA, I2C_SCL);  \n    dev_i2c.begin();\n\nFor SPI it is then required to create a SPI interface before accessing to the sensors:  \n\n    SPIClass dev_spi(SPI_MOSI, SPI_MISO, SPI_SCK);  \n    dev_spi.begin();\n\nAn instance can be created and enabled when the I2C bus is used following the procedure below:  \n\n    LSM6DSV16XSensor AccGyr(\u0026dev_i2c);\n    AccGyr.begin();\n    AccGyr.Enable_X();  \n    AccGyr.Enable_G();\n\nAn instance can be created and enabled when the SPI bus is used following the procedure below:  \n\n    LSM6DSV16XSensor AccGyr(\u0026dev_spi, CS_PIN);\n    AccGyr.begin();\t\n    AccGyr.Enable_X();  \n    AccGyr.Enable_G();\n\nThe access to the sensor values is done as explained below:  \n\n  Read accelerometer and gyroscope.\n\n    int32_t accelerometer[3];\n    int32_t gyroscope[3];\n    AccGyr.Get_X_Axes(accelerometer);  \n    AccGyr.Get_G_Axes(gyroscope);\n\n## Examples\n\n* LSM6DSV16X_DataLog_Terminal: This application shows how to get data from LSM6DSV16X accelerometer and gyroscope and print them on terminal.\n\n* LSM6DSV16X_6D_Orientation: This application shows how to use LSM6DSV16X accelerometer to find out the 6D orientation and display data on a hyperterminal.\n\n* LSM6DSV16X_Double_Tap_Detection: This application shows how to detect the double tap event using the LSM6DSV16X accelerometer.\n\n* LSM6DSV16X_Free_Fall_Detection: This application shows how to detect the free fall event using the LSM6DSV16X accelerometer.\n\n* LSM6DSV16X_MLC: This application shows how to detect the activity using the LSM6DSV16X Machine Learning Core.\n\n* LSM6DSV16X_Pedometer: This application shows how to use LSM6DSV16X accelerometer to count steps.\n\n* LSM6DSV16X_Qvar_Polling: This application shows how to use LSM6DSV16X Qvar features in polling mode.\n\n* LSM6DSV16X_Sensor_Fusion: This application shows how to use LSM6DSV16X Sensor Fusion features for reading quaternions.\n\n* LSM6DSV16X_Single_Tap_Detection: This application shows how to detect the single tap event using the LSM6DSV16X accelerometer.\n\n* LSM6DSV16X_Tilt_Detection: This application shows how to detect the tilt event using the LSM6DSV16X accelerometer.\n\n* LSM6DSV16X_Wake_Up_Detection: This application shows how to detect the wake-up event using the LSM6DSV16X accelerometer.\n\n* LSM6DSV16X_FIFO_Polling: This application shows how to get accelerometer and gyroscope data from FIFO in pooling mode and print them on terminal.\n\n* LSM6DSV16X_FIFO_Interrupt: This application shows how to get accelerometer and gyroscope data from FIFO using interrupt and print them on terminal.\n## Documentation\n\nYou can find the source files at  \nhttps://github.com/stm32duino/LSM6DSV16X\n\nThe LSM6DSV16X datasheet is available at  \nhttps://www.st.com/content/st_com/en/products/mems-and-sensors/inemo-inertial-modules/lsm6dsv16x.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Flsm6dsv16x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstm32duino%2Flsm6dsv16x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Flsm6dsv16x/lists"}