Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit a78b0e9

Browse files
committed
Initial commit
0 parents  commit a78b0e9

9 files changed

+1318
-0
lines changed

Diff for: .gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

Diff for: LICENSE.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
SparkFun License Information
2+
============================
3+
4+
SparkFun uses two different licenses for our files — one for hardware and one for code.
5+
6+
Hardware
7+
---------
8+
9+
**SparkFun hardware is released under [Creative Commons Share-alike 4.0 International](http://creativecommons.org/licenses/by-sa/4.0/).**
10+
11+
Note: This is a human-readable summary of (and not a substitute for) the [license](http://creativecommons.org/licenses/by-sa/4.0/legalcode).
12+
13+
You are free to:
14+
15+
Share — copy and redistribute the material in any medium or format
16+
Adapt — remix, transform, and build upon the material
17+
for any purpose, even commercially.
18+
The licensor cannot revoke these freedoms as long as you follow the license terms.
19+
Under the following terms:
20+
21+
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
22+
ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
23+
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
24+
Notices:
25+
26+
You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
27+
No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
28+
29+
30+
Code
31+
--------
32+
33+
**SparkFun code, firmware, and software is released under the MIT License(http://opensource.org/licenses/MIT).**
34+
35+
The MIT License (MIT)
36+
37+
Copyright (c) 2016 SparkFun Electronics
38+
39+
Permission is hereby granted, free of charge, to any person obtaining a copy
40+
of this software and associated documentation files (the "Software"), to deal
41+
in the Software without restriction, including without limitation the rights
42+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
43+
copies of the Software, and to permit persons to whom the Software is
44+
furnished to do so, subject to the following conditions:
45+
46+
The above copyright notice and this permission notice shall be included in all
47+
copies or substantial portions of the Software.
48+
49+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
55+
SOFTWARE.

Diff for: README.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
SparkFun BNO080 IMU Library
2+
===========================================================
3+
4+
![SparkFun Inertial Measurement Unit - BNO080](https://cdn.sparkfun.com//assets/parts/1/2/7/3/3/14586-VR_IMU__Qwiic__-_BNO080-01.jpg)
5+
6+
[*SparkX IMU BNO080 (SPX-14586)*](https://www.sparkfun.com/products/14586)
7+
8+
The BNO080/BNO085 IMU has a combination triple axis accelerometer/gyro/magnetometer packaged with an ARM Cortex M0+ running powerful algorithms. This enables the BNO080 Inertial Measurement Unit (IMU) to produce accurate rotation vector headings with an error of 5 degrees or less. It's what we've been waiting for: all the sensor data is combined into meaningful, accurate IMU information.
9+
10+
This IC was designed to be implemented in Android based cellular phones to handle all the computations necessary for virtual reality goggles using only your phone. The sensor is quite powerful but with power comes a complex interface. We've written an I<sup>2</sup>C based library that provides the rotation vector (the reading most folks want from an IMU) as well as raw acceleration, gyro, and magnetometer readings. The sensor is capable of communicating over SPI and UART as well!
11+
12+
In addition the BNO080 IMU provides a built-in step counter, tap detector, activity classifier (are you running, walking, or sitting still?), and a shake detector. We are duly impressed.
13+
14+
Library written by Nathan Seidle ([SparkFun](http://www.sparkfun.com)).
15+
16+
Repository Contents
17+
-------------------
18+
19+
* **/examples** - Example sketches for the library (.ino). Run these from the Arduino IDE.
20+
* **/src** - Source files for the library (.cpp, .h).
21+
* **keywords.txt** - Keywords from this library that will be highlighted in the Arduino IDE.
22+
* **library.properties** - General library properties for the Arduino package manager.
23+
24+
Documentation
25+
--------------
26+
27+
* **[Installing an Arduino Library Guide](https://learn.sparkfun.com/tutorials/installing-an-arduino-library)** - Basic information on how to install an Arduino library.
28+
* **[Product Repository](https://github.com/sparkfunX/Qwiic_IMU_BNO080)** - Main repository (including hardware files)
29+
30+
License Information
31+
-------------------
32+
33+
This product is _**open source**_!
34+
35+
Various bits of the code have different licenses applied. Anything SparkFun wrote is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round! Anything Maxim wrote has its own license. Anything that was co-writing with Peter Jansen is BSD.
36+
37+
Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.
38+
39+
Distributed as-is; no warranty is given.
40+
41+
- Your friends at SparkFun.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
Reading CO2, humidity and temperature from the SCD30
3+
By: Nathan Seidle
4+
SparkFun Electronics
5+
Date: May 22nd, 2018
6+
License: MIT. See license file for more information but you can
7+
basically do whatever you want with this code.
8+
9+
Feel like supporting open source hardware?
10+
Buy a board from SparkFun! https://www.sparkfun.com/products/14751
11+
12+
This example prints the current CO2 level, relative humidity, and temperature in C.
13+
14+
Hardware Connections:
15+
If needed, attach a Qwiic Shield to your Arduino/Photon/ESP32 or other
16+
Plug the device into an available Qwiic port
17+
Open the serial monitor at 9600 baud to see the output
18+
*/
19+
20+
//Click here to get the library: http://librarymanager/All#SparkFun_SCD30
21+
#include "SparkFun_Laser_Arduino_Library.h"
22+
23+
Laser myLaser;
24+
25+
void setup()
26+
{
27+
Wire.begin();
28+
Wire.setClock(400000); //Use 400kHz I2C communication
29+
30+
Serial.begin(9600); //We have to start the serial port before we call begin()
31+
32+
myLaser.begin();
33+
}
34+
35+
void loop()
36+
{
37+
byte response = myLaser.readRegister(0xAA);
38+
39+
Serial.println("Command sent"); //For Uno
40+
41+
delay(1000);
42+
}

Diff for: keywords.txt

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
#######################################
2+
# Syntax Coloring Map
3+
#######################################
4+
5+
#######################################
6+
# Datatypes (KEYWORD1)
7+
#######################################
8+
9+
BNO080 KEYWORD1
10+
11+
#######################################
12+
# Methods and Functions (KEYWORD2)
13+
#######################################
14+
15+
begin KEYWORD2
16+
17+
enableDebugging KEYWORD2
18+
19+
softReset KEYWORD2
20+
resetReason KEYWORD2
21+
22+
qToFloat KEYWORD2
23+
24+
waitForI2C KEYWORD2
25+
receivePacket KEYWORD2
26+
getData KEYWORD2
27+
sendPacket KEYWORD2
28+
printPacket KEYWORD2
29+
30+
enableRotationVector KEYWORD2
31+
enableGameRotationVector KEYWORD2
32+
enableAccelerometer KEYWORD2
33+
enableGyro KEYWORD2
34+
enableMagnetometer KEYWORD2
35+
enableStepCounter KEYWORD2
36+
enableStabilityClassifier KEYWORD2
37+
enableActivityClassifier KEYWORD2
38+
39+
dataAvailable KEYWORD2
40+
parseInputReport KEYWORD2
41+
42+
getQuatI KEYWORD2
43+
getQuatJ KEYWORD2
44+
getQuatK KEYWORD2
45+
getQuatReal KEYWORD2
46+
getQuatRadianAccuracy KEYWORD2
47+
getQuatAccuracy KEYWORD2
48+
49+
getAccelX KEYWORD2
50+
getAccelY KEYWORD2
51+
getAccelZ KEYWORD2
52+
getAccelAccuracy KEYWORD2
53+
54+
getGyroX KEYWORD2
55+
getGyroY KEYWORD2
56+
getGyroZ KEYWORD2
57+
getGyroAccuracy KEYWORD2
58+
59+
getMagX KEYWORD2
60+
getMagY KEYWORD2
61+
getMagZ KEYWORD2
62+
getMagAccuracy KEYWORD2
63+
64+
calibrateAccelerometer KEYWORD2
65+
calibrateGyro KEYWORD2
66+
calibrateMagnetometer KEYWORD2
67+
calibratePlanarAccelerometer KEYWORD2
68+
calibrateAll KEYWORD2
69+
endCalibration KEYWORD2
70+
saveCalibration KEYWORD2
71+
72+
getStepCount KEYWORD2
73+
getStabilityClassifier KEYWORD2
74+
getActivityClassifier KEYWORD2
75+
76+
setFeatureCommand KEYWORD2
77+
setFeatureCommand KEYWORD2
78+
sendCommand KEYWORD2
79+
sendCalibrateCommand KEYWORD2
80+
81+
getQ1 KEYWORD2
82+
getQ2 KEYWORD2
83+
getQ3 KEYWORD2
84+
getResolution KEYWORD2
85+
getRange KEYWORD2
86+
readFRSword KEYWORD2
87+
frsReadRequest KEYWORD2
88+
readFRSdata KEYWORD2
89+
90+
#######################################
91+
# Constants (LITERAL1)
92+
#######################################

Diff for: library.properties

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=SparkFun BNO080 Cortex Based IMU
2+
version=1.0.2
3+
author=SparkFun Electronics <[email protected]>
4+
maintainer=SparkFun Electronics <sparkfun.com>
5+
sentence=Library for the SparkFun Qwiic VR IMU - BNO080/BNO085
6+
paragraph=An Arduino Library for the BNO080 IMU. The BNO080 IMU has a combination triple axis accelerometer/gyro/magnetometer packaged with an ARM Cortex M0+ running powerful algorithms. This enables the BNO080 Inertial Measurement Unit (IMU) to produce accurate rotation vector headings with an error of 5 degrees or less. It's what we've been waiting for: all the sensor data is combined into meaningful, accurate IMU information. Available at: https://www.sparkfun.com/products/14586
7+
category=Sensors
8+
url=https://github.com/sparkfun/SparkFun_BNO080_Arduino_Library
9+
architectures=*

0 commit comments

Comments
 (0)