Coder Social home page Coder Social logo

bmi160-i2c's Introduction

Hi, I'm lefuturiste ๐Ÿ‘‹

I'm a french ๐Ÿ‡ซ๐Ÿ‡ท developer who likes to build websites ๐ŸŒ and robots ๐Ÿค–.

I use plenty and various technologies but I code mainly in Rust, Python, PHP and JS. ๐Ÿ’ป

Currently I'm trying to get away from github and use other software forges services, like the one that are based on Forgejo. You can find me on my personal forge instance: https://forge.lefuturiste.fr/.

Some of my side-projects are :

In 2020 I worked on a robot for the French robotic cup with my team We Robot.

I like to spend some of my time on open source projects like Jobatator a project in Go or Vue-Apitator a plugin for Vue.js.

I also to contribute to some Open Data projects like OpenStreetMap or WikiData

The best way to reach me is either by Mastodon or by email.

Cheers! ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿป

bmi160-i2c's People

Contributors

larsll avatar lefuturiste avatar mreihs avatar robofoundry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bmi160-i2c's Issues

Can't change bus

self.i2cbus = Driver(addr=0x68, bus=10)
TypeError: __init__() got an unexpected keyword argument 'bus'

Cant change the bus to 10 on init of Driver

Stuck at "Trying to initialize the sensor..."

I have it wired up properly and my i2c address is showing as 0x6A which I changed, but it is not getting past
sensor = Driver(0x6A)

Any advice on what is going on? Anything to inspect or see? I am trying this on a Raspberry Pi 4.

Thank you

Some registers are not in the definitiions file.

Hi,
I noticed that GYRO_OFFSET_EN, GYR_OFFSET_X_MSB_LEN, GYR_OFFSET_X_MSB_BIT ... are not in the definitions file. the same for gyro y and z. So it generates an error when you call the functions to get the offsets.

Mohamed

STEP_* definitions are missing

I think they should be something like:

STEP_BUF_MIN_BIT = (0)
STEP_BUF_MIN_LEN = (4)

Step counter definitions

STEP_MODE_NORMAL = (0)
STEP_MODE_SENSITIVE = (1)
STEP_MODE_ROBUST = (2)
STEP_MODE_UNKNOWN = (0)

mismatch in code between github and published python module

There seems to be a difference between the code that is available in github repo and the module that can be installed from https://pypi.org/project/BMI160-i2c/. Even though the version installed says 0.5 it seems to be missing several constants and the parameters to initialize sensor.

The workaround for me was to uninstall the module that was installed by pip and install it from code from this github repo like this:

pip uninstall bmi160-i2c
git clone https://github.com/lefuturiste/BMI160-i2c.git
cd BMI160-i2c
sudo python3 setup.py install

In addition, the all.py example will only work if the i2c addr is default addr. I have submitted a pull request to allow anyone to easily change it in all.py example as well.

Hope that helps someone.

sleep_us incorrect?

def sleep_us(duration):
return sleep(duration * 0.0001)

I guess there should be 0.000001, ie 10^-6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.