mcubemems / mcube_mc34x9_arduino_driver Goto Github PK
View Code? Open in Web Editor NEWArduino 3-Axis Digital Accelerometer demo for mCube MC34X9 products.
Arduino 3-Axis Digital Accelerometer demo for mCube MC34X9 products.
Going through the datasheet and demo I couldn't find any example for Tilt/Flip/Tilt35. Can you provide some insight about this?
My aim is to detect changes in tilt angle and generate interrupt when tilt angle change is beyond certain angle (say 45 degrees).
I understand that registers 0x40 and 0x41 contain threshold values for Tilt/Flip/Tilt35 feature but 2hat do these thresholds actually mean.
From the MC3479 datasheet on page no. 70
For the flat/tilt/flip algorithm, these registers hold the programmed 15-bit threshold value to
detect the flat/tilt/flip position of the device. If the sample value is greater than the programmed
value of these registers, a tilt condition is detected.
What sample value is it referring to?
How to use MC34X9 in linux directly and Compile driver to linux
I'm looking into using this driver for the MC3419 and I notice the enums MC34X9_sr_t
do not seem to correspond with the ones specified in Table 28 from the Datasheet v1.2.
Could you confirm where these values came from, and if they're correct?
Thank you in advance!
There is an error in the declaration of the functions of the library, the library cannot be used because it does not even allow to be called.
Hello,
I'm working on a C library for the MC3419 as my project doesn't support C++.
I have been using your library for reference as some of the registers are missing from the data sheet mainly the device ID register
whilst I have been writing my library I have spotted a mistake in the enumeration used by the SetMode function:
typedef enum
{
MC34X9_MODE_SLEEP = 0b000,
MC34X9_MODE_CWAKE = 0b001,
MC34X9_MODE_RESERVED = 0b010,
MC34X9_MODE_STANDBY = 0b011,
} MC34X9_mode_t;
According to the datasheet the MC34X9 only has two states: standby (0), and wake (1).
MC34X9_MODE_STANDBY is used in various functions in the ".cpp" file
Best regards
Ben
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.