Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use my MMA7455 accelerometer #1535

Closed
steijehillewaert opened this issue Nov 18, 2018 · 3 comments
Closed

How can I use my MMA7455 accelerometer #1535

steijehillewaert opened this issue Nov 18, 2018 · 3 comments

Comments

@steijehillewaert
Copy link

Hi

I just bought an accelerometer: MMA7455
I can't get it to work with Johnny-five.

Anyone have a solution?

Thanks

@dtex
Copy link
Collaborator

dtex commented Nov 18, 2018

This device uses i2c for communication, so it will likely be similar to MPU6050 or one of the other i2c IMU's, someone just needs to add the new device. I've added your request for this to the list of requested features.

Here is the technical documentation for anyone who is interested in taking this on.

https://www.nxp.com/docs/en/data-sheet/MMA7455L.pdf

@dtex dtex closed this as completed Nov 18, 2018
@steijehillewaert
Copy link
Author

Is there any guide for supporting new devices? I would be down to write supporting code for this device myself?

@dtex
Copy link
Collaborator

dtex commented Nov 18, 2018

@steijehillewaert That'd be great! We have the contributing.md document, but that doesn't have the detail you are looking for.

The code itself is pretty digestible. If you look in /lib/imu.js at Drivers.SHT31D, you can see an example implementation of an i2c IMU. I would look at the documentation for the MMA7455 and then each member of the Drivers object to find the closest fit. It is even conceivable that the MMA7455 will be the exact same as an existing driver and all you need is an alias (but life is rarely that easy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants