pedrominatel/mc3479

0.0.1

uploaded 2 weeks ago
MC3479 3-axis accelerometer driver for ESP-IDF

readme

# I2C Driver Component for the MC3479 3-Axis Accelerometer

## The MC3479

The MC3479 is a compact, digital output 3-axis accelerometer designed for cell phones and consumer motion sensing. It's perfect for user interface control, gaming input, and tilt compensation in devices like cell phones, game controllers, and media players. With built-in algorithms for motion detection, shake detection, and tilt positioning, it offers versatility. Its monolithic design integrates the accelerometer and electronics into a single chip, ensuring low power consumption and small size. It allows for adjustable sample rates from 0.5 to 2000 samples per second and supports both polling and interrupt-based reading of sample and event status.

> This driver is for the I2C mode.

## Features

* Set mode (wake and sleep)
* Set sample rate
* Set range
* Get coordinates
* Set interruption configuration
* Set get motion (Any motion)

## Future Work

* Tilt/Flip
* Shake
* Calibration

## Get Started

To get the component, use the command `add-dependency` inside your project folder.

```bash
idf.py add-dependency "pedrominatel/mc3479"
```

## Resources

[MC3479 Datasheet](https://www.memsic.com/Public/Uploads/uploadfile/files/20220522/MC3479Datasheet(APS-048-0072v1.2).pdf)

readme of example_mc3479_anymotion example

                                        
                                        # Example for the MC3479 3-axis accelerometer - Get Any Motion

Example to get the motion (any motion) and throw an interruption using the GPIO.

## Description

This example will print the interruption on a particular GPIO (default is GPIO4) for motion detection.

                                    

readme of example_mc3479_basic example

                                        
                                        # Example for the MC3479 3-axis accelerometer - Get Coordinates

Example to get the coordinates XYZ.

## Description

This example will print the coordinates XYZ in a task.
                                    

Links

Maintainer

  • Pedro Minatel <pminatel@gmail.com>

License: Apache-2.0

To add this component to your project, run:

idf.py add-dependency "pedrominatel/mc3479^0.0.1"

or download archive

Dependencies

  • ESP-IDF >=5.0
  • Examples:

    example_mc3479_anymotion

    more details

    To create a project from this example, run:

    idf.py create-project-from-example "pedrominatel/mc3479^0.0.1:example_mc3479_anymotion"

    or download archive (57 bytes)

    example_mc3479_basic

    more details

    To create a project from this example, run:

    idf.py create-project-from-example "pedrominatel/mc3479^0.0.1:example_mc3479_basic"

    or download archive (57 bytes)

    Stats

    • Archive size
      Archive size: 12.14 KB
    • Downloaded in total
      Downloaded in total 0 times
    • Downloaded this version
      This version: 0 times

    Badge

    pedrominatel/mc3479 version: 0.0.1
    |