Giter VIP home page Giter VIP logo

pi-bno080's Introduction

Welcome

I enjoy designing and building electronics hardware (development boards), and learning how to code low-level. I have been working on FPGA PMOD design, on solar position tracking for photovoltaic systems, and with a long work history in Information Security some repos are security-related.

Frank's github statsTop Langs

pi-bno080's People

Contributors

fm4dd avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

pi-bno080's Issues

Doesn't compile on buster

cc i2c_bno080.o getbno080.o -o getbno080
/usr/bin/ld: i2c_bno080.o: in function qToFloat': /root/pi-bno080-master/i2c_bno080.c:979: undefined reference to pow'
/usr/bin/ld: /root/pi-bno080-master/i2c_bno080.c:979: undefined reference to pow' /usr/bin/ld: /root/pi-bno080-master/i2c_bno080.c:979: undefined reference to pow'
/usr/bin/ld: /root/pi-bno080-master/i2c_bno080.c:979: undefined reference to pow' /usr/bin/ld: /root/pi-bno080-master/i2c_bno080.c:979: undefined reference to pow'
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: getbno080] Error 1

Problem with Chinese version GY-BNO080 module

I am testing this code with Chinese board called GY-BNO080 that is popular on Ebay and Aliexpress.
I see device is detected:
root@raspberrypi:~# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- 4b -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

But device index is 1, not 0 so I get this error:
./getbno080 -a 0x4b -t acc
Error failed to open I2C bus [/dev/i2c-0].

Then I change this line in header file and recompiled: (This is RPI4 with 2GB)
#define I2CBUS "/dev/i2c-1"

Then I don't get any data:

./getbno080 -a 0x4b -t acc
Debug: CMD reportID [F1] REPseq [00] CMD [84] CMDseq [00] RESPseq [00] R0 [00]
Debug: CMD reportID [F1] REPseq [00] CMD [84] CMDseq [00] RESPseq [00] R0 [00]
Error: Cannot read accelerometer data.

This is probably undocumented command to get euler angles:
./getbno080 -a 0x4b -t eul
Debug: CMD reportID [F1] REPseq [00] CMD [84] CMDseq [00] RESPseq [00] R0 [00]

If any ideas to try, let me know.

Interesting project

The source files seem to be missing. Are you going to make them available?

Regards,

Simon

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.