Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
berndporr committed Feb 13, 2022
1 parent c74d54a commit 6bf2238
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# LSM9DS1 RaspberryPI C++ Library
# I2C LSM9DS1 RaspberryPI C++ Library

With C++ callback handler which is called at the sampling rate of the accelerometer of the LSM9DS1.
![alt tag](sparkfun_LSM9DS1.jpg)

Based on the [SparkFun_LSM9DS1_Arduino_Library](https://github.com/sparkfun/SparkFun_LSM9DS1_Arduino_Library)
This is a C++11 library for the LSM9DS1 on a Raspberry PI using a callback handler for the data.
The callback handler is called at the sampling rate of the accelerometer of the LSM9DS1.

Included is also a PCB design to connect the IMU with a long cable via level shifters to the Raspberry PI.
It's based on the [SparkFun_LSM9DS1_Arduino_Library](https://github.com/sparkfun/SparkFun_LSM9DS1_Arduino_Library)

This library supports only I2C.
Included is also a PCB design to connect the IMU with a long cable via level shifters to the Raspberry PI.

## Hardware

Use an LSM9DS1 breakout board from Sparkfun or make your own (see at the bottom of the page).
You can use the [SparkFun 9DoF IMU Breakout board](https://www.sparkfun.com/products/13284)
or make your own PCB (see the `pcbs` folder).

- Connect the 3.3V power (pin 1) and GND (pin 9) to the LSM9DS1.
- Connect the I2C SDA (pin 3) & I2C SCL (pin 5) to the LSM9DS1.
Expand Down Expand Up @@ -44,7 +46,7 @@ cd example
./LSM9DS1_demo
```

This demo runs with a callback handler and it's called at a sampling rate of 50Hz.
This demo runs with a callback handler and it's called at the default sampling rate of 50Hz.

## PCBs

Expand Down
8 changes: 3 additions & 5 deletions pcbs/imu_board/imu_board.brd
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,6 @@ design rules under a new name.</description>
</signal>
<signal name="N$3">
<contactref element="J1" pad="5"/>
<contactref element="U1" pad="9"/>
<wire x1="18.542" y1="26.797" x2="18.542" y2="27.283" width="0.254" layer="1"/>
<wire x1="18.542" y1="27.283" x2="16.575" y2="29.25" width="0.254" layer="1"/>
<wire x1="16.575" y1="29.25" x2="15.025" y2="29.25" width="0.254" layer="1"/>
Expand All @@ -1038,10 +1037,9 @@ design rules under a new name.</description>
<wire x1="31.775" y1="48.6" x2="32.175" y2="48.2" width="0.254" layer="1"/>
<wire x1="32.175" y1="48.2" x2="32.175" y2="35.375" width="0.254" layer="1"/>
<wire x1="32.175" y1="35.375" x2="31.775" y2="34.975" width="0.254" layer="1"/>
<wire x1="31.775" y1="34.975" x2="31.775" y2="30.35" width="0.254" layer="1"/>
<wire x1="31.775" y1="30.35" x2="31.7" y2="30.25" width="0.254" layer="1"/>
<wire x1="31.7" y1="30.25" x2="31.179" y2="30.25" width="0.254" layer="1"/>
<wire x1="31.179" y1="30.25" x2="31.161" y2="30.257" width="0.254" layer="1"/>
<contactref element="U1" pad="12"/>
<wire x1="31.161" y1="31.547" x2="31.775" y2="31.547" width="0.254" layer="1"/>
<wire x1="31.775" y1="31.547" x2="31.775" y2="34.975" width="0.254" layer="1"/>
</signal>
</signals>
</board>
Expand Down
6 changes: 3 additions & 3 deletions pcbs/imu_board/imu_board.sch
Original file line number Diff line number Diff line change
Expand Up @@ -12179,9 +12179,9 @@ diameter 3 mm, horizontal, grid 12.7 mm</description>
<wire x1="-185.42" y1="76.2" x2="-167.64" y2="76.2" width="0.1524" layer="91"/>
<wire x1="-167.64" y1="76.2" x2="-167.64" y2="124.46" width="0.1524" layer="91"/>
<wire x1="-167.64" y1="124.46" x2="-58.42" y2="124.46" width="0.1524" layer="91"/>
<wire x1="-58.42" y1="124.46" x2="-58.42" y2="55.88" width="0.1524" layer="91"/>
<pinref part="U1" gate="G$1" pin="DRDY_M"/>
<wire x1="-58.42" y1="55.88" x2="15.24" y2="55.88" width="0.1524" layer="91"/>
<wire x1="-58.42" y1="124.46" x2="-58.42" y2="63.5" width="0.1524" layer="91"/>
<pinref part="U1" gate="G$1" pin="INT2_A/G"/>
<wire x1="15.24" y1="63.5" x2="-58.42" y2="63.5" width="0.1524" layer="91"/>
</segment>
</net>
</nets>
Expand Down
Binary file added sparkfun_LSM9DS1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6bf2238

Please sign in to comment.